Skip navigation links
oracle.jdeveloper.controller
Class XmlSourceNodeActionDelegate
java.lang.Object
oracle.jdeveloper.controller.NodeActionDelegate
oracle.jdeveloper.controller.XmlSourceNodeActionDelegate
-
public abstract class XmlSourceNodeActionDelegate
- extends NodeActionDelegate
TODO waiting for hook to suppress XML EF command and get back the undoable edit.
Method Summary |
int[] |
doAction(Context context, Element[] elements, int[] text, IdeAction action)
Does the action on a Node . |
protected abstract int[] |
doAction(oracle.bali.xml.model.XmlModel model, Context context, Element[] elements, int[] text, IdeAction action)
|
void |
undoAction(Context context, Element[] elements, int[] text, IdeAction action)
Undoes the action on a node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlSourceNodeActionDelegate
public XmlSourceNodeActionDelegate()
doAction
protected abstract int[] doAction(oracle.bali.xml.model.XmlModel model,
Context context,
Element[] elements,
int[] text,
IdeAction action)
doAction
public int[] doAction(Context context,
Element[] elements,
int[] text,
IdeAction action)
throws java.lang.Exception
- Description copied from class:
NodeActionDelegate
- Does the action on a
Node
. This method is invoked on a background thread and should not, in general, invoke any Swing or UI methods.
-
- Specified by:
doAction
in class NodeActionDelegate
-
- Parameters:
context
- An IDE context specifying the node, project, and workspace.
elements
- An array of Element
s specifying the selected elements within the node, or null if none.
text
- A two element int array specifying the start and end offsets of the selected text within the node, or null if none.
action
- The IDE action to do.
- Returns:
- a two-element int array specifying the start and end offsets of the text to select after the action is done, or null if none.
- Throws:
java.lang.Exception
undoAction
public void undoAction(Context context,
Element[] elements,
int[] text,
IdeAction action)
- Description copied from class:
NodeActionDelegate
- Undoes the action on a node.
-
- Specified by:
undoAction
in class NodeActionDelegate
-
- Parameters:
context
- An IDE context specifying the node, project, and workspace.
elements
- An array of Element
s specifying the selected elements within the node, or null if none.
text
- A two element int array specifying the start and end offset
action
- The IDE action to undo.
Skip navigation links
Copyright © 1997, 2011, Oracle. All rights reserved.