|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.core.JavaModelOperation
public abstract class JavaModelOperation
Defines behavior common to all Java Model operations
Field Summary | |
---|---|
static java.lang.String |
HAS_MODIFIED_RESOURCE_ATTR
|
org.eclipse.core.runtime.IProgressMonitor |
progressMonitor
The progress monitor passed into this operation |
static java.lang.String |
TRUE
|
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor |
---|
UNKNOWN |
Method Summary | |
---|---|
void |
beginTask(java.lang.String name,
int totalWork)
|
void |
done()
|
void |
executeNestedOperation(JavaModelOperation operation,
int subWorkAmount)
Convenience method to run an operation within this operation |
IJavaModel |
getJavaModel()
Returns the Java Model this operation is operating in. |
IJavaElement[] |
getResultElements()
Returns the elements created by this operation. |
boolean |
hasModifiedResource()
Returns whether this operation has performed any resource modifications. |
void |
internalWorked(double work)
|
boolean |
isCanceled()
|
boolean |
isReadOnly()
Returns true if this operation performs no resource modifications,
otherwise false . |
JavaElementDelta |
newJavaElementDelta()
Creates and returns a new IJavaElementDelta
on the Java Model. |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
Runs this operation and registers any deltas created. |
void |
runOperation(org.eclipse.core.runtime.IProgressMonitor monitor)
Main entry point for Java Model operations. |
void |
setCanceled(boolean b)
|
void |
setTaskName(java.lang.String name)
|
void |
subTask(java.lang.String name)
|
void |
worked(int work)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HAS_MODIFIED_RESOURCE_ATTR
public static final java.lang.String TRUE
public org.eclipse.core.runtime.IProgressMonitor progressMonitor
Method Detail |
---|
public void beginTask(java.lang.String name, int totalWork)
beginTask
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
public void done()
done
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
public void executeNestedOperation(JavaModelOperation operation, int subWorkAmount) throws JavaModelException
JavaModelException
public IJavaModel getJavaModel()
public IJavaElement[] getResultElements()
public boolean hasModifiedResource()
public void internalWorked(double work)
internalWorked
in interface org.eclipse.core.runtime.IProgressMonitor
public boolean isCanceled()
isCanceled
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
public boolean isReadOnly()
true
if this operation performs no resource modifications,
otherwise false
. Subclasses must override.
public JavaElementDelta newJavaElementDelta()
IJavaElementDelta
on the Java Model.
public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
run
in interface IWorkspaceRunnable
monitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
org.eclipse.core.runtime.CoreException
- if the operation failsIWorkspaceRunnable
public void runOperation(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
JavaModelException
public void setCanceled(boolean b)
setCanceled
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
public void setTaskName(java.lang.String name)
setTaskName
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
public void subTask(java.lang.String name)
subTask
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
public void worked(int work)
worked
in interface org.eclipse.core.runtime.IProgressMonitor
IProgressMonitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |