Extension SDK

oracle.ide
Class MainWindow

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended byoracle.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

Nested Class Summary
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String ACTION_CATEGORY_EDIT
           
static java.lang.String ACTION_CATEGORY_FILE
          Command action categories.
static java.lang.String ACTION_CATEGORY_PROJECT
           
static java.lang.String ACTION_CATEGORY_SEARCH
           
static java.lang.String ACTION_CATEGORY_TOOLS
           
static java.lang.String ACTION_CATEGORY_VIEW
           
static java.lang.String ACTION_CATEGORY_WINDOWS
           
static javax.swing.JMenuItem BrowseSymbol
           
static javax.swing.JMenuItem Close
           
static javax.swing.JMenuItem CloseAll
           
static javax.swing.JMenuItem CloseNode
           
static javax.swing.JMenuItem Copy
           
static javax.swing.JMenuItem Cut
           
static javax.swing.JMenuItem DefaultProjectSettings
           
static javax.swing.JMenuItem Delete
           
static javax.swing.JMenu Edit
           
static javax.swing.JMenuItem Exit
           
static javax.swing.JMenuItem Explorer
           
static javax.swing.JMenu File
          Main application window menus
static javax.swing.JMenuItem Find
           
static javax.swing.JMenuItem GotoLineNumber
           
static javax.swing.JMenuItem IdeSettings
           
static javax.swing.JMenuItem Import
           
static javax.swing.JMenuItem IncrementalSearchBackward
           
static javax.swing.JMenuItem IncrementalSearchForward
           
static javax.swing.JMenuItem Inspector
           
static java.lang.String MENU_EDIT
           
static java.lang.String MENU_FILE
           
static java.lang.String MENU_HELP
           
static java.lang.String MENU_SEARCH
           
static java.lang.String MENU_TOOLS
           
static java.lang.String MENU_VIEW
           
static java.lang.String MENU_WINDOW
           
static javax.swing.JMenuItem MessageView
           
static javax.swing.JMenuItem Navigate
           
static javax.swing.JMenuItem New
           
static javax.swing.JMenuItem NewNavigator
           
static javax.swing.JMenuItem NextEditor
           
static javax.swing.JMenuItem NextEditorFrame
           
static javax.swing.JMenuItem NextMsg
           
static javax.swing.JMenuItem Open
           
static javax.swing.JMenuItem Paste
           
static javax.swing.JMenuItem PrevEditor
           
static javax.swing.JMenuItem PrevEditorFrame
           
static javax.swing.JMenuItem PrevMsg
           
static javax.swing.JMenuItem Print
           
static javax.swing.JMenuItem PrinterSetup
           
static javax.swing.JMenu Project
           
static javax.swing.JMenuItem ProjectSettings
           
static javax.swing.JMenuItem Properties
           
static javax.swing.JMenuItem Redo
           
static java.lang.String redoMenuLabel
           
static javax.swing.JMenuItem RemoveFromDisk
           
static javax.swing.JMenuItem RemoveFromIDE
           
static javax.swing.JMenuItem Rename
           
static javax.swing.JMenu Reopen
           
static javax.swing.JMenuItem Replace
           
static javax.swing.JMenuItem Revert
           
static javax.swing.JMenuItem Save
           
static javax.swing.JMenuItem SaveAll
           
static javax.swing.JMenuItem SaveAs
           
static javax.swing.JMenu Search
           
static javax.swing.JMenuItem SearchAgain
           
static javax.swing.JMenuItem SearchBackward
           
static javax.swing.JMenuItem SearchSourcePath
           
static javax.swing.JMenuItem SelectAll
           
static javax.swing.JMenuItem SystemNavigator
           
static javax.swing.JMenuItem Toolbar
           
static javax.swing.JMenu Toolbars
           
static javax.swing.JMenu Tools
           
static javax.swing.JMenuItem Undo
           
static java.lang.String undoMenuLabel
           
static javax.swing.JMenu View
           
static javax.swing.JMenu Windows
           
 
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, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, 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 oracle.ide.addin.View
PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
 
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
 
Constructor Summary
MainWindow()
           
 
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 addIdeActivationListener(IdeActivationListener l)
          Adds a listener to IDE activation.
abstract  void close()
          Closes the main window.
abstract  void deactivate()
          Resposible for deactivating the main application window.
abstract  void fireIdeActivated()
          Fires the event for IDE activation.
abstract  void fireIdeDeactivated()
          Fires the event for IDE deactivation.
abstract  javax.swing.ActionMap getActionMap()
          Returns an ActionMap for the IDE's accelerator keys.
abstract  javax.swing.JDesktopPane getDesktop()
          Returns the JDesktopPane managing the EditorFrames.
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 removeIdeActivationListener(IdeActivationListener l)
          Removes a listener to IDE activation.
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, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.ide.addin.ToplevelView
add, initialize
 
Methods inherited from interface oracle.ide.addin.View
addViewListener, addViewSelectionListener, getContext, getId, getSelection, removeViewListener, removeViewSelectionListener, updateTitle
 
Methods inherited from interface oracle.ide.help.Helpable
getHelpInfo
 
Methods inherited from interface oracle.ide.addin.Subview
getContext, getContextMenu, getController, getGUI, isVisible, show
 
Methods inherited from interface oracle.ide.addin.Observer
update
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

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

Revert

public static javax.swing.JMenuItem Revert

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), Constant Field Values

MENU_EDIT

public static final java.lang.String MENU_EDIT
See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String), getTopLevelMenu(java.lang.String), Constant Field Values

MENU_SEARCH

public static final java.lang.String MENU_SEARCH
See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String), getTopLevelMenu(java.lang.String), Constant Field Values

MENU_VIEW

public static final java.lang.String MENU_VIEW
See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String), getTopLevelMenu(java.lang.String), Constant Field Values

MENU_TOOLS

public static final java.lang.String MENU_TOOLS
See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String), getTopLevelMenu(java.lang.String), Constant Field Values

MENU_WINDOW

public static final java.lang.String MENU_WINDOW
See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String), getTopLevelMenu(java.lang.String), Constant Field Values

MENU_HELP

public static final java.lang.String MENU_HELP
See Also:
registerTopLevelMenu(javax.swing.JMenu, java.lang.String), getTopLevelMenu(java.lang.String), Constant Field Values

undoMenuLabel

public static java.lang.String undoMenuLabel

redoMenuLabel

public static java.lang.String redoMenuLabel
Constructor Detail

MainWindow

public MainWindow()
Method Detail

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
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
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 EditorFrames.


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.


addIdeActivationListener

public abstract void addIdeActivationListener(IdeActivationListener l)
Adds a listener to IDE activation.


removeIdeActivationListener

public abstract void removeIdeActivationListener(IdeActivationListener l)
Removes a listener to IDE activation.


fireIdeDeactivated

public abstract void fireIdeDeactivated()
Fires the event for IDE deactivation.


fireIdeActivated

public abstract void fireIdeActivated()
Fires the event for IDE activation.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.