|
JDeveloper SCM API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ide.scm.op.SCMFileOperation
Client adapter for all file operations. Deferred methods are :
Implementation is provided for the following virtuals in subclasses :isSelectionRecursive()
getMaxSelection()
getDialogSpecification()
(single-file only)
Constructor Summary | |
SCMFileOperation()
|
Method Summary | |
void |
execute()
Provides notification that the operation has been invoked on a selection whose elements have entirely been filtered. |
abstract void |
execute(java.util.Iterator selection,
SCMOptions options)
Executes the operation, through shell runner or direct interface, on the given files. |
abstract boolean |
filter(SCMFile file)
Asks whether this file passes a filter, and is retained from the current selection. |
abstract SCMDialogSpecification |
getDialogSpecification()
Determines the form of standard dialog shown to the user with the invokation of the represented action, and its configuration. |
byte |
getFileContext()
Gets the file context for the operation, which specifies the allowable file types for a base selection (prior to recursion). |
boolean |
getFilterDisables()
Asks whether, if a file operation, a selection which has entirely failed the filter results in the operation being disabled. |
abstract int |
getMaxSelection()
Gets the maximum number of files that can form a valid selection for this operation implementor. |
boolean |
isEnabled(boolean control,
SCMContext context)
File operation's implementation of the 'enabled by source control' query method. |
abstract boolean |
isSelectionRecursive()
Asks whether the operation requires the file selection to be recursive (that is, contain all files below selected directories and nested directories). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.ide.scm.SCMOperation |
getControlItem |
Constructor Detail |
public SCMFileOperation()
Method Detail |
public byte getFileContext()
public abstract SCMDialogSpecification getDialogSpecification()
public abstract boolean isSelectionRecursive()
public abstract boolean filter(SCMFile file) throws SCMException
file
- the file from the current selectionSCMException
- if a client error is raised to abort the filter.public abstract void execute(java.util.Iterator selection, SCMOptions options) throws SCMException
selection
- an iterator over the filtered file selection, which may be
null if this is a no-file operation.SCMException
- if a client error is raised to abort execution.public abstract int getMaxSelection()
public boolean isEnabled(boolean control, SCMContext context)
isEnabled
in interface SCMOperation
control
- source control enabled state indicator.context
- the IDE's current context.public boolean getFilterDisables()
public void execute() throws SCMException
SCMException
- if a client error is raised to abort execution.
|
Copyright © 2002 Oracle Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |