net.sf.plb4jedit.plb
Class PlbPlugin

java.lang.Object
  extended byorg.gjt.sp.jedit.EditPlugin
      extended byorg.gjt.sp.jedit.EBPlugin
          extended bynet.sf.plb4jedit.plb.PlbPlugin
All Implemented Interfaces:
org.gjt.sp.jedit.EBComponent

public class PlbPlugin
extends org.gjt.sp.jedit.EBPlugin

jEdit plugin to add Plb-specific enhancements to jEdit:

Plans/TODO for jEdit 4.2. Port to new plugin architecture. Use new version of SideKick-Plugin which gives easy to perform code-completion.

Author:
Peter Schaefer

Nested Class Summary
 
Nested classes inherited from class org.gjt.sp.jedit.EditPlugin
org.gjt.sp.jedit.EditPlugin.Broken, org.gjt.sp.jedit.EditPlugin.JAR
 
Field Summary
static PlbParser PLB_PARSER_INSTANCE
          singletion PlbParser instance for SideKick-Plugin
static String PROPERTY_PREFIX
          prefix to lookup properties in Plb.props
 
Constructor Summary
PlbPlugin()
           
 
Method Summary
 void createMenuItems(Vector menuItems)
          creates Plugin menu entries from properties in Plb.props: plb.menu.label=Plb plb.menu=Plb - plb.open-variable-declaration plb.goto-label
static void gotoLabel()
          goes to the position where the label under the cursor is defined.
 void handleMessage(org.gjt.sp.jedit.EBMessage msg)
          jEdit plugin architecture: handle messages (e.g.
static void openVariableDeclaration()
          opens the variable definition in a new buffer.
 void start()
          jEdit plugin architecture: called on start-up to initialize plugin
 void stop()
          jEdit plugin architecture: called on shutdown
 
Methods inherited from class org.gjt.sp.jedit.EditPlugin
createOptionPanes, getClassName, getJAR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_PREFIX

public static final String PROPERTY_PREFIX
prefix to lookup properties in Plb.props

See Also:
Constant Field Values

PLB_PARSER_INSTANCE

public static final PlbParser PLB_PARSER_INSTANCE
singletion PlbParser instance for SideKick-Plugin

Constructor Detail

PlbPlugin

public PlbPlugin()
Method Detail

start

public void start()
jEdit plugin architecture: called on start-up to initialize plugin


stop

public void stop()
jEdit plugin architecture: called on shutdown


createMenuItems

public void createMenuItems(Vector menuItems)
creates Plugin menu entries from properties in Plb.props: plb.menu.label=Plb plb.menu=Plb - plb.open-variable-declaration plb.goto-label

Parameters:
menuItems - param

handleMessage

public void handleMessage(org.gjt.sp.jedit.EBMessage msg)
jEdit plugin architecture: handle messages (e.g. buffer save, etc)


openVariableDeclaration

public static void openVariableDeclaration()
opens the variable definition in a new buffer. The lookup is performed with the word where the cursor stands. If nothing is found or on errors stati are shown in the status bar. Is linked with the action open-variable-declaration, see actions.xml.


gotoLabel

public static void gotoLabel()
goes to the position where the label under the cursor is defined. Opens this position in a new buffer. If nothing is found or an error occrus a status is shown in the status bar.



Copyright © 2003 Riege Software Internationl. All Rights Reserved.