Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.jdeveloper.controller
Class TextNodeActionDelegate

java.lang.Object
  extended by oracle.jdeveloper.controller.NodeActionDelegate
      extended by oracle.jdeveloper.controller.TextNodeActionDelegate

public abstract class TextNodeActionDelegate
extends NodeActionDelegate


Constructor Summary
TextNodeActionDelegate()
           
 
Method Summary
 int[] doAction(Context context, Element[] elements, int[] text, IdeAction action)
          Does the action on a Node.
protected abstract  int[] doAction(TextBuffer buffer, Context context, Element[] elements, int[] text, IdeAction action)
          Does the action on a TextBuffer.
 void undoAction(Context context, Element[] elements, int[] text, IdeAction action)
          Undoes the action on a node.
 
Methods inherited from class oracle.jdeveloper.controller.NodeActionDelegate
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextNodeActionDelegate

public TextNodeActionDelegate()
Method Detail

doAction

protected abstract int[] doAction(TextBuffer buffer,
                                  Context context,
                                  Element[] elements,
                                  int[] text,
                                  IdeAction action)
Does the action on a TextBuffer. This method is invoked on a background thread and should not, in general, invoke any Swing or UI methods.

Parameters:
buffer - The text buffer, write locked and in a compound edit.
context - An IDE context specifying the node, project, and workspace.
elements - An array of Elements 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.

doAction

public int[] doAction(Context context,
                      Element[] elements,
                      int[] text,
                      IdeAction action)
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. The TextNodeActionDelegate implementation.

Specified by:
doAction in class NodeActionDelegate
Parameters:
context - An IDE context specifying the node, project, and workspace.
elements - An array of Elements 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.

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 Elements 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.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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