com.ibm.jdg2e.resources.programming.interact
Class ProcessResourceTree
java.lang.Object
com.ibm.jdg2e.resources.programming.interact.ActionResourceAction
com.ibm.jdg2e.resources.programming.interact.ProcessResourceTree
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IViewActionDelegate
- public class ProcessResourceTree
- extends ActionResourceAction
- implements org.eclipse.ui.IViewActionDelegate
Multi-headed action where the processing depends on invocation point as
determined by the UI action that triggered the request. Processing paths
include:
- ProjectDetails request - lists data for all projects.
- ProjectStructure request - creates a folder/file structure and adds a
BOOKMARK marker to the file.
- ProjectStructure request as runnable - the basic structure limits the
number of events triggered by performing the workspace updates as part of an
IWorkspaceRunnable.
Demonstrates the workspace get of a handle and existence checking with
respect to the workspace and event management using a workspace runnable.
- See Also:
IFile,
IFolder,
IProject,
IMarker,
IResource,
IWorkspaceRoot,
IWorkspaceRunnable
|
Method Summary |
void |
init(org.eclipse.ui.IViewPart view)
Not used in this action - implemented per
IViewActionDelegate interface. |
void |
run(org.eclipse.jface.action.IAction action)
Uses saved reference to selected project to call custom logic that
processes the resource tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IActionDelegate |
selectionChanged |
ProcessResourceTree
public ProcessResourceTree()
- ProcessResourceTree default constructor.
init
public void init(org.eclipse.ui.IViewPart view)
- Not used in this action - implemented per
IViewActionDelegate interface.
- Specified by:
init in interface org.eclipse.ui.IViewActionDelegate
- See Also:
IViewActionDelegate.init(IViewPart)
run
public void run(org.eclipse.jface.action.IAction action)
- Uses saved reference to selected project to call custom logic that
processes the resource tree. Multiple plugin.xml defined actions map to
this implementation. The current action is detected and the appropriate
logic is triggered based on the plugin.xml defined action id.
- Specified by:
run in interface org.eclipse.ui.IActionDelegate
- Parameters:
action - action proxy that handles the presentation portion of the
plugin action- See Also:
IActionDelegate.run(IAction)