|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.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 Reader on 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 Controller associated 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 Editor
public CompareView getCompareView()
getCompareView
in interface oracle.jdevimpl.compare.CompareViewOwner
protected IdeAction createLocalAction(int cmdId)
cmdId
- the command ID.
public void viewEditHappened(ViewEditEvent vee)
viewEditHappened
in interface ViewEditListener
vee
- 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 Editor
public java.lang.Object getEditorAttribute(java.lang.String attribute)
getEditorAttribute
in class Editor
attribute
- takes values from ATTRIBUTE_ constants.
public void open()
OpenAbortedException
open
in class Editor
Editor.setContext(oracle.ide.Context)
protected void setProgressCancelable(boolean cancelable)
protected boolean getClientSideMergeSetting()
protected void initializeMergeContextCS(Context context) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getSuffixAsType(java.net.URL url)
public void close()
close
in class Editor
public HelpInfo getHelpInfo()
getHelpInfo
in interface Helpable
getHelpInfo
in class View
public java.awt.Component getGUI()
getGUI
in class View
public Controller getController()
Controller
associated with this view.
getController
in interface ControllerProvider
getController
in class Editor
public Toolbar getToolbar()
getToolbar
in class View
public void update(java.lang.Object observed, UpdateMessage change)
update
in interface Observer
observed
- the subject whose state has changed.change
- what has changed.public void addChangeListener(javax.swing.event.ChangeListener l)
addChangeListener
in interface DynamicStatusProvider
l
- public void removeChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener
in interface DynamicStatusProvider
l
- public javax.swing.JComponent[] getCustomCells()
getCustomCells
in interface StatusProvider
StatusBar
public boolean isExpandable(javax.swing.JComponent cell)
isExpandable
in interface StatusProvider
cell
-
StatusProvider.getCustomCells()
public BasicEditorPane getFocusedEditorPane()
getFocusedEditorPane
in interface oracle.ide.ceditor.find.FindableEditor
public void showPopup(java.awt.event.MouseEvent mouseEvent)
showPopup
in interface ComparePopupManager
mouseEvent
- the mouse event describing the location of the
popup request.public void hidePopup()
hidePopup
in interface ComparePopupManager
protected 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.IOException
protected void updateMergeAttributes(TextBuffer mergeTextBuffer)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |