console.commando
Class CommandoCommand

java.lang.Object
  extended by org.gjt.sp.jedit.JEditAbstractEditAction<org.gjt.sp.jedit.View>
      extended by org.gjt.sp.jedit.EditAction
          extended by console.commando.CommandoCommand

public class CommandoCommand
extends org.gjt.sp.jedit.EditAction

An EditAction which is intended to be used in the Console Commando. Associated with an .xml file which may be inside a jar, or may be in the user dir.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gjt.sp.jedit.EditAction
org.gjt.sp.jedit.EditAction.Wrapper
 
Field Summary
 
Fields inherited from class org.gjt.sp.jedit.JEditAbstractEditAction
args, name
 
Method Summary
static CommandoCommand create(java.lang.String path)
           
static CommandoCommand create(java.net.URL url)
           
 java.lang.String getCode()
           
 java.lang.String getPropertyPrefix()
           
 java.lang.String getShortLabel()
           
 void invoke(org.gjt.sp.jedit.View view)
           
 boolean isOverriding()
           
 boolean isUser()
           
protected  java.io.Reader openStream()
           
 
Methods inherited from class org.gjt.sp.jedit.EditAction
getLabel, getMouseOverText, getView, isSelected, isToggle, noRecord, noRememberLast, noRepeat
 
Methods inherited from class org.gjt.sp.jedit.JEditAbstractEditAction
getName, invoke, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isUser

public boolean isUser()
Returns:
true if userdefined

isOverriding

public boolean isOverriding()
Returns:
true for user commands that override a command with the same name in the jar.

create

public static CommandoCommand create(java.net.URL url)

create

public static CommandoCommand create(java.lang.String path)

getShortLabel

public java.lang.String getShortLabel()
Returns:
the short label - for button text

getPropertyPrefix

public java.lang.String getPropertyPrefix()

invoke

public void invoke(org.gjt.sp.jedit.View view)
Specified by:
invoke in class org.gjt.sp.jedit.EditAction

getCode

public java.lang.String getCode()
Overrides:
getCode in class org.gjt.sp.jedit.EditAction

openStream

protected java.io.Reader openStream()
                             throws java.io.IOException
Throws:
java.io.IOException