|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame oracle.javatools.MainWindow oracle.ide.IdeMainWindow
This class implements the main application view. The
Controller
associated with this View
is the
Ide
.
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
Constant representing the action category for 'Edit' menu items. |
static java.lang.String |
ACTION_CATEGORY_FILE
Constant representing the action category for 'File' menu items. |
static java.lang.String |
ACTION_CATEGORY_NAVIGATE
Constant representing the action category for 'Navigate' menu items. |
static java.lang.String |
ACTION_CATEGORY_SEARCH
Constant representing the action category for 'Search' menu items. |
static java.lang.String |
ACTION_CATEGORY_TOOLS
Constant representing the action category for 'Tools' menu items. |
static java.lang.String |
ACTION_CATEGORY_VIEW
Constant representing the action category for 'View' menu items. |
static java.lang.String |
ACTION_CATEGORY_WINDOWS
Constant representing the action category for 'Windows' menu items. |
static java.lang.String |
MENU_EDIT
Constant used with Environment.getJMenu(java.lang.String)
to locate the Edit menu. |
static java.lang.String |
MENU_FILE
Constant used with Environment.getJMenu(java.lang.String)
to locate the File menu. |
static java.lang.String |
MENU_FILE_REOPEN
Constant used with Environment.getJMenu(java.lang.String)
to locate the File | Reopen submenu. |
static java.lang.String |
MENU_HELP
Constant used with Environment.getJMenu(java.lang.String)
to locate the Help menu. |
static java.lang.String |
MENU_NAVIGATE
Constant used with Environment.getJMenu(java.lang.String)
to locate the Navigate menu. |
static java.lang.String |
MENU_RUN
Constant used with Environment.getJMenu(java.lang.String)
to locate the Run menu. |
static java.lang.String |
MENU_SEARCH
Constant used with Environment.getJMenu(java.lang.String)
to locate the Search menu. |
static java.lang.String |
MENU_TOOLS
Constant used with Environment.getJMenu(java.lang.String)
to locate the Tools menu. |
static java.lang.String |
MENU_VIEW
Constant used with Environment.getJMenu(java.lang.String)
to locate the View menu. |
static java.lang.String |
MENU_VIEW_OPTIONS
Constant used with Environment.getJMenu(java.lang.String)
to locate the View | Options submenu. |
static java.lang.String |
MENU_VIEW_TOOLBARS
Constant used with Environment.getJMenu(java.lang.String)
to locate the View | Toolbars submenu. |
static java.lang.String |
MENU_WINDOW
Constant used with Environment.getJMenu(java.lang.String)
to locate the Window menu. |
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 | |
IdeMainWindow()
|
Method Summary | |
void |
activate()
Respond to the fact that this View is now the active view (e.g. |
abstract void |
addActiveViewListener(ActiveViewListener l)
Adds the specified listener l to the list of active view
listeners. |
abstract void |
addDynamicMenuListener(DynamicMenuListener listener)
Adds the specified listener listener to the list
of active view listeners. |
abstract void |
addIdeActivationListener(IdeActivationListener l)
Adds a listener to IDE activation. |
void |
addViewListener(ViewListener l)
Add a ViewListener. |
void |
addViewSelectionListener(ViewSelectionListener l)
Add a ViewSelectionListener. |
void |
close()
Close the view |
protected Menubar |
createMenubar()
|
protected StatusBar |
createStatusBar()
|
protected Toolbar |
createToolbar()
|
void |
deactivate()
Respond to the fact that this View is no longer the active view |
protected javax.swing.ActionMap |
getActionMap()
Returns an ActionMap for the IDE's accelerator keys. |
protected abstract ActiveViewHandler |
getActiveViewHandler()
|
Context |
getContext()
Gets the current view context. |
Context |
getContext(java.util.EventObject event)
Get the current view context for the given EventObject. |
ContextMenu |
getContextMenu()
Get the ContextMenu object, if any, managed by this View. |
Controller |
getController()
Get the Controller associated with this view. |
java.awt.Component |
getGUI()
Get the root graphical user interface component. |
HelpInfo |
getHelpInfo()
|
java.lang.String |
getId()
Unique id identifying this view. |
protected javax.swing.InputMap |
getInputMap()
Installs the top-level multi-keystroke input map. |
abstract View |
getLastActiveView()
Gets the last active view. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
|
protected Menubar |
getMenubar()
|
Element[] |
getSelection()
Get the selection. |
protected StatusBar |
getStatusBar()
|
Toolbar |
getToolbar()
Get the toolbar associated with this view. |
abstract java.util.List |
getVisibleViews()
|
void |
initialize()
When the application starts up, each module is given the opportunity to perform initialization tasks. |
View |
owner()
Get the owning View. |
protected void |
postInitialize(IdeArgs ideArgs)
This method is called after the addins have been loaded. |
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 |
removeDynamicMenuListener(DynamicMenuListener listener)
Remove the specified listener listener from the list of
active menu listeners. |
abstract void |
removeIdeActivationListener(IdeActivationListener l)
Removes a listener to IDE activation. |
void |
removeViewListener(ViewListener l)
Remove a ViewListener. |
void |
removeViewSelectionListener(ViewSelectionListener l)
Remmove a ViewSelectionListener. |
void |
setStatusBarVisible(boolean visible)
|
void |
setToolbarVisible(boolean visible)
Set the visibility of any toolbar associated with this view. |
protected void |
terminateIde()
|
abstract void |
unregisterView(View view)
Unregister a view from participation in active view handling. |
protected void |
updateStatusBarAction()
Call this after the action has been created to ensure that the action's toggled state is synched with the property. |
void |
updateTitle(java.lang.Object ctx)
Called when the view needs to update its title based on the specified object. |
static void |
updateVisibleActions()
|
void |
updateVisibleActions(UpdateInfo updateInfo)
Called when the IDE or an extension requests that the View update the enabled state of any actions that are visible on screen. |
Methods inherited from class oracle.javatools.MainWindow |
getMainIcon, getMainTitle, getMainWindow, getMainWindow0, getWindowListener, initGeometry, loadMainMenu, setMainWindow, terminate |
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, 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.View |
isVisible, show |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public static final java.lang.String MENU_FILE
Environment.getJMenu(java.lang.String)
to locate the File menu.
public static final java.lang.String MENU_FILE_REOPEN
Environment.getJMenu(java.lang.String)
to locate the File | Reopen submenu.
public static final java.lang.String MENU_EDIT
Environment.getJMenu(java.lang.String)
to locate the Edit menu.
public static final java.lang.String MENU_VIEW
Environment.getJMenu(java.lang.String)
to locate the View menu.
public static final java.lang.String MENU_VIEW_OPTIONS
Environment.getJMenu(java.lang.String)
to locate the View | Options submenu.
public static final java.lang.String MENU_VIEW_TOOLBARS
Environment.getJMenu(java.lang.String)
to locate the View | Toolbars submenu.
public static final java.lang.String MENU_SEARCH
Environment.getJMenu(java.lang.String)
to locate the Search menu.
public static final java.lang.String MENU_NAVIGATE
Environment.getJMenu(java.lang.String)
to locate the Navigate menu.
public static final java.lang.String MENU_RUN
Environment.getJMenu(java.lang.String)
to locate the Run menu.
public static final java.lang.String MENU_TOOLS
Environment.getJMenu(java.lang.String)
to locate the Tools menu.
public static final java.lang.String MENU_WINDOW
Environment.getJMenu(java.lang.String)
to locate the Window menu.
public static final java.lang.String MENU_HELP
Environment.getJMenu(java.lang.String)
to locate the Help menu.
public static final java.lang.String ACTION_CATEGORY_FILE
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
public static final java.lang.String ACTION_CATEGORY_EDIT
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
public static final java.lang.String ACTION_CATEGORY_VIEW
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
public static final java.lang.String ACTION_CATEGORY_SEARCH
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
public static final java.lang.String ACTION_CATEGORY_NAVIGATE
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
public static final java.lang.String ACTION_CATEGORY_TOOLS
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
public static final java.lang.String ACTION_CATEGORY_WINDOWS
This constant should be used when creating the IdeAction
associated with a Command
to classify
the action by category. The value of this constant is a
translatable string that is presented to the user in the IDE
Preferences dialog for keyboard accelerator customization.
Constructor Detail |
public IdeMainWindow()
Method Detail |
public abstract void registerView(View view)
unregisterView(View)
public abstract void unregisterView(View view)
registerView(View)
public abstract View getLastActiveView()
public abstract java.util.List getVisibleViews()
protected abstract ActiveViewHandler getActiveViewHandler()
public abstract void addActiveViewListener(ActiveViewListener l)
l
to the list of active view
listeners. These listeners are called every time a view becomes
active.
public abstract void removeActiveViewListener(ActiveViewListener l)
l
from the list of
active view listeners.
public abstract void addIdeActivationListener(IdeActivationListener l)
public abstract void removeIdeActivationListener(IdeActivationListener l)
public abstract void addDynamicMenuListener(DynamicMenuListener listener)
listener
to the list
of active view listeners. Listeners are notified before the dynamic
menu is displayed, and can add any relevent commands to the
dynamic menu.
public abstract void removeDynamicMenuListener(DynamicMenuListener listener)
listener
from the list of
active menu listeners.
public static final void updateVisibleActions()
public Controller getController()
ControllerProvider
Controller
associated with this view.
getController
in interface ControllerProvider
public View owner()
View
IdeMainWindow
as their owner, but should return a different
value if nested within another View.
owner
in interface View
public void close()
View
close
in interface View
public java.awt.Component getGUI()
View
getGUI
in interface View
public Context getContext()
View
getContext
in interface View
public Context getContext(java.util.EventObject event)
View
getContext
in interface View
event
- event associated with the context;public ContextMenu getContextMenu()
View
getContextMenu
in interface View
public void activate()
View
activate
in interface View
public void deactivate()
View
deactivate
in interface View
public final Element[] getSelection()
View
getSelection
in interface View
public java.lang.String getId()
View
getId
in interface View
public void updateTitle(java.lang.Object ctx)
View
updateTitle
in interface View
public void updateVisibleActions(UpdateInfo updateInfo)
View
updateVisibleActions
in interface View
updateInfo
- This parameter provides information on what
is triggering the update. Implementations may make use of this
information to decide whether or not an update is necessary,
since updating the enabled state of a toolbar button may be a
lengthy operation. For example, buttons that control a remote
debugger would involve network I/O and evaluating their updated
state could be avoided if the updateInfo indicates that the
source of the update is not relevant to the debugger.public Toolbar getToolbar()
View
getToolbar
in interface View
public void setStatusBarVisible(boolean visible)
public void setToolbarVisible(boolean visible)
View
setToolbarVisible
in interface View
visible
- true to display the Toolbar, false to hide the Toolbarpublic void addViewListener(ViewListener l)
View
addViewListener
in interface View
l
- the ViewListener to add.public void removeViewListener(ViewListener l)
View
removeViewListener
in interface View
l
- the ViewListener to remove.public void addViewSelectionListener(ViewSelectionListener l)
View
addViewSelectionListener
in interface View
l
- the ViewSelectionListener to add.public void removeViewSelectionListener(ViewSelectionListener l)
View
removeViewSelectionListener
in interface View
l
- the ViewSelectionListener to remove.public HelpInfo getHelpInfo()
getHelpInfo
in interface Helpable
public void initialize()
Module
initialize
in interface Module
initialize
in class MainWindow
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
protected void postInitialize(IdeArgs ideArgs)
protected final Menubar getMenubar()
protected Menubar createMenubar()
protected Toolbar createToolbar()
protected final StatusBar getStatusBar()
protected void updateStatusBarAction()
protected StatusBar createStatusBar()
protected javax.swing.ActionMap getActionMap()
protected javax.swing.InputMap getInputMap()
protected final void terminateIde()
|
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.