com.aptana.ide.ui.editors.preferences.formatter
Class ModifyDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.jface.dialogs.StatusDialog
                  extended by com.aptana.ide.ui.editors.preferences.formatter.ModifyDialog
All Implemented Interfaces:
ModifyDialogTabPage.IModificationListener, org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
FormatterModifyDialog

public abstract class ModifyDialog
extends org.eclipse.jface.dialogs.StatusDialog
implements ModifyDialogTabPage.IModificationListener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
ModifyDialog(org.eclipse.swt.widgets.Shell parentShell, ProfileManager.Profile profile, ProfileManager profileManager, ProfileStore profileStore, boolean newProfile, java.lang.String dialogPreferencesKey, java.lang.String lastSavePathKey)
           
 
Method Summary
protected abstract  void addPages(java.util.Map values)
           
protected  void addTabPage(java.lang.String title, ModifyDialogTabPage tabPage)
           
protected  void buttonPressed(int buttonId)
           
 boolean close()
           
 void create()
           
protected  void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.graphics.Point getInitialLocation(org.eclipse.swt.graphics.Point initialSize)
           
protected  org.eclipse.swt.graphics.Point getInitialSize()
           
protected  void okPressed()
           
protected  void updateButtonsEnableState(org.eclipse.core.runtime.IStatus status)
           
 void updateStatus(org.eclipse.core.runtime.IStatus status)
           
 void valuesModified()
           
 
Methods inherited from class org.eclipse.jface.dialogs.StatusDialog
configureShell, createButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifyDialog

public ModifyDialog(org.eclipse.swt.widgets.Shell parentShell,
                    ProfileManager.Profile profile,
                    ProfileManager profileManager,
                    ProfileStore profileStore,
                    boolean newProfile,
                    java.lang.String dialogPreferencesKey,
                    java.lang.String lastSavePathKey)
Parameters:
parentShell -
profile -
profileManager -
profileStore -
newProfile -
dialogPreferencesKey -
lastSavePathKey -
Method Detail

addPages

protected abstract void addPages(java.util.Map values)
Parameters:
values -

create

public void create()
Overrides:
create in class org.eclipse.jface.dialogs.StatusDialog
See Also:
StatusDialog.create()

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)

updateStatus

public void updateStatus(org.eclipse.core.runtime.IStatus status)
Specified by:
updateStatus in interface ModifyDialogTabPage.IModificationListener
Overrides:
updateStatus in class org.eclipse.jface.dialogs.StatusDialog
See Also:
StatusDialog.updateStatus(org.eclipse.core.runtime.IStatus)

getInitialSize

protected org.eclipse.swt.graphics.Point getInitialSize()
Overrides:
getInitialSize in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.getInitialSize()

getInitialLocation

protected org.eclipse.swt.graphics.Point getInitialLocation(org.eclipse.swt.graphics.Point initialSize)
Overrides:
getInitialLocation in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.getInitialLocation(org.eclipse.swt.graphics.Point)

close

public boolean close()
Overrides:
close in class org.eclipse.jface.dialogs.TrayDialog
See Also:
TrayDialog.close()

okPressed

protected void okPressed()
Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.okPressed()

buttonPressed

protected void buttonPressed(int buttonId)
Overrides:
buttonPressed in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.buttonPressed(int)

createButtonsForButtonBar

protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Overrides:
createButtonsForButtonBar in class org.eclipse.jface.dialogs.StatusDialog
See Also:
StatusDialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)

addTabPage

protected final void addTabPage(java.lang.String title,
                                ModifyDialogTabPage tabPage)
Parameters:
title -
tabPage -

valuesModified

public void valuesModified()
Specified by:
valuesModified in interface ModifyDialogTabPage.IModificationListener
See Also:
ModifyDialogTabPage.IModificationListener.valuesModified()

updateButtonsEnableState

protected void updateButtonsEnableState(org.eclipse.core.runtime.IStatus status)
Overrides:
updateButtonsEnableState in class org.eclipse.jface.dialogs.StatusDialog
See Also:
StatusDialog.updateButtonsEnableState(org.eclipse.core.runtime.IStatus)