|
||||||||||
| 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
public abstract class ResourceHandler
Executes an arbitrary task upon a resource. Clients should override #execute(IResource).
| Constructor Summary | |
|---|---|
ResourceHandler()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event)
|
void |
execute(org.eclipse.core.resources.IResource resource)
Override with desired execution behavior. |
void |
execute(java.lang.Object resource,
java.lang.String name)
Execute. |
void |
executeHandler(org.eclipse.core.commands.ExecutionEvent event,
java.lang.Object resource,
java.lang.String name)
Execute handler. |
org.eclipse.core.runtime.IProgressMonitor |
getMonitor()
Gets the monitor. |
void |
setMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Sets the monitor. |
| Methods inherited from class org.eclipse.core.commands.AbstractHandler |
|---|
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled |
| 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 ResourceHandler()
| Method Detail |
|---|
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
throws org.eclipse.core.commands.ExecutionException
org.eclipse.core.commands.ExecutionException
public void execute(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.commands.ExecutionException
resource - the resource
org.eclipse.core.commands.ExecutionException - the execution exception
public void execute(java.lang.Object resource,
java.lang.String name)
throws org.eclipse.core.commands.ExecutionException
resource - the resourcename - the name
org.eclipse.core.commands.ExecutionException - the execution exception
public void executeHandler(org.eclipse.core.commands.ExecutionEvent event,
java.lang.Object resource,
java.lang.String name)
throws org.eclipse.core.commands.ExecutionException
event - the eventresource - the resourcename - the name
org.eclipse.core.commands.ExecutionException - the execution exceptionpublic org.eclipse.core.runtime.IProgressMonitor getMonitor()
public void setMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor - the new monitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||