|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.java.imports.AbstractSurrounder
public abstract class AbstractSurrounder
The AbstractSurrounder
is the abstract implementation that helps
in performing the "Surround with" functionality for Java-like languages
(basically, languages with descendants from C).
Field Summary | |
---|---|
protected CodingStyleOptions |
codingStyleOptions
|
int |
endPos
|
int |
startPos
|
int |
surroundedEndPos
|
int |
surroundedStartPos
|
protected EditDescriptor |
undoDescriptor
|
Constructor Summary | |
---|---|
protected |
AbstractSurrounder()
|
Method Summary | |
---|---|
protected static void |
blockIndent(BasicEditorPane editorPane,
int start,
int end)
Indent the text in the given offsets. |
void |
doSurround(BasicEditorPane editorPane,
Context context)
The entry point for the surround-with operation. |
protected abstract void |
doSurroundImpl(BasicEditorPane editorPane,
Context context)
The implementation of the surround-with operation. |
protected static int |
getIndentSize(BasicEditorPane editorPane)
Get the indentation size. |
protected static java.lang.String |
getIndentString(BasicEditorPane editorPane,
int indent)
Get the indentation String object for the given indent size. |
protected abstract java.lang.String |
getNameImpl()
The name of the surround-with operation. |
protected static int |
getOuterIndent(BasicEditorPane editorPane)
Get the outer indent. |
protected static int |
getTabSize(BasicEditorPane editorPane)
Get the tab size. |
protected static boolean |
getUseTabs(BasicEditorPane editorPane)
Check whether a tab character should be used for the given editor. |
protected static boolean |
isBraceAlone()
Check whether open braces are on the same line or on the next line. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final EditDescriptor undoDescriptor
protected CodingStyleOptions codingStyleOptions
public int startPos
public int endPos
public int surroundedStartPos
public int surroundedEndPos
Constructor Detail |
---|
protected AbstractSurrounder()
Method Detail |
---|
protected abstract void doSurroundImpl(BasicEditorPane editorPane, Context context) throws javax.swing.text.BadLocationException
editorPane
- The editor panecontext
- The IDE context
javax.swing.text.BadLocationException
- If the surround operation failsprotected abstract java.lang.String getNameImpl()
public java.lang.String toString()
toString
in class java.lang.Object
public final void doSurround(BasicEditorPane editorPane, Context context)
editorPane
- The editor panecontext
- The IDE contextprotected static final void blockIndent(BasicEditorPane editorPane, int start, int end)
editorPane
- The editor panestart
- The start offsetend
- The end offsetprotected static final boolean isBraceAlone()
protected static final int getIndentSize(BasicEditorPane editorPane)
editorPane
- The editor pane
protected static final int getTabSize(BasicEditorPane editorPane)
editorPane
- The editor pane
protected static final boolean getUseTabs(BasicEditorPane editorPane)
editorPane
- The editor pane
protected static final int getOuterIndent(BasicEditorPane editorPane)
editorPane
- The editor pane
protected static final java.lang.String getIndentString(BasicEditorPane editorPane, int indent)
editorPane
- The editor paneindent
- The indent size
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |