|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.amp.escape.command.ResourceHandler
org.eclipse.amp.escape.command.ExecuteHandler
org.eclipse.amp.escape.command.ExecuteJavaByClassNameHandler
public class ExecuteJavaByClassNameHandler
Execute a Java scape by class name. The scape class name is specified by the
command parameter "scapeClassName".
Does not implement any ResourceHandler functionality (ie:
enable/disable based on currently selected resource).
| Constructor Summary | |
|---|---|
ExecuteJavaByClassNameHandler()
Constructor called when executed via eclipse commmand. |
|
ExecuteJavaByClassNameHandler(boolean headless)
Construct ExecuteJavaByClassNameHandler. |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event)
Execute the specified scape.Entry point when this handler is called by a command. |
void |
execute(java.lang.String scapeClassName)
Execute the specified scape. |
protected void |
executeOpen(EclipseEscapeRunner eclipseRunner,
java.lang.Object executed,
org.eclipse.core.runtime.IProgressMonitor monitor)
Open the scape via the supplied eclipse runner. |
protected boolean |
handleSelect(java.lang.Object sel)
Handle select. |
void |
setEnabled(java.lang.Object evaluationContext)
|
| Methods inherited from class org.eclipse.amp.escape.command.ExecuteHandler |
|---|
createRunner, execute, isHeadless, setHeadless |
| Methods inherited from class org.eclipse.amp.escape.command.ResourceHandler |
|---|
execute, executeHandler, getMonitor, setMonitor |
| Methods inherited from class org.eclipse.core.commands.AbstractHandler |
|---|
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecuteJavaByClassNameHandler()
public ExecuteJavaByClassNameHandler(boolean headless)
ExecuteJavaByClassNameHandler.
headless - headless execution?| Method Detail |
|---|
public void execute(java.lang.String scapeClassName)
throws org.eclipse.core.commands.ExecutionException
scapeClassName - scape class name
org.eclipse.core.commands.ExecutionException - if problem executing
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
throws org.eclipse.core.commands.ExecutionException
execute(String) with the value of the
scapeClassName parameter of the executing command.
execute in interface org.eclipse.core.commands.IHandlerexecute in class ResourceHandlerevent - An event containing all the information about the current
state of the application; must not be null.
null.
org.eclipse.core.commands.ExecutionException - if an exception occurred during execution.
protected void executeOpen(EclipseEscapeRunner eclipseRunner,
java.lang.Object executed,
org.eclipse.core.runtime.IProgressMonitor monitor)
ExecuteHandler.execute(Object, String).
executeOpen in class ExecuteHandlereclipseRunner - eclipse runnerexecuted - scape class namemonitor - progress monitorpublic void setEnabled(java.lang.Object evaluationContext)
setEnabled in interface org.eclipse.core.commands.IHandler2setEnabled in class ExecuteHandlerprotected boolean handleSelect(java.lang.Object sel)
ExecuteHandler
handleSelect in class ExecuteHandlersel - the sel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||