java.lang.Object
|
+--com.ibm.lab.soln.resources.ActionResourceAction
|
+--com.ibm.lab.soln.resources.ActionProcessResourceTree
Multi-headed action where the processing depends on invocation point as determined by the UI action that triggered the request. Processing paths include:
IWorkspaceRunnable.
Demonstrates the workspace get of a handle and existence checking with respect to the workspace and event management using a workspace runnable.
IFile,
IFolder,
IProject,
IMarker,
IResource,
IWorkspaceRoot,
IWorkspaceRunnable| Fields inherited from class com.ibm.lab.soln.resources.ActionResourceAction |
selection |
| Constructor Summary | |
ActionProcessResourceTree()
ActionProcessResourceTree default constructor. |
|
| Method Summary | |
void |
addMarker(org.eclipse.core.resources.IResource resource)
Add marker to identified resource. |
org.eclipse.core.resources.IFile |
copyBasics(org.eclipse.core.resources.IFolder folder)
Creates a file in the passed folder using content copied from a standard file found in the plug-in's install directory. |
boolean |
createFolder(org.eclipse.core.resources.IFolder newFolder)
Creates a folder if it does not exist, returns true if a folder was created. |
void |
createFolderFile(org.eclipse.core.resources.IProject project)
Resource processing logic to add resources to a given project one step at a time. |
java.lang.String |
fileStatus(org.eclipse.core.resources.IFile txtFile,
boolean txtFileAdded)
Returns string that describes if the file was created or already existed. |
java.lang.String |
folderStatus(org.eclipse.core.resources.IFolder imageFolder,
boolean imageFolderAdded)
Returns string that describes if the folder was created or already existed. |
java.io.InputStream |
getInitialContents()
Return input stream used to create initial file contents. |
void |
init(org.eclipse.ui.IViewPart view)
Not used in this action - implemented per IViewActionDelegate interface. |
void |
pathPlay()
Produces a list of path values based on the selected resource. |
void |
run(org.eclipse.jface.action.IAction action)
Uses saved reference to selected project to call custom logic that processes the resource tree. |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
showProjectDetails()
Finds all projects in the workspace and produces a short list of project details (such as path location). |
| Methods inherited from class com.ibm.lab.soln.resources.ActionResourceAction |
resultError, resultInformation, resultQuestion, selectionChanged, setActivePart |
| 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 |
| Constructor Detail |
public ActionProcessResourceTree()
| Method Detail |
public void addMarker(org.eclipse.core.resources.IResource resource)
CHAR_START,
CHAR_END, and MESSAGE values.public org.eclipse.core.resources.IFile copyBasics(org.eclipse.core.resources.IFolder folder)
folder - - folder where standard image file should be createdpublic boolean createFolder(org.eclipse.core.resources.IFolder newFolder)
newFolder - public void createFolderFile(org.eclipse.core.resources.IProject project)
public java.lang.String fileStatus(org.eclipse.core.resources.IFile txtFile,
boolean txtFileAdded)
txtFile - txtFileAdded -
public java.lang.String folderStatus(org.eclipse.core.resources.IFolder imageFolder,
boolean imageFolderAdded)
imageFolder - imageFolderAdded - public java.io.InputStream getInitialContents()
public void init(org.eclipse.ui.IViewPart view)
IViewActionDelegate interface.init in interface org.eclipse.ui.IViewActionDelegateIViewActionDelegate.init(IViewPart)public void pathPlay()
public void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegateaction - action proxy that handles the presentation
portion of the plugin actionIActionDelegate.run(IAction)
public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
run in interface org.eclipse.core.resources.IWorkspaceRunnableIWorkspaceRunnable.run(IProgressMonitor)public void showProjectDetails()