Extension SDK 10.1.3.36.73

oracle.jdeveloper.merge
Class TextMergeEditor

java.lang.Object
  extended byoracle.ide.view.View
      extended byoracle.ide.editor.Editor
          extended byoracle.jdeveloper.merge.AbstractMergeEditor
              extended byoracle.jdeveloper.merge.TextMergeEditor
All Implemented Interfaces:
oracle.jdevimpl.compare.CompareViewOwner, ControllerProvider, DynamicStatusProvider, java.util.EventListener, oracle.ide.ceditor.find.FindableEditor, Helpable, LayoutSelector, Observer, PopupManager, StatusProvider, oracle.javatools.compare.view.wedge.WedgeEditListener

public abstract class TextMergeEditor
extends AbstractMergeEditor
implements oracle.javatools.compare.view.wedge.WedgeEditListener

Textual merge editor specialization class.

Since:
10.1.3.0.3

Field Summary
 
Fields inherited from class oracle.ide.editor.Editor
_context, ATTRIBUTE_BACKGROUND_COLOR, ATTRIBUTE_CUSTOM_HORIZONTAL_SCROLLBAR, ATTRIBUTE_CUSTOM_VERTICAL_SCROLLBAR, ATTRIBUTE_HORIZONTAL_BLOCK_INCREMENT, ATTRIBUTE_HORIZONTAL_SCROLLBAR_POLICY, ATTRIBUTE_HORIZONTAL_UNIT_INCREMENT, ATTRIBUTE_MENU_ID, ATTRIBUTE_OLD_EDITOR, ATTRIBUTE_SCROLLABLE, ATTRIBUTE_VERTICAL_BLOCK_INCREMENT, ATTRIBUTE_VERTICAL_SCROLLBAR_POLICY, ATTRIBUTE_VERTICAL_UNIT_INCREMENT, CUSTOM_BORDER
 
Fields inherited from class oracle.ide.view.View
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
 
Constructor Summary
TextMergeEditor()
           
 
Method Summary
protected  CompareModel createMergeModelImpl(Context context)
          Creates a merge compare model, based on the current editor context (implementor).
protected abstract  oracle.javatools.compare.algorithm.text.TextCompareModel createTextMergeModel(Context context)
          Creates a textual merge compare model, based on the current editor context (implementor).
protected  void deinstallUndoableEditListener()
          De-installs view-specific undoable edit listeners.
protected  TextMergeNode getTextMergeNode()
          Gets the text merge node representing ancestor / result data.
protected  void installUndoableEditListener()
          Installs view-specific undoable edit listeners.
protected  boolean restartMergeImpl(Context context)
          Restarts the merge task, without user confirmation (implementor).
protected  boolean saveMergeImpl(Context context, CompareModel compareModel)
          Saves the merge results, without user confirmation (implementor).
protected  boolean saveTextMerge(Context context, oracle.javatools.compare.algorithm.text.TextCompareModel textMergeModel)
          Saves the results of the merge (stored by the ancestor contributor) to the node's URL.
protected  void setTextMergeNode(TextMergeNode textMergeNode)
          Sets the text merge node representing ancestor / result data.
 void wedgeEditHappened(oracle.javatools.compare.view.wedge.WedgeEditEvent wee)
          
 
Methods inherited from class oracle.jdeveloper.merge.AbstractMergeEditor
addChangeListener, close, createLocalAction, createMergeModel, createReader, getBottomComponent, getCompareView, getController, getCustomCells, getEditorAttribute, getFocusedEditorPane, getGUI, getHelpInfo, getToolbar, hidePopup, initializeMergeView, initializeToolbar, initializeToolbarImpl, isCompleteState, isExpandable, isNodeDirty, layoutNorthComponent, moveToCompleteState, open, removeChangeListener, reopen, restartMerge, restartMergeImpl, saveMerge, saveMergeImpl, showPopup, update, updateStatusLabel
 
Methods inherited from class oracle.ide.editor.Editor
addPreferredLayoutListener, addPropertyChangeListener, editorHidden, editorShown, firePropertyChangeEvent, getContext, getContextMenu, getDefaultFocusComponent, getDependentNodes, getDisplayName, getFixedBottomMargin, getFixedLeftMargin, getFixedRightMargin, getFixedTopMargin, getMiniToolbar, getPreferredLayoutBaseName, getPreferredLayoutURL, getScrollableLeftMargin, getScrollableTopMargin, getTabDescription, getTabIcon, getTabLabel, getTitleLabel, getType, initializeActiveLayout, initializeLayout, isReady, loadSettings, newId, removePreferredLayoutListener, removePropertyChangeListener, saveSettings, setContext, setPreferredLayoutBaseName, setPreferredLayoutURL, setType
 
Methods inherited from class oracle.ide.view.View
activate, addViewListener, addViewSelectionListener, deactivate, fireViewClosed, fireViewSelectionChanged, getContext, getId, getSelection, getSelectionFromUI, isVisible, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, scheduleUpdateSelection, setId, setOwner, setToolbarVisible, show, updateSelection, updateSelectionImpl, updateTitle, updateToolbarActions, updateVisibleActions, updateVisibleActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextMergeEditor

public TextMergeEditor()
Method Detail

installUndoableEditListener

protected void installUndoableEditListener()
Installs view-specific undoable edit listeners. By default, adds a WedgeEditListener to the view.

Overrides:
installUndoableEditListener in class AbstractMergeEditor

deinstallUndoableEditListener

protected void deinstallUndoableEditListener()
De-installs view-specific undoable edit listeners. By default, removes a WedgeEditListener from the view.

Overrides:
deinstallUndoableEditListener in class AbstractMergeEditor

wedgeEditHappened

public void wedgeEditHappened(oracle.javatools.compare.view.wedge.WedgeEditEvent wee)

Specified by:
wedgeEditHappened in interface oracle.javatools.compare.view.wedge.WedgeEditListener
Parameters:
wee -

createMergeModelImpl

protected CompareModel createMergeModelImpl(Context context)
Creates a merge compare model, based on the current editor context (implementor).

Specified by:
createMergeModelImpl in class AbstractMergeEditor
Parameters:
context - the current context.
Returns:
the create merge model, a CompareModel.

restartMergeImpl

protected boolean restartMergeImpl(Context context)
                            throws java.io.IOException
Restarts the merge task, without user confirmation (implementor).

Specified by:
restartMergeImpl in class AbstractMergeEditor
Parameters:
context - the current context.
Returns:
true if the restart succeeded.
Throws:
java.io.IOException - if an I/O exception occurred restarting the merge task.

saveMergeImpl

protected boolean saveMergeImpl(Context context,
                                CompareModel compareModel)
                         throws java.io.IOException
Saves the merge results, without user confirmation (implementor).

Specified by:
saveMergeImpl in class AbstractMergeEditor
Parameters:
context - the current context.
compareModel - the merge compare model of the view.
Returns:
true if the save succeeded.
Throws:
java.io.IOException - if an I/O exception occurred saving merge results.

createTextMergeModel

protected abstract oracle.javatools.compare.algorithm.text.TextCompareModel createTextMergeModel(Context context)
                                                                                          throws java.io.IOException
Creates a textual merge compare model, based on the current editor context (implementor). Note that the merge node must be initialized via the setTextMergeNode(oracle.jdeveloper.merge.TextMergeNode) method during the execution of this method.

Parameters:
context - the current context.
Returns:
the create merge model, a CompareModel.
Throws:
java.io.IOException

setTextMergeNode

protected void setTextMergeNode(TextMergeNode textMergeNode)
Sets the text merge node representing ancestor / result data.

Parameters:
textMergeNode - the TextMergeNode.

getTextMergeNode

protected TextMergeNode getTextMergeNode()
Gets the text merge node representing ancestor / result data. By default, returns the value initialized during the execution of the createTextMergeModel(oracle.ide.Context) method.

Returns:
the TextMergeNode.

saveTextMerge

protected boolean saveTextMerge(Context context,
                                oracle.javatools.compare.algorithm.text.TextCompareModel textMergeModel)
                         throws java.io.IOException
Saves the results of the merge (stored by the ancestor contributor) to the node's URL. By default, the results are written to the and no confirmations or errors are displayed.

Parameters:
context - the current context.
textMergeModel - the text merge compare model of the view.
Returns:
true if the save succeeded.
Throws:
java.io.IOException - if an I/O exception occurred saving merge results.

Extension SDK 10.1.3.36.73

 

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