| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
oracle.ide.editor.OpenEditorOptions
public class OpenEditorOptions
This class is used to specify how to open an editor.
EditorManager.openEditor(oracle.ide.editor.OpenEditorOptions)| Field Summary | |
|---|---|
static int | 
EXPLICITThis flag indicates that the file should always be shown in the "Recent Files" dialog  | 
static int | 
FOCUSUse this flag to put the focus in the editor after it has been created.  | 
static int | 
RAISEUse this flag to activate the editor after it has been created.  | 
static int | 
VALIDATEUse this flag if you want the editor to be sized right away.  | 
| Constructor Summary | |
|---|---|
OpenEditorOptions() | 
|
OpenEditorOptions(Context context) | 
|
OpenEditorOptions(Context context, java.lang.Class editorClass) | 
|
| Method Summary | |
|---|---|
 Context | 
getContext() | 
 java.lang.Class | 
getEditorClass() | 
 int | 
getFlags() | 
 int | 
getPosition() | 
 EditorPath | 
getPositionReference() | 
 void | 
setContext(Context context)Sets the file to be opened.  | 
 void | 
setEditorClass(java.lang.Class editorClass)The editor type that will be up when the editor is activated.  | 
 void | 
setFlags(int flags)Sets the flags used to open the file  | 
 void | 
setFlags(int flags, boolean set)Sets/clears flags.  | 
 void | 
setPosition(EditorPath reference, int position)Sets the position of the new document relative to another.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int RAISE
public static final int VALIDATE
public static final int FOCUS
public static final int EXPLICIT
| Constructor Detail | 
|---|
public OpenEditorOptions(Context context)
public OpenEditorOptions(Context context,
                         java.lang.Class editorClass)
public OpenEditorOptions()
| Method Detail | 
|---|
public void setContext(Context context)
context -public Context getContext()
public int getFlags()
public void setFlags(int flags)
RAISE, VALIDATE, FOCUS, EXPLICIT
public void setFlags(int flags,
                     boolean set)
flags - the flags to changeset - true to set, false to clearsetFlags(int)public java.lang.Class getEditorClass()
public void setEditorClass(java.lang.Class editorClass)
editorClass -
public void setPosition(EditorPath reference,
                        int position)
 final EditorPath editorPath = editorManager.searchEditor(document);
 openEditorOptions.setPosition(editorPath, IdeConstants.NORTH);
 openEditorOptions.setFlags(OpenEditorOptions.RAISE | OpenEditorOptions.VALIDATE);
reference - The reference can be obtained with EditorManager#searchEditor(oracle.ide.model.Document)position - Valid values are IdeConstants.WEST, IdeConstants.NORTH, IdeConstants.EAST, IdeConstants.SOUTH and IdeConstants.TABBEDpublic EditorPath getPositionReference()
public int getPosition()
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||