|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.Ide
This class is responsible for coordinating startup of the IDE.
Field Summary |
Method Summary | |
static void |
addIdeListener(IdeListener l)
Adds a listener to the IDE. |
static boolean |
addToMiscellaneousFolder(Element element)
Adds an Element object to the MiscellaneousFolder . |
static int |
createCmdID(java.lang.String commandName)
|
static java.lang.Integer |
findCmdID(java.lang.String commandName)
If the specified String is associated with a command ID number, that number is returned as an Integer. |
static java.lang.String |
findCmdName(int cmdID)
Find the command name associated with the specified id. |
static int |
findOrCreateCmdID(java.lang.String commandName)
This is the primary method that addins should use to allocate a command ID for actions that will be handled by a Controller . |
static Project |
getActiveProject()
Returns the currently active Project . |
static Workspace |
getActiveWorkspace()
Returns the currently active Workspace . |
static java.lang.String |
getBinDirectory()
Retrieve the directory the IDE was started from. |
static Project |
getDefaultProject()
Gets the default project node |
static Workspace |
getDefaultWorkspace()
|
static DTCache |
getDTCache()
|
static EnvironOptions |
getEnvironOptions()
|
static java.lang.String |
getHomeDirectory()
Retrieve the IDE install directory. |
static javax.swing.ActionMap |
getIdeActionMap()
Returns an ActionMap for the IDE's accelerator keys. |
static IdeArgs |
getIdeArgs()
|
static javax.swing.InputMap |
getIdeInputMap()
Returns an InputMap for the IDE's accelerator keys. |
static IdeProperties |
getIdeProperties()
|
static KeyStrokeContextRegistry |
getKeyStrokeContextRegistry()
|
static NavigatorWindow |
getLastActiveNavigator()
|
static java.lang.String |
getLibDirectory()
Retrieve the IDE lib directory. |
static java.util.Map |
getMacros()
Gets the default Map of the macros in use by the IDE. |
static IdeMainWindow |
getMainWindow()
Gets the IdeMainWindow instance. |
static Menubar |
getMenubar()
Gets the menubar . |
static MiscellaneousFolder |
getMiscellaneousFolder()
Gets the miscellaneous files folder. |
static java.lang.String |
getOracleHomeDirectory()
Returns the Oracle products install directory. |
static java.lang.String |
getProductVersion()
Gets the current product version number. |
static java.lang.String |
getProgramName()
Return the IDE product's full program name. |
static java.lang.String |
getProperty(java.lang.String key)
Gets the IDE property indicated by the specified key. |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Gets the IDE property indicated by the specified key. |
static IdeSettings |
getSettings()
|
static StatusBar |
getStatusBar()
Gets the StatusBar instance. |
static IdeSystem |
getSystem()
Gets the user's system. |
static java.lang.String |
getSystemDirectory()
|
static Toolbar |
getToolbar()
Gets the Toolbar . |
static java.lang.String |
getTrueUserHomeDirectory()
Get the user's actual home directory, represented by the "user.home" system property. |
static java.lang.String |
getUserHomeDirectory()
Get the directory where the user specific files will reside. |
static float |
getVersion()
Gets the current IDE version number. |
static ComponentVersionManager |
getVersionInfo()
|
static WaitCursor |
getWaitCursor()
|
static java.lang.String |
getWorkDirectory()
|
static Workspaces |
getWorkspaces()
Gets the workspaces. |
static boolean |
isQuitting()
Returns true when the IDE is quitting. |
static boolean |
isRunning()
Returns true when the IDE is running, even if the IDE
is just starting or quitting. |
static boolean |
isStarting()
Returns true when the IDE is starting up. |
static HistoryList |
loadHistoryList(java.lang.String name)
|
static int |
quit(IdeAction action,
Context context)
|
static void |
removeIdeListener(IdeListener l)
Removes a listener to the IDE. |
static void |
setActiveProject(Project project)
|
static void |
setActiveWorkspace(Workspace workspace)
|
static java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Sets the IDE property indicated by the specified key. |
static void |
startup(IdeArgs args)
|
static void |
startup(IdeCore core,
IdeArgs args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static float getVersion()
public static boolean isRunning()
true
when the IDE is running, even if the IDE
is just starting or quitting.
public static IdeMainWindow getMainWindow()
IdeMainWindow
instance.
public static IdeArgs getIdeArgs()
public static java.lang.String getProductVersion()
public static java.lang.String getBinDirectory()
public static java.lang.String getHomeDirectory()
public static java.lang.String getOracleHomeDirectory()
public static java.lang.String getLibDirectory()
public static java.lang.String getUserHomeDirectory()
public static java.lang.String getTrueUserHomeDirectory()
getUserHomeDirectory()
.
public static java.lang.String getSystemDirectory()
public static java.lang.String getWorkDirectory()
public static java.lang.String getProgramName()
public static IdeProperties getIdeProperties()
public static java.lang.String getProperty(java.lang.String key)
key
- the name of the IDE property.
null
if there is no property with that key.setProperty(java.lang.String, java.lang.String)
public static java.lang.String getProperty(java.lang.String key, java.lang.String def)
key
- the name of the IDE property.def
- a default value.
setProperty(java.lang.String, java.lang.String)
public static java.lang.String setProperty(java.lang.String key, java.lang.String value)
key
- the name of the IDE property.value
- the value of the IDE property.
null
if it did not have one.getProperty(java.lang.String)
public static WaitCursor getWaitCursor()
public static ComponentVersionManager getVersionInfo()
public static IdeSettings getSettings()
public static KeyStrokeContextRegistry getKeyStrokeContextRegistry()
public static EnvironOptions getEnvironOptions()
public static DTCache getDTCache()
public static IdeSystem getSystem()
public static Workspaces getWorkspaces()
public static Workspace getActiveWorkspace()
Workspace
. If there is
no currently active Workspace
, this method will return
null.
public static void setActiveWorkspace(Workspace workspace)
public static Project getActiveProject()
Project
. If there is
no currently active Project
, this method will return
null.
public static void setActiveProject(Project project)
public static Project getDefaultProject()
public static Workspace getDefaultWorkspace()
public static MiscellaneousFolder getMiscellaneousFolder()
public static boolean addToMiscellaneousFolder(Element element)
Element
object to the MiscellaneousFolder
.
Does the bookkeeping necessary to determine whether the miscellaneous
folder needs to be displayed and fires the required update
notifications.
public static void addIdeListener(IdeListener l)
IdeListener
public static void removeIdeListener(IdeListener l)
IdeListener
public static javax.swing.InputMap getIdeInputMap()
public static javax.swing.ActionMap getIdeActionMap()
public static boolean isQuitting()
true
when the IDE is quitting.
public static boolean isStarting()
true
when the IDE is starting up. Returns
false
all other times.
public static java.lang.Integer findCmdID(java.lang.String commandName)
public static java.lang.String findCmdName(int cmdID)
public static int createCmdID(java.lang.String commandName)
public static int findOrCreateCmdID(java.lang.String commandName)
Controller
. For the specified
String, this method will return either an existing command ID number
if such a number has already been allotted for the String or a
new command ID.
public static java.util.Map getMacros()
Map
of the macros in use by the IDE.
public static int quit(IdeAction action, Context context)
public static Menubar getMenubar()
menubar
. The menubar is a singleton object
used to add menus to the ide main window.
public static Toolbar getToolbar()
Toolbar
. The toolbar is a singleton
object used to add tools to the ide main window toolbar.
public static StatusBar getStatusBar()
StatusBar
instance.
public static NavigatorWindow getLastActiveNavigator()
public static HistoryList loadHistoryList(java.lang.String name)
public static void startup(IdeArgs args)
public static void startup(IdeCore core, IdeArgs args)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.