public class CSS2SideKickParser
extends sidekick.SideKickParser
implements org.gjt.sp.jedit.EBComponent
Modifier and Type | Field and Description |
---|---|
static boolean |
showAll |
Constructor and Description |
---|
CSS2SideKickParser() |
Modifier and Type | Method and Description |
---|---|
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() |
public void setLineOffset(int offset)
public void setColumnOffset(int offset)
public void handleMessage(org.gjt.sp.jedit.EBMessage msg)
handleMessage
in interface org.gjt.sp.jedit.EBComponent
public void parse()
public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, errorlist.DefaultErrorSource errorSource)
parse
in class sidekick.SideKickParser
buffer
- the buffer to parseerrorSource
- where to send errorspublic sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)
setLineOffset
should be called prior to calling this method, otherwise, tree node positions
may be off.buffer
- the buffer to parseerrorSource
- where to send errorspublic boolean supportsCompletion()
supportsCompletion
in class sidekick.SideKickParser
public boolean canCompleteAnywhere()
canCompleteAnywhere
in class sidekick.SideKickParser
public sidekick.SideKickCompletion complete(org.gjt.sp.jedit.EditPane editPane, int caret)
complete
in class sidekick.SideKickParser
public javax.swing.JPanel getPanel()
getPanel
in class sidekick.SideKickParser