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 CodeBlockSurrounder

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

public final class CodeBlockSurrounder
extends AbstractSurrounder

The CodeBlockSurrounder is the Code block (or "{ }") surrounder implementation for the selected piece of code.


Field Summary
 
Fields inherited from class oracle.jdeveloper.java.imports.AbstractSurrounder
codingStyleOptions, endPos, startPos, surroundedEndPos, surroundedStartPos, undoDescriptor
 
Constructor Summary
CodeBlockSurrounder()
           
 
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
 

Constructor Detail

CodeBlockSurrounder

public CodeBlockSurrounder()
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.