|
Extension SDK 10.1.3.36.73 | ||||||||||
| 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.jdeveloper.merge.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 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 Reader on the node URL. |
protected void |
deinstallUndoableEditListener()
De-installs any view-specific undoable edit listeners. |
java.awt.Component |
getBottomComponent()
|
CompareView |
getCompareView()
|
Controller |
getController()
|
javax.swing.JComponent[] |
getCustomCells()
Get an array of custom cells to add to a StatusBar. The cells will be added to the StatusBar in the same order as they appear in the resulting array. |
java.lang.Object |
getEditorAttribute(java.lang.String attribute)
|
BasicEditorPane |
getFocusedEditorPane()
|
java.awt.Component |
getGUI()
Get the root graphical user interface component. |
HelpInfo |
getHelpInfo()
|
Toolbar |
getToolbar()
Get the toolbar associated with this view. |
void |
hidePopup(BasicEditorPane editorPane)
Informs the editor client that the popup menu (if showing) should now be hidden. This may be in response to some user input or event. |
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 any 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 |
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. If the editor cannot be open (file not found for example), this method should throw an OpenAbortedException |
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 |
showPopup(BasicEditorPane editorPane,
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. The client is responsible for building/populating the popup menus (if necessary), and making it visible. |
void |
update(java.lang.Object observed,
UpdateMessage change)
Notification message. Subjects call this method when they notify their observers that the subjects state has changed. |
protected void |
updateStatusLabel()
Updates the status label of the merge editor, describing the number of conflicts and resolved differences. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractMergeEditor()
| Method Detail |
public CompareView getCompareView()
getCompareView in interface oracle.jdevimpl.compare.CompareViewOwnerprotected IdeAction createLocalAction(int cmdId)
cmdId - the command ID.
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.
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)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()
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.FindableEditor
public void showPopup(BasicEditorPane editorPane,
java.awt.event.MouseEvent mouseEvent)
showPopup in interface PopupManagereditorPane - the editorPane that the user request occurred inmouseEvent - the mouse event describing the location of the
popup request.public void hidePopup(BasicEditorPane editorPane)
hidePopup in interface PopupManagereditorPane - the editorPane for which the popup should be hiddenprotected void installUndoableEditListener()
protected void deinstallUndoableEditListener()
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.
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.