com.aptana.ide.debug.internal.ui.propertypages
Class JSLineBreakpointPropertyPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by org.eclipse.ui.dialogs.PropertyPage
              extended by com.aptana.ide.debug.internal.ui.propertypages.JSLineBreakpointPropertyPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.ui.IWorkbenchPropertyPage

public class JSLineBreakpointPropertyPage
extends org.eclipse.ui.dialogs.PropertyPage
implements org.eclipse.ui.IWorkbenchPropertyPage

Author:
Max Stepanov

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
JSLineBreakpointPropertyPage()
           
 
Method Summary
 void addErrorMessage(java.lang.String message)
          Adds the given error message to the errors currently displayed on this page.
protected  org.eclipse.swt.widgets.Button createCheckButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
          Creates a fully configured check button with the given text.
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Text createMultiText(org.eclipse.swt.widgets.Composite parent, java.lang.String initialValue)
          Creates a fully configured text editor with the given initial value
protected  org.eclipse.swt.widgets.Button createRadioButton(org.eclipse.swt.widgets.Composite parent, java.lang.String text)
          Creates a fully configured radio button with the given text.
protected  org.eclipse.swt.widgets.Text createText(org.eclipse.swt.widgets.Composite parent, java.lang.String initialValue)
          Creates a fully configured text editor with the given initial value
protected  void doStore()
          doStore
 boolean performOk()
          Store the breakpoint properties.
 void removeErrorMessage(java.lang.String message)
          Removes the given error message from the errors currently displayed on this page.
 
Methods inherited from class org.eclipse.ui.dialogs.PropertyPage
getElement, setElement
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performDefaults, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPropertyPage
getElement, setElement
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Constructor Detail

JSLineBreakpointPropertyPage

public JSLineBreakpointPropertyPage()
Method Detail

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
Specified by:
createContents in class org.eclipse.jface.preference.PreferencePage
See Also:
PreferencePage.createContents(org.eclipse.swt.widgets.Composite)

createText

protected org.eclipse.swt.widgets.Text createText(org.eclipse.swt.widgets.Composite parent,
                                                  java.lang.String initialValue)
Creates a fully configured text editor with the given initial value

Parameters:
parent -
initialValue -
Returns:
the configured text editor

createMultiText

protected org.eclipse.swt.widgets.Text createMultiText(org.eclipse.swt.widgets.Composite parent,
                                                       java.lang.String initialValue)
Creates a fully configured text editor with the given initial value

Parameters:
parent -
initialValue -
Returns:
the configured text editor

createCheckButton

protected org.eclipse.swt.widgets.Button createCheckButton(org.eclipse.swt.widgets.Composite parent,
                                                           java.lang.String text)
Creates a fully configured check button with the given text.

Parameters:
parent - the parent composite
text - the label of the returned check button
Returns:
a fully configured check button

createRadioButton

protected org.eclipse.swt.widgets.Button createRadioButton(org.eclipse.swt.widgets.Composite parent,
                                                           java.lang.String text)
Creates a fully configured radio button with the given text.

Parameters:
parent - the parent composite
text - the label of the returned radio button
Returns:
a fully configured radio button

addErrorMessage

public void addErrorMessage(java.lang.String message)
Adds the given error message to the errors currently displayed on this page. The page displays the most recently added error message. Clients should retain messages that are passed into this method as the message should later be passed into removeErrorMessage(String) to clear the error. This method should be used instead of setErrorMessage(String).

Parameters:
message - the error message to display on this page.

removeErrorMessage

public void removeErrorMessage(java.lang.String message)
Removes the given error message from the errors currently displayed on this page. When an error message is removed, the page displays the error that was added before the given message. This is akin to popping the message from a stack. Clients should call this method instead of setErrorMessage(null).

Parameters:
message - the error message to clear

performOk

public boolean performOk()
Store the breakpoint properties.

Specified by:
performOk in interface org.eclipse.jface.preference.IPreferencePage
Overrides:
performOk in class org.eclipse.jface.preference.PreferencePage
See Also:
IPreferencePage.performOk()

doStore

protected void doStore()
                throws org.eclipse.core.runtime.CoreException
doStore

Throws:
org.eclipse.core.runtime.CoreException