Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.jdeveloper.java.imports
Class IfSyncWhileForSurrounder

java.lang.Object
  extended by oracle.jdeveloper.java.imports.AbstractSurrounder
      extended by oracle.jdeveloper.java.imports.IfSyncWhileForSurrounder

public final class IfSyncWhileForSurrounder
extends AbstractSurrounder

The IfSyncWhileForSurrounder is the If-Synchronized-While-For surrounder implementation.


Field Summary
static int FOR
           
static int IF
           
static int IF_ELSE
           
static int SYNCHRONIZED
           
static int WHILE
           
 
Fields inherited from class oracle.jdeveloper.java.imports.AbstractSurrounder
codingStyleOptions, endPos, startPos, surroundedEndPos, surroundedStartPos, undoDescriptor
 
Constructor Summary
IfSyncWhileForSurrounder(int type)
           
 
Method Summary
protected  void doSurroundImpl(BasicEditorPane editorPane, Context context)
          The implementation of the surround-with operation.
protected  java.lang.String getNameImpl()
          The name of the surround-with operation.
 
Methods inherited from class oracle.jdeveloper.java.imports.AbstractSurrounder
blockIndent, doSurround, getIndentSize, getIndentString, getOuterIndent, getTabSize, getUseTabs, isBraceAlone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IF

public static final int IF
See Also:
Constant Field Values

IF_ELSE

public static final int IF_ELSE
See Also:
Constant Field Values

WHILE

public static final int WHILE
See Also:
Constant Field Values

SYNCHRONIZED

public static final int SYNCHRONIZED
See Also:
Constant Field Values

FOR

public static final int FOR
See Also:
Constant Field Values
Constructor Detail

IfSyncWhileForSurrounder

public IfSyncWhileForSurrounder(int type)
Method Detail

getNameImpl

protected java.lang.String getNameImpl()
Description copied from class: AbstractSurrounder
The name of the surround-with operation.

Specified by:
getNameImpl in class AbstractSurrounder
Returns:
String The name of the surround-with operation

doSurroundImpl

protected void doSurroundImpl(BasicEditorPane editorPane,
                              Context context)
                       throws javax.swing.text.BadLocationException
Description copied from class: AbstractSurrounder
The implementation of the surround-with operation.

Specified by:
doSurroundImpl in class AbstractSurrounder
Parameters:
editorPane - The editor pane
context - The IDE context
Throws:
javax.swing.text.BadLocationException - If the surround operation fails

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

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