oracle.jdeveloper.vcs.patch
Class AbstractPatchCommand
java.lang.Object
oracle.ide.controller.Command
oracle.jdeveloper.vcs.spi.VCSCommand
oracle.jdeveloper.vcs.patch.AbstractPatchCommand
- Direct Known Subclasses:
- ApplyPatchCommand, CreatePatchCommand
public abstract class AbstractPatchCommand
- extends VCSCommand
Methods inherited from class oracle.jdeveloper.vcs.spi.VCSCommand |
buildContextForEditor, createStatusFilter, doit, doitImpl, fireFileStructureChanged, fireSomeFilesCreated, fireSomeFilesDeleted, getContextLocatables, getExtension, getFilteredSelection, getFilteredSelection, getLocatableURLFilter, getStatusCache, getStatusFilter, initializeCommandStyle, initializeCommandType, isAvailable, isAvailableImpl, isAvailableImpl, isAvailableImpl, isThreaded, noOp, noOpImpl, reloadBuffers, storeTimestamps, updateReadOnlyStates |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPatchCommand
protected AbstractPatchCommand(int cmdId)
getExceptionHandler
protected VCSExceptionHandler getExceptionHandler()
- Description copied from class:
VCSCommand
- Get the exception handler used to report errors from this command.
- Overrides:
getExceptionHandler
in class VCSCommand
- Returns:
- an exception handler.
isAvailableImpl
protected boolean isAvailableImpl(java.net.URL url)
throws java.lang.Exception
- Description copied from class:
VCSCommand
- Asks whether the command is available for the current context.
- Overrides:
isAvailableImpl
in class VCSCommand
- Returns:
true
if either VCSCommand.getStatusCache()
or VCSCommand.getStatusFilter()
return null
, otherwise uses the acceptance value of the status filter.
- Throws:
java.lang.Exception
getContext
public Context getContext()
- Description copied from class:
Command
- Gets the command's context.
- Overrides:
getContext
in class Command
getURLFilter
protected URLFilter getURLFilter()
- Description copied from class:
VCSCommand
- Gets the URL filter controlling locatables in the command context.
- Overrides:
getURLFilter
in class VCSCommand
- Returns:
- the command's URL filter.
getContextProject
protected final Project getContextProject()
getProjectFolderNodes
protected final Locatable[] getProjectFolderNodes(Project project)
processNodesForProjectOperation
protected java.util.Collection processNodesForProjectOperation(Project project,
java.util.Collection nodes)
throws java.lang.Exception
- Throws:
java.lang.Exception
getOperationWorkingDirectoryURL
protected java.net.URL getOperationWorkingDirectoryURL(java.net.URL[] urls)
getOperationURLs
protected java.net.URL[] getOperationURLs(java.net.URL[] urls)
initializeFileChooserPanel
protected void initializeFileChooserPanel(oracle.jdevimpl.vcs.util.FilePanel filePanel,
java.net.URL[] urls)
initializePreferredSizeOfUI
protected void initializePreferredSizeOfUI(javax.swing.JComponent component)
showSelectPatchContextDialog
protected Locatable showSelectPatchContextDialog(Project project,
java.util.Collection nodes)
constructDefaultPatchURL
protected java.net.URL constructDefaultPatchURL(java.net.URL[] urls)
copyStringToClipboard
protected void copyStringToClipboard(java.lang.String s)
saveStringAsURL
protected void saveStringAsURL(java.lang.String s,
java.lang.String charsetName,
java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
savePatchToClipboard
protected void savePatchToClipboard(java.lang.String patchSource)
throws VCSException
- Throws:
VCSException
savePatchToURL
protected void savePatchToURL(java.lang.String patchSource,
java.lang.String charsetName,
java.net.URL patchUrl,
boolean openEditor)
throws VCSException,
java.io.IOException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- Throws:
VCSException
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
checkPatchSourceEmpty
protected void checkPatchSourceEmpty(java.lang.String patchSource)
throws VCSException
- Throws:
VCSException
awtOpenDefaultEditorInFrame
protected void awtOpenDefaultEditorInFrame(java.net.URL url)
awtRevertNodeReload
protected void awtRevertNodeReload(Node node)
isPatchSourceEmpty
protected boolean isPatchSourceEmpty(java.lang.String patchSource)
Copyright © 1997, 2011, Oracle. All rights reserved.