Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.vcs.patch
Class AbstractPatchCommand

java.lang.Object
  extended by oracle.ide.controller.Command
      extended by oracle.jdeveloper.vcs.spi.VCSCommand
          extended by oracle.jdeveloper.vcs.patch.AbstractPatchCommand
Direct Known Subclasses:
ApplyPatchCommand, CreatePatchCommand

public abstract class AbstractPatchCommand
extends VCSCommand


Field Summary
 
Fields inherited from class oracle.jdeveloper.vcs.spi.VCSCommand
CANCEL, ERROR, NOOP, OK
 
Fields inherited from class oracle.ide.controller.Command
context, EXECUTING, MULTI_NODE, NO_CHANGE, NO_UNDO, NORMAL, type
 
Constructor Summary
protected AbstractPatchCommand(int cmdId)
           
 
Method Summary
protected  void awtOpenDefaultEditorInFrame(java.net.URL url)
           
protected  void awtRevertNodeReload(Node node)
           
protected  void checkPatchSourceEmpty(java.lang.String patchSource)
           
protected  java.net.URL constructDefaultPatchURL(java.net.URL[] urls)
           
protected  void copyStringToClipboard(java.lang.String s)
           
 Context getContext()
          Gets the command's context.
protected  Project getContextProject()
           
protected  VCSExceptionHandler getExceptionHandler()
          Get the exception handler used to report errors from this command.
protected  java.net.URL[] getOperationURLs(java.net.URL[] urls)
           
protected  java.net.URL getOperationWorkingDirectoryURL(java.net.URL[] urls)
           
protected  Locatable[] getProjectFolderNodes(Project project)
           
protected  URLFilter getURLFilter()
          Gets the URL filter controlling locatables in the command context.
protected  void initializeFileChooserPanel(oracle.jdevimpl.vcs.util.FilePanel filePanel, java.net.URL[] urls)
           
protected  void initializePreferredSizeOfUI(javax.swing.JComponent component)
           
protected  boolean isAvailableImpl(java.net.URL url)
          Asks whether the command is available for the current context.
protected  boolean isPatchSourceEmpty(java.lang.String patchSource)
           
protected  java.util.Collection processNodesForProjectOperation(Project project, java.util.Collection nodes)
           
protected  void savePatchToClipboard(java.lang.String patchSource)
           
protected  void savePatchToURL(java.lang.String patchSource, java.lang.String charsetName, java.net.URL patchUrl, boolean openEditor)
           
protected  void saveStringAsURL(java.lang.String s, java.lang.String charsetName, java.net.URL url)
           
protected  Locatable showSelectPatchContextDialog(Project project, java.util.Collection nodes)
           
 
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 oracle.ide.controller.Command
getAffectedNodes, getData, getId, getName, getType, isGlobal, setContext, setData, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPatchCommand

protected AbstractPatchCommand(int cmdId)
Method Detail

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)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.