sidekick.css
Class CSS2SideKickParser
java.lang.Object
sidekick.SideKickParser
sidekick.css.CSS2SideKickParser
- All Implemented Interfaces:
- org.gjt.sp.jedit.EBComponent
public class CSS2SideKickParser
- extends sidekick.SideKickParser
- implements org.gjt.sp.jedit.EBComponent
- Version:
- $Revision$
- Author:
- Dale Anson
|
Field Summary |
static boolean |
showAll
|
| Fields inherited from class sidekick.SideKickParser |
name, SERVICE |
|
Method Summary |
boolean |
canCompleteAnywhere()
|
sidekick.SideKickCompletion |
complete(org.gjt.sp.jedit.EditPane editPane,
int caret)
|
javax.swing.JPanel |
getPanel()
|
void |
handleMessage(org.gjt.sp.jedit.EBMessage msg)
Reparse if the option settings have changed. |
void |
parse()
|
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
errorlist.DefaultErrorSource errorSource)
Parse the contents of the given buffer. |
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource)
Parse the contents of the given text. |
void |
setColumnOffset(int offset)
If called by another parser to parse part of a file (for example, to parse
a style tag in an html document), this can be set to the offset of the
style tag so that the node locations can be set correctly. |
void |
setLineOffset(int offset)
If called by another parser to parse part of a file (for example, to parse
a style tag in an html document), this can be set to the offset of the
style tag so that the node locations can be set correctly. |
boolean |
supportsCompletion()
|
| Methods inherited from class sidekick.SideKickParser |
activate, activate, canHandleBackspace, deactivate, deactivate, getCompletionPopup, getInstantCompletionTriggers, getName, getParseTriggers, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
showAll
public static boolean showAll
CSS2SideKickParser
public CSS2SideKickParser()
setLineOffset
public void setLineOffset(int offset)
- If called by another parser to parse part of a file (for example, to parse
a style tag in an html document), this can be set to the offset of the
style tag so that the node locations can be set correctly.
setColumnOffset
public void setColumnOffset(int offset)
- If called by another parser to parse part of a file (for example, to parse
a style tag in an html document), this can be set to the offset of the
style tag so that the node locations can be set correctly.
this is not part of the SideKick API
handleMessage
public void handleMessage(org.gjt.sp.jedit.EBMessage msg)
- Reparse if the option settings have changed.
- Specified by:
handleMessage in interface org.gjt.sp.jedit.EBComponent
parse
public void parse()
parse
public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer,
errorlist.DefaultErrorSource errorSource)
- Parse the contents of the given buffer. This is the standard entry point
and will cause the entire text of the buffer to be parsed.
- Specified by:
parse in class sidekick.SideKickParser
- Parameters:
buffer - the buffer to parseerrorSource - where to send errors
- Returns:
- Description of the Returned Value
parse
public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource)
- Parse the contents of the given text. This is the entry point to use when
only a portion of the buffer text is to be parsed. Note that
setLineOffset
should be called prior to calling this method, otherwise, tree node positions
may be off.
- Parameters:
buffer - the buffer to parseerrorSource - where to send errors
- Returns:
- Description of the Returned Value
supportsCompletion
public boolean supportsCompletion()
- Overrides:
supportsCompletion in class sidekick.SideKickParser
canCompleteAnywhere
public boolean canCompleteAnywhere()
- Overrides:
canCompleteAnywhere in class sidekick.SideKickParser
complete
public sidekick.SideKickCompletion complete(org.gjt.sp.jedit.EditPane editPane,
int caret)
- Overrides:
complete in class sidekick.SideKickParser
getPanel
public javax.swing.JPanel getPanel()
- Overrides:
getPanel in class sidekick.SideKickParser