com.ibm.dse.tools.workbench.gui
Class DWide

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--com.ibm.dse.tools.workbench.gui.DWide

public class DWide
extends javax.swing.JFrame
implements WorkbenchVariables, ActionVariables, IconNames

This class provides the main frame of the development workbench ide.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Field Summary
static java.lang.String DATE_PATTERN
           
static java.lang.String HOME_DIR
           
static java.lang.String homeDirectory
           
static java.lang.String ICON_DIRECTORY
           
static java.lang.String IDE_SETTINGS
           
protected static DWide instance
           
static java.lang.String LANGUAGE
           
static java.lang.String LOCALE_COUNTRY
           
static java.lang.String LOCALE_LANGUAGE
           
protected static java.lang.String NO_WORKSPACE_AVAILABLE
           
static java.lang.String NUMBER_PATTERN
           
protected static java.lang.String READY_MESSAGE
           
protected  Repository repository
           
protected  RepositoryExplorer repositoryExplorer
           
protected static java.lang.String SECTION
           
static java.lang.String SHOW_CONSOLE_ON_STARTUP
           
static java.lang.String SHOW_VERSION
           
protected static java.lang.String TITLE
           
static java.lang.String TYPE_VALIDATOR_CLASS
           
protected  Workspace userWorkspace
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, 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 com.ibm.dse.tools.workbench.base.WorkbenchVariables
BaseSettings, IDESettings, InstanceWizards, NewInstanceMenu, RepositoryLastURL, RepositoryLastUser, RepositorySettings, ShowConsoleOnStartup, WorkspaceLastURL, WorkspaceLastUser, WorkspaceSettings
 
Fields inherited from interface com.ibm.dse.tools.workbench.gui.ActionVariables
CMD_ADD_TO_WORKSPACE, CMD_CHANGE_REPOSITORY, CMD_CHANGE_WORKSPACE, CMD_CLONE, CMD_CONNECT_REPOSITORY, CMD_COPY, CMD_CREATE_OPEN_EDITION, CMD_CUT, CMD_DELETE, CMD_DISCONNECT_REPOSITORY, CMD_EXIT, CMD_IMPORT_FILE, CMD_LAUNCH_SPECIFIC_WIZARD, CMD_MORPH_INTO, CMD_MOVE, CMD_OPEN_DOMAINS_EXPLORER, CMD_OPEN_FILE, CMD_OPEN_REPOSITORY_EXPLORER, CMD_OPEN_SETTINGS_WIZARD, CMD_OPEN_TO_EDITIONS, CMD_PASTE, CMD_REFRESH_WORKSPACE, CMD_RELOAD_ENVIRONMENT, CMD_SELECT_ALL, CMD_SHOW_CONSOLE, CMD_SHOW_VERSION, CMD_UNDO, CMD_VERSION
 
Fields inherited from interface com.ibm.dse.tools.workbench.gui.IconNames
ATTRIBUTE, ATTRIBUTE_BIG, C_SETTINGS, C_SETTINGS_BIG, CLIENT, CLIENT_SERVER, CONSOLE, CONTEXT, DATA, DEVELOPMENT_WORKBENCH, DOMAIN, DOMAIN_BIG, ENTITY, ENTITY_BIG, ERROR, FILE, FOLDER_CLOSED, FOLDER_OPENED, FORMAT, GROUP, GROUP_BIG, GROUP_CLOSED, GROUP_OPENED, INSTANCE, INSTANCE_BIG, INSTANCE_CLOSED, INSTANCE_OPENED, LIST_VIEW, NONE, OPEN, OPERATION, PROCESS, PROPERTY, PROPERTY_BIG, REPOSITORY, REPOSITORY_BIG, SERVER, SETTINGS, STANDALONE, TREE_VIEW, USER, USERS_BIG, VERSION, VERSION_BIG, VERSION_WINDOW, VIEW, WARNING, WIZARD, WORKSPACE, WORKSPACE_BIG, WORKSPACE_EXPLORER
 
Constructor Summary
DWide()
          This constructor creates a DWide object.
 
Method Summary
protected  void centerWindow()
          This method centers the DWide in the screen
 void createBasicPages()
          This method creates the default pages opened at startup.
 void dispose()
          This method closes the application.
protected  boolean doCreateWorkspaceConnection()
          This method creates a connection to the user workspace, and returns true if the connection has benn changed.
 void doExit()
          This method is executed when the user wants close the application.
protected  void doInitializeEnvironmentSettings()
          This method initializes the environment settings.
protected  void doInitializeGraphicConsole()
          This method initializes the graphic console.
protected  void doReadSettings()
          This method reads the initialization and language files.
 DWideBook getBook()
          Return the Book property value.
static java.lang.String getHomeDirectory()
          This method returns the home directory of the development workbench.
static DWide getInstance()
          This method returns the instance for the current VM of the development workbench ide.
protected  DWideToolBar getToolBar()
          Return the toolBar property value.
 Workspace getUserWorkspace()
          This method returns the user workspace to that the user is connected.
