org.eclipse.cdt.internal.ui.preferences.formatter
Class ModifyDialogTabPage

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.preferences.formatter.ModifyDialogTabPage
Direct Known Subclasses:
BracesTabPage, IndentationTabPage, LineWrappingTabPage

public abstract class ModifyDialogTabPage
extends java.lang.Object


Nested Class Summary
static interface ModifyDialogTabPage.IModificationListener
           
 
Constructor Summary
ModifyDialogTabPage(ModifyDialogTabPage.IModificationListener modifyListener, java.util.Map workingValues)
           
 
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
 

Constructor Detail

ModifyDialogTabPage

public ModifyDialogTabPage(ModifyDialogTabPage.IModificationListener modifyListener,
                           java.util.Map workingValues)
Method Detail

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:


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.