sidekick
Class SideKickPlugin
java.lang.Object
org.gjt.sp.jedit.EditPlugin
sidekick.SideKickPlugin
public class SideKickPlugin
- extends org.gjt.sp.jedit.EditPlugin
SideKick plugin core class
Manages a mapping of View to SideKick instances, creating/destroying
SideKick objects whenever Views are created/destroyed.
- Version:
- $Id: SideKickPlugin.java 18256 2010-07-27 19:53:18Z shlomy $
Nested classes/interfaces inherited from class org.gjt.sp.jedit.EditPlugin |
org.gjt.sp.jedit.EditPlugin.Broken, org.gjt.sp.jedit.EditPlugin.Deferred |
Methods inherited from class org.gjt.sp.jedit.EditPlugin |
createBrowserMenuItems, createMenuItems, createMenuItems, createOptionPanes, getClassName, getPluginHome, getPluginHome, getPluginHome, getPluginJAR, getResourceAsOutputStream, getResourceAsOutputStream, getResourceAsStream, getResourceAsStream, getResourcePath, getResourcePath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- The name of the dockable
- See Also:
- Constant Field Values
PARSER_MODE_PROPERTY
public static final java.lang.String PARSER_MODE_PROPERTY
- See Also:
- Constant Field Values
PARSER_PROPERTY
public static final java.lang.String PARSER_PROPERTY
- See Also:
- Constant Field Values
PARSED_DATA_PROPERTY
public static final java.lang.String PARSED_DATA_PROPERTY
- See Also:
- Constant Field Values
PARSE_COUNT
public static final java.lang.String PARSE_COUNT
- See Also:
- Constant Field Values
NONE
public static final java.lang.String NONE
- See Also:
- Constant Field Values
DEFAULT
public static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
SideKickPlugin
public SideKickPlugin()
start
public void start()
- Overrides:
start
in class org.gjt.sp.jedit.EditPlugin
stop
public void stop()
- Overrides:
stop
in class org.gjt.sp.jedit.EditPlugin
handleViewUpdate
public void handleViewUpdate(org.gjt.sp.jedit.msg.ViewUpdate vu)
handleEditPaneUpdate
public void handleEditPaneUpdate(org.gjt.sp.jedit.msg.EditPaneUpdate epu)
handleBufferUpdate
public void handleBufferUpdate(org.gjt.sp.jedit.msg.BufferUpdate bu)
handlePropertiesChanged
public void handlePropertiesChanged(org.gjt.sp.jedit.msg.PropertiesChanged msg)
getParserForMode
public static SideKickParser getParserForMode(org.gjt.sp.jedit.Mode m)
- Returns the parser for the given mode.
- Parameters:
m
- the mode (it must not be null)
- Returns:
- the parser associated to this mode (or null if there is no parser)
getParser
public static SideKickParser getParser(java.lang.String name)
- Parameters:
name
- - the name of the parser, as defined in services.xml
getParserForView
public static SideKickParser getParserForView(org.gjt.sp.jedit.View view)
setParserForBuffer
public static void setParserForBuffer(org.gjt.sp.jedit.Buffer buffer,
java.lang.String parserName)
getParserForBuffer
public static SideKickParser getParserForBuffer(org.gjt.sp.jedit.Buffer buffer)
parse
public static void parse(org.gjt.sp.jedit.View view,
boolean showParsingMessage)
- Immediately begins parsing the current buffer in a background thread.
- Parameters:
view
- The viewshowParsingMessage
- Clear the tree and show a status message
there?
addWorkRequest
public static void addWorkRequest(java.lang.Runnable run,
boolean inAWT)
isParsingBuffer
public static boolean isParsingBuffer(org.gjt.sp.jedit.Buffer buffer)