| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.view.View
oracle.ide.editor.Editor
oracle.jdevimpl.compare.BaseCompareEditor
oracle.jdeveloper.merge.AbstractMergeEditor
public abstract class AbstractMergeEditor
Abstract class for a dynamically registered merge editor.
| Field Summary | 
|---|
| Fields inherited from class oracle.ide.view.View | 
|---|
| EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP | 
| Constructor Summary | |
|---|---|
| AbstractMergeEditor() | |
| Method Summary | |
|---|---|
|  void | addChangeListener(javax.swing.event.ChangeListener l) | 
|  void | close() | 
| protected  Command | createEditCommand(ViewEdit viewEdit) | 
| protected  IdeAction | createLocalAction(int cmdId)Creates a local (view-specific) action for the given command ID. | 
| protected  CompareModel | createMergeModel(Context context)Creates a merge compare model, based on the current editor context. | 
| protected abstract  CompareModel | createMergeModelImpl(Context context)Creates a merge compare model, based on the current editor context (implementor). | 
| protected  java.io.Reader | createReader()Creates a Readeron the node URL. | 
| protected  void | deinstallUndoableEditListener()De-installs view-specific undoable edit listeners. | 
|  java.awt.Component | getBottomComponent() | 
| protected  boolean | getClientSideMergeSetting() | 
|  CompareView | getCompareView() | 
|  Controller | getController()Get the Controllerassociated with this view. | 
|  javax.swing.JComponent[] | getCustomCells()Get an array of custom cells to add to a StatusBar. | 
|  java.lang.Object | getEditorAttribute(java.lang.String attribute) | 
|  BasicEditorPane | getFocusedEditorPane() | 
|  java.awt.Component | getGUI() | 
|  HelpInfo | getHelpInfo() | 
| protected  java.net.URL | getSaveURL(Context context) | 
| protected  java.lang.String | getSuffixAsType(java.net.URL url) | 
|  Toolbar | getToolbar()Get the toolbar associated with this view. | 
|  void | hidePopup()Informs the editor client that the popup menu (if showing) should now be hidden. | 
| protected  void | initializeMergeContextCS(Context context) | 
| protected  void | initializeMergeView(CompareView mergeView)Intializes the merge compare view. | 
| protected  void | initializeToolbar(Toolbar toolbar)Initializes the toolbar instance with actions for the merge editor. | 
| protected  void | initializeToolbarImpl(Toolbar toolbar)Initializes the toolbar instance with specific actions for the merge editor. | 
| protected  void | installUndoableEditListener()Installs view-specific undoable edit listeners. | 
|  boolean | isCompleteState()Asks whether the editor is in 'complete state'. | 
|  boolean | isExpandable(javax.swing.JComponent cell)Determine whether the given custom cell should expand to fill any extra space beyond its minimum requirements. | 
| protected  boolean | isMergeModelBasedOnFile() | 
| protected  boolean | isNodeDirty()Asks if the node is 'dirty' according to the merge editor. | 
| protected  java.awt.Component | layoutNorthComponent(Toolbar toolbar)Lays out and returns the north-orientation component in the merge editor UI. | 
|  void | moveToCompleteState()Move the editor into a 'complete state' from which no more merge activity can be performed. | 
|  void | open()Open this editor on the context set by a prior call to setContext. | 
|  void | removeChangeListener(javax.swing.event.ChangeListener l) | 
| protected  void | reopen()Reopens the node for merging, from a restart (if complete) or revert. | 
|  boolean | restartMerge()Restarts the merge task, subject to user confirmation. | 
|  boolean | restartMergeImpl()Restarts the merge task, without user confirmation. | 
| protected abstract  boolean | restartMergeImpl(Context context)Restarts the merge task, without user confirmation (implementor). | 
|  boolean | saveMerge()Saves the merge results, subject to user confirmation. | 
|  boolean | saveMergeImpl()Saves the merge results, without user confirmation. | 
| protected abstract  boolean | saveMergeImpl(Context context,
              CompareModel compareModel)Saves the merge results, without user confirmation (implementor). | 
|  void | setContext(Context context)Sets the current editor context. | 
| protected  void | setProgressCancelable(boolean cancelable) | 
|  void | showPopup(java.awt.event.MouseEvent mouseEvent)Informs the editor client that the user requested a popup menu in the given editor pane, at the location specified in the mouseEvent. | 
|  void | update(java.lang.Object observed,
       UpdateMessage change)Notification message. | 
| protected  void | updateMergeAttributes(TextBuffer mergeTextBuffer) | 
| protected  void | updateStatusLabel()Updates the status label of the merge editor, describing the number of conflicts and resolved differences. | 
| protected abstract  boolean | validateContent(CompareModel compareModel)Validate the content of the merged result. | 
|  void | viewEditHappened(ViewEditEvent vee) | 
| Methods inherited from class oracle.jdevimpl.compare.BaseCompareEditor | 
|---|
| augmentToolbarComponents | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public AbstractMergeEditor()
| Method Detail | 
|---|
public void setContext(Context context)
Editor
setContext in class Editorpublic CompareView getCompareView()
getCompareView in interface oracle.jdevimpl.compare.CompareViewOwnerprotected IdeAction createLocalAction(int cmdId)
cmdId - the command ID.
public void viewEditHappened(ViewEditEvent vee)
viewEditHappened in interface ViewEditListenervee - protected Command createEditCommand(ViewEdit viewEdit)
protected void updateStatusLabel()
public boolean restartMerge()
                     throws java.io.IOException
true if the restart succeeded.
java.io.IOException - if an I/O exception occurred restarting the merge task.
public boolean restartMergeImpl()
                         throws java.io.IOException
true if the restart succeeded.
java.io.IOException - if an I/O exception occurred restarting the merge task.
public boolean saveMerge()
                  throws java.io.IOException
true if the save succeeded.
java.io.IOException - if an I/O exception occurred saving merge results.protected java.net.URL getSaveURL(Context context)
protected boolean isMergeModelBasedOnFile()
public boolean saveMergeImpl()
                      throws java.io.IOException
true if the save succeeded.
java.io.IOException - if an I/O exception occurred saving merge results.public void moveToCompleteState()
public boolean isCompleteState()
true if the editor is currently in the complete state.public java.awt.Component getBottomComponent()
getBottomComponent in class Editorpublic java.lang.Object getEditorAttribute(java.lang.String attribute)
getEditorAttribute in class Editorattribute - takes values from ATTRIBUTE_ constants.
public void open()
OpenAbortedException
open in class EditorEditor.setContext(oracle.ide.Context)protected void setProgressCancelable(boolean cancelable)
protected boolean getClientSideMergeSetting()
protected void initializeMergeContextCS(Context context)
                                 throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getSuffixAsType(java.net.URL url)
public void close()
close in class Editorpublic HelpInfo getHelpInfo()
getHelpInfo in interface HelpablegetHelpInfo in class Viewpublic java.awt.Component getGUI()
getGUI in class Viewpublic Controller getController()
Controller associated with this view.
getController in interface ControllerProvidergetController in class Editorpublic Toolbar getToolbar()
getToolbar in class View
public void update(java.lang.Object observed,
                   UpdateMessage change)
update in interface Observerobserved - the subject whose state has changed.change - what has changed.public void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener in interface DynamicStatusProviderl - public void removeChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener in interface DynamicStatusProviderl - public javax.swing.JComponent[] getCustomCells()
getCustomCells in interface StatusProviderStatusBarpublic boolean isExpandable(javax.swing.JComponent cell)
isExpandable in interface StatusProvidercell - 
StatusProvider.getCustomCells()public BasicEditorPane getFocusedEditorPane()
getFocusedEditorPane in interface oracle.ide.ceditor.find.FindableEditorpublic void showPopup(java.awt.event.MouseEvent mouseEvent)
showPopup in interface ComparePopupManagermouseEvent - the mouse event describing the location of the
        popup request.public void hidePopup()
hidePopup in interface ComparePopupManagerprotected void installUndoableEditListener()
ViewEditListener to the view.
protected void deinstallUndoableEditListener()
ViewEditListener from the view.
protected java.awt.Component layoutNorthComponent(Toolbar toolbar)
toolbar - the toolbar.
protected void initializeToolbar(Toolbar toolbar)
SaveMergeCommand and RestartMergeCommand
 before calling initializeToolbarImpl(Toolbar).
toolbar - the toolbar.protected void initializeToolbarImpl(Toolbar toolbar)
SaveMergeCommand and RestartMergeCommand.
toolbar - the toolbar.protected void initializeMergeView(CompareView mergeView)
mergeView - the merge compare view.protected CompareModel createMergeModel(Context context)
context - the current context.
CompareModel.protected abstract CompareModel createMergeModelImpl(Context context)
context - the current context.
CompareModel.
protected abstract boolean restartMergeImpl(Context context)
                                     throws java.io.IOException
context - the current context.
true if the restart succeeded.
java.io.IOException - if an I/O exception occurred restarting the merge task.protected void reopen()
close() followed by open().
protected abstract boolean saveMergeImpl(Context context,
                                         CompareModel compareModel)
                                  throws java.io.IOException
context - the current context.compareModel - the merge compare model of the view.
true if the save succeeded.
java.io.IOException - if an I/O exception occurred saving merge results.protected boolean isNodeDirty()
true if the file timestmap has changed.
protected java.io.Reader createReader()
                               throws java.io.IOException
Reader on the node URL.
java.io.IOException - if an I/O exception occurred accessing the file.
protected abstract boolean validateContent(CompareModel compareModel)
                                    throws java.io.IOException
compareModel - 
java.io.IOExceptionprotected void updateMergeAttributes(TextBuffer mergeTextBuffer)
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||