org.eclipse.cdt.internal.ui.preferences.formatter
Class ModifyDialogTabPage
java.lang.Object
org.eclipse.cdt.internal.ui.preferences.formatter.ModifyDialogTabPage
- Direct Known Subclasses:
- BracesTabPage, IndentationTabPage, LineWrappingTabPage
public abstract class ModifyDialogTabPage
- extends java.lang.Object
Method Summary |
org.eclipse.swt.widgets.Composite |
createContents(org.eclipse.swt.widgets.Composite parent)
Create the contents of this tab page. |
void |
makeVisible()
This is called when the page becomes visible. |
void |
setInitialFocus()
Each tab page should remember where its last focus was, and reset it
correctly within this method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModifyDialogTabPage
public ModifyDialogTabPage(ModifyDialogTabPage.IModificationListener modifyListener,
java.util.Map workingValues)
createContents
public final org.eclipse.swt.widgets.Composite createContents(org.eclipse.swt.widgets.Composite parent)
- Create the contents of this tab page. Subclasses cannot override this,
instead they must implement
doCreatePreferences
. doCreatePreview
may also
be overridden as necessary.
- Parameters:
parent
- The parent composite
- Returns:
- Created content control
makeVisible
public final void makeVisible()
- This is called when the page becomes visible.
Common tasks to do include:
- Updating the preview.
- Setting the focus
setInitialFocus
public void setInitialFocus()
- Each tab page should remember where its last focus was, and reset it
correctly within this method. This method is only called after
initialization on the first tab page to be displayed in order to restore
the focus of the last session.