static int indexOf(java.lang.String[] vector, java.lang.String header)
          This method returns the first occurrence of the header in the array.
static void main(java.lang.String[] args)
          main entrypoint - starts the part when it is run as an application
 void refresh()
          This method refreshes the information in the screen, this refresh don't need to retrieve data from the repository.
 void setHomeDirectory(java.lang.String dir)
          This method sets the home Directory
 void setReadyMode()
          This method sets the cursor to the default.
 void setWaitingMode()
          This method sets the cursor to the wait cursor.
 void synchronize()
          This method synchronizes the information in screen and workspace.
protected  void updateStatusBar()
          This method updates the status bar.
 
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, getFocusOwner, getInputContext, 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, 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, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, 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
 

Field Detail

instance

protected static DWide instance

userWorkspace

protected Workspace userWorkspace

repository

protected Repository repository

repositoryExplorer

protected RepositoryExplorer repositoryExplorer

IDE_SETTINGS

public static final java.lang.String IDE_SETTINGS

HOME_DIR

public static final java.lang.String HOME_DIR

LANGUAGE

public static final java.lang.String LANGUAGE

SHOW_CONSOLE_ON_STARTUP

public static final java.lang.String SHOW_CONSOLE_ON_STARTUP

SHOW_VERSION

public static final java.lang.String SHOW_VERSION

homeDirectory

public static java.lang.String homeDirectory

ICON_DIRECTORY

public static final java.lang.String ICON_DIRECTORY

TYPE_VALIDATOR_CLASS

public static final java.lang.String TYPE_VALIDATOR_CLASS

DATE_PATTERN

public static final java.lang.String DATE_PATTERN

NUMBER_PATTERN

public static final java.lang.String NUMBER_PATTERN

LOCALE_LANGUAGE

public static final java.lang.String LOCALE_LANGUAGE

LOCALE_COUNTRY

public static final java.lang.String LOCALE_COUNTRY

SECTION

protected static final java.lang.String SECTION

TITLE

protected static final java.lang.String TITLE

NO_WORKSPACE_AVAILABLE

protected static final java.lang.String NO_WORKSPACE_AVAILABLE

READY_MESSAGE

protected static final java.lang.String READY_MESSAGE
Constructor Detail

DWide

public DWide()
This constructor creates a DWide object.
Method Detail

centerWindow

protected void centerWindow()
This method centers the DWide in the screen

createBasicPages

public void createBasicPages()
This method creates the default pages opened at startup.

dispose

public void dispose()
This method closes the application.
Overrides:
dispose in class java.awt.Window

doCreateWorkspaceConnection

protected boolean doCreateWorkspaceConnection()
                                       throws WorkbenchException
This method creates a connection to the user workspace, and returns true if the connection has benn changed.
Returns:
boolean
Throws:
WorkbenchException - An error ocurred when connecting to the workspace.

doExit

public void doExit()
This method is executed when the user wants close the application.

doInitializeEnvironmentSettings

protected void doInitializeEnvironmentSettings()
This method initializes the environment settings.

doInitializeGraphicConsole

protected void doInitializeGraphicConsole()
This method initializes the graphic console.

doReadSettings

protected void doReadSettings()
                       throws WorkbenchException
This method reads the initialization and language files.
Throws:
WorkbenchException - An error ocurred when reading the settings files.

getBook

public DWideBook getBook()
Return the Book property value.
Returns:
com.ibm.dse.tools.workbench.wizards.DWideBook

getHomeDirectory

public static java.lang.String getHomeDirectory()
This method returns the home directory of the development workbench.
Returns:
java.lang.String

getInstance

public static DWide getInstance()
This method returns the instance for the current VM of the development workbench ide.
Returns:
com.ibm.dse.tools.workbench.gui.DWide

getToolBar

protected DWideToolBar getToolBar()
Return the toolBar property value.
Returns:
com.ibm.dse.tools.workbench.wizards.DWideToolBar

getUserWorkspace

public Workspace getUserWorkspace()
This method returns the user workspace to that the user is connected.
Returns:
com.ibm.dse.tools.workbench.base.Workspace

indexOf

public static int indexOf(java.lang.String[] vector,
                          java.lang.String header)
This method returns the first occurrence of the header in the array.
Parameters:
vector - java.lang.String[]
header - java.lang.String
Returns:
int

main

public static void main(java.lang.String[] args)
main entrypoint - starts the part when it is run as an application
Parameters:
args - java.lang.String[]

refresh

public void refresh()
This method refreshes the information in the screen, this refresh don't need to retrieve data from the repository.

setHomeDirectory

public void setHomeDirectory(java.lang.String dir)
This method sets the home Directory
Parameters:
dir - java.lang.String

setReadyMode

public void setReadyMode()
This method sets the cursor to the default.

setWaitingMode

public void setWaitingMode()
This method sets the cursor to the wait cursor.

synchronize

public void synchronize()
This method synchronizes the information in screen and workspace.

updateStatusBar

protected void updateStatusBar()
This method updates the status bar.