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 AbstractTryCatchFinallySurrounder

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

public abstract class AbstractTryCatchFinallySurrounder
extends AbstractSurrounder

The AbstractTryCatchFinallySurrounder is the abstract implementation of a TryCatchFinally surrounder.


Field Summary
static int TRY_CATCH
           
static int TRY_CATCH_FINALLY
           
static int TRY_FINALLY
           
 
Fields inherited from class oracle.jdeveloper.java.imports.AbstractSurrounder
codingStyleOptions, endPos, startPos, surroundedEndPos, surroundedStartPos, undoDescriptor
 
Constructor Summary
AbstractTryCatchFinallySurrounder(int type)
           
 
Method Summary
protected  void doSurroundImpl(BasicEditorPane editorPane, Context context)
          The implementation of the surround-with operation.
protected abstract  java.lang.String[] getExceptions()
          Get the list of exceptions that can be thrown.
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

TRY_CATCH

public static final int TRY_CATCH
See Also:
Constant Field Values

TRY_FINALLY

public static final int TRY_FINALLY
See Also:
Constant Field Values

TRY_CATCH_FINALLY

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

AbstractTryCatchFinallySurrounder

public AbstractTryCatchFinallySurrounder(int type)
Method Detail

getExceptions

protected abstract java.lang.String[] getExceptions()
Get the list of exceptions that can be thrown.

Returns:
String[] the list of exceptions that can be thrown

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.