oracle.ide
Class MainWindow
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--javax.swing.JFrame
|
+--oracle.ide.MainWindow
- All Implemented Interfaces:
- javax.accessibility.Accessible, Helpable, java.awt.image.ImageObserver, java.awt.MenuContainer, Observer, javax.swing.RootPaneContainer, java.io.Serializable, Subview, ToplevelView, View, javax.swing.WindowConstants
- public abstract class MainWindow
- extends javax.swing.JFrame
- implements ToplevelView, Observer
MainWindow
class implements the main application view.
The Controller
associated with this view is the
Ide
.
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
abstract void |
activate()
This method is responsible for setting the last active view on the
owner. |
abstract void |
addActiveViewListener(ActiveViewListener l)
Adds the specified listener l to the list of active view
listeners. |
abstract void |
close()
Closes the main window. |
abstract void |
deactivate()
Resposible for deactivating the main application window. |
abstract javax.swing.ActionMap |
getActionMap()
Returns an ActionMap for the IDE's accelerator keys. |
abstract javax.swing.JDesktopPane |
getDesktop()
Returns the JDesktopPane managing the
EditorFrame s. |
abstract javax.swing.InputMap |
getInputMap()
Installs the top-level multi-keystroke input map. |
abstract View |
getLastActiveView()
Gets the last active view. |
abstract Menubar |
getMenubar()
Gets the main window menu bar. |
abstract StatusBar |
getStatusBar()
Get the main window status bar. |
abstract Toolbar |
getToolbar()
Gets this view toolbar. |
abstract javax.swing.JMenu |
getTopLevelMenu(java.lang.String menuID)
Retrieves a top level menu declared with registerTopLevelMenu. |
abstract WaitCursor |
getWaitCursor()
Gets a wait cursor that can be shown during lengthy operations. |
View |
owner()
Views can be nested. |
abstract void |
postInitialize(IdeArgs ideArgs)
This method is called after the addins have been loaded. |
abstract void |
registerTopLevelMenu(javax.swing.JMenu menu,
java.lang.String menuID)
Declares a top level menu. |
abstract void |
registerView(View view)
Register a view for participation in active view handling. |
abstract void |
removeActiveViewListener(ActiveViewListener l)
Remove the specified listener l from the list of
active view listeners. |
abstract void |
toggleToolbar()
Show or hide the main window toolbar. |
abstract void |
unregisterView(View view)
Unregister a view from participation in active view handling. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
ACTION_CATEGORY_FILE
public static final java.lang.String ACTION_CATEGORY_FILE
- Command action categories. Use these constants when creating the
IdeAction
associated with with a Command
.
The constant is used to classify your action by category. These
categories along with your action are presented to the user in
the IDE settings dialog for keyboard accelerator customization.
ACTION_CATEGORY_EDIT
public static final java.lang.String ACTION_CATEGORY_EDIT
ACTION_CATEGORY_SEARCH
public static final java.lang.String ACTION_CATEGORY_SEARCH
ACTION_CATEGORY_VIEW
public static final java.lang.String ACTION_CATEGORY_VIEW
ACTION_CATEGORY_PROJECT
public static final java.lang.String ACTION_CATEGORY_PROJECT
ACTION_CATEGORY_TOOLS
public static final java.lang.String ACTION_CATEGORY_TOOLS
ACTION_CATEGORY_WINDOWS
public static final java.lang.String ACTION_CATEGORY_WINDOWS
File
public static javax.swing.JMenu File
- Main application window menus
New
public static javax.swing.JMenuItem New
NewNavigator
public static javax.swing.JMenuItem NewNavigator
Open
public static javax.swing.JMenuItem Open
Reopen
public static javax.swing.JMenu Reopen
Save
public static javax.swing.JMenuItem Save
SaveAs
public static javax.swing.JMenuItem SaveAs
SaveAll
public static javax.swing.JMenuItem SaveAll
Rename
public static javax.swing.JMenuItem Rename
CloseNode
public static javax.swing.JMenuItem CloseNode
RemoveFromIDE
public static javax.swing.JMenuItem RemoveFromIDE
RemoveFromDisk
public static javax.swing.JMenuItem RemoveFromDisk
Import
public static javax.swing.JMenuItem Import
PrinterSetup
public static javax.swing.JMenuItem PrinterSetup
Print
public static javax.swing.JMenuItem Print
Exit
public static javax.swing.JMenuItem Exit
Edit
public static javax.swing.JMenu Edit
Undo
public static javax.swing.JMenuItem Undo
Redo
public static javax.swing.JMenuItem Redo
Cut
public static javax.swing.JMenuItem Cut
Copy
public static javax.swing.JMenuItem Copy
Paste
public static javax.swing.JMenuItem Paste
Delete
public static javax.swing.JMenuItem Delete
SelectAll
public static javax.swing.JMenuItem SelectAll
Properties
public static javax.swing.JMenuItem Properties
Search
public static javax.swing.JMenu Search
Find
public static javax.swing.JMenuItem Find
Replace
public static javax.swing.JMenuItem Replace
SearchAgain
public static javax.swing.JMenuItem SearchAgain
SearchBackward
public static javax.swing.JMenuItem SearchBackward
IncrementalSearchForward
public static javax.swing.JMenuItem IncrementalSearchForward
IncrementalSearchBackward
public static javax.swing.JMenuItem IncrementalSearchBackward
SearchSourcePath
public static javax.swing.JMenuItem SearchSourcePath
GotoLineNumber
public static javax.swing.JMenuItem GotoLineNumber
NextMsg
public static javax.swing.JMenuItem NextMsg
PrevMsg
public static javax.swing.JMenuItem PrevMsg
Navigate
public static javax.swing.JMenuItem Navigate
BrowseSymbol
public static javax.swing.JMenuItem BrowseSymbol
View
public static javax.swing.JMenu View
SystemNavigator
public static javax.swing.JMenuItem SystemNavigator
Explorer
public static javax.swing.JMenuItem Explorer
MessageView
public static javax.swing.JMenuItem MessageView
Inspector
public static javax.swing.JMenuItem Inspector
Toolbars
public static javax.swing.JMenu Toolbars
Toolbar
public static javax.swing.JMenuItem Toolbar
Project
public static javax.swing.JMenu Project
ProjectSettings
public static javax.swing.JMenuItem ProjectSettings
Tools
public static javax.swing.JMenu Tools
IdeSettings
public static javax.swing.JMenuItem IdeSettings
DefaultProjectSettings
public static javax.swing.JMenuItem DefaultProjectSettings
Windows
public static javax.swing.JMenu Windows
NextEditor
public static javax.swing.JMenuItem NextEditor
PrevEditor
public static javax.swing.JMenuItem PrevEditor
NextEditorFrame
public static javax.swing.JMenuItem NextEditorFrame
PrevEditorFrame
public static javax.swing.JMenuItem PrevEditorFrame
Close
public static javax.swing.JMenuItem Close
CloseAll
public static javax.swing.JMenuItem CloseAll
MENU_FILE
public static final java.lang.String MENU_FILE
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
MENU_EDIT
public static final java.lang.String MENU_EDIT
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
MENU_SEARCH
public static final java.lang.String MENU_SEARCH
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
MENU_VIEW
public static final java.lang.String MENU_VIEW
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
MENU_TOOLS
public static final java.lang.String MENU_TOOLS
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
MENU_WINDOW
public static final java.lang.String MENU_WINDOW
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
MENU_HELP
public static final java.lang.String MENU_HELP
- See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String)
,
getTopLevelMenu(java.lang.String)
undoMenuLabel
public static java.lang.String undoMenuLabel
redoMenuLabel
public static java.lang.String redoMenuLabel
MainWindow
public MainWindow()
registerView
public abstract void registerView(View view)
- Register a view for participation in active view handling. Focus events
are monitored in order to determine the View from whose GUI hierarchy the
event was fired. Once determined, that View is set as the active view and
an ActiveViewEvent is fired.
- See Also:
unregisterView(View)
unregisterView
public abstract void unregisterView(View view)
- Unregister a view from participation in active view handling.
- See Also:
registerView(View)
activate
public abstract void activate()
- This method is responsible for setting the last active view on the
owner.
- Specified by:
activate
in interface View
deactivate
public abstract void deactivate()
- Resposible for deactivating the main application window.
- Specified by:
deactivate
in interface View
getLastActiveView
public abstract View getLastActiveView()
- Gets the last active view. In general the main application view keeps
track of the last active view. Other views should just return
owner().getLastActiveView().
The last active view controller is usually invoked when a user executes
a menu or toolbar command.
- Returns:
- the last active view.
postInitialize
public abstract void postInitialize(IdeArgs ideArgs)
- This method is called after the addins have been loaded. It
does final main window initialization just before the main
window becomes visible.
owner
public final View owner()
- Views can be nested. The main application window has no owner.
- Specified by:
owner
in interface Subview
- Returns:
- the owner of this view.
close
public abstract void close()
- Closes the main window.
- Specified by:
close
in interface Subview
getToolbar
public abstract Toolbar getToolbar()
- Gets this view toolbar. Null if view does not have a toolbar.
- Specified by:
getToolbar
in interface ToplevelView
- Returns:
- the view toolbar.
toggleToolbar
public abstract void toggleToolbar()
- Show or hide the main window toolbar.
getStatusBar
public abstract StatusBar getStatusBar()
- Get the main window status bar.
- Specified by:
getStatusBar
in interface ToplevelView
- Following copied from interface:
oracle.ide.addin.ToplevelView
- Returns:
- the statusbar menu.
getWaitCursor
public abstract WaitCursor getWaitCursor()
- Gets a wait cursor that can be shown during lengthy operations.
getMenubar
public abstract Menubar getMenubar()
- Gets the main window menu bar.
- Specified by:
getMenubar
in interface ToplevelView
- Following copied from interface:
oracle.ide.addin.ToplevelView
- Returns:
- the view menu.
addActiveViewListener
public abstract void addActiveViewListener(ActiveViewListener l)
- Adds the specified listener
l
to the list of active view
listeners. These listeners are called every time a view becomes
active.
removeActiveViewListener
public abstract void removeActiveViewListener(ActiveViewListener l)
- Remove the specified listener
l
from the list of
active view listeners.
getDesktop
public abstract javax.swing.JDesktopPane getDesktop()
- Returns the
JDesktopPane
managing the
EditorFrame
s.
getActionMap
public abstract javax.swing.ActionMap getActionMap()
- Returns an ActionMap for the IDE's accelerator keys.
getInputMap
public abstract javax.swing.InputMap getInputMap()
- Installs the top-level multi-keystroke input map.
registerTopLevelMenu
public abstract void registerTopLevelMenu(javax.swing.JMenu menu,
java.lang.String menuID)
- Declares a top level menu.
This allows addins to share menus without introducing explicit dependencies.
getTopLevelMenu
public abstract javax.swing.JMenu getTopLevelMenu(java.lang.String menuID)
- Retrieves a top level menu declared with registerTopLevelMenu.