org.eclipse.cdt.internal.ui.text.folding
Class DefaultCFoldingPreferenceBlock

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.text.folding.DefaultCFoldingPreferenceBlock
All Implemented Interfaces:
ICFoldingPreferenceBlock

public class DefaultCFoldingPreferenceBlock
extends java.lang.Object
implements ICFoldingPreferenceBlock


Constructor Summary
DefaultCFoldingPreferenceBlock()
           
 
Method Summary
 org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite composite)
          Creates the control that will be displayed on the C/C++ > Editor > Folding preference page.
 void dispose()
          Called when the preference page is being disposed.
 void initialize()
          Called after creating the control.
 void performDefaults()
          Called when the Defaults button is pressed on the preference page.
 void performOk()
          Called when the OK button is pressed on the preference page.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCFoldingPreferenceBlock

public DefaultCFoldingPreferenceBlock()
Method Detail

createControl

public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite composite)
Description copied from interface: ICFoldingPreferenceBlock
Creates the control that will be displayed on the C/C++ > Editor > Folding preference page.

Specified by:
createControl in interface ICFoldingPreferenceBlock
Parameters:
composite - the parent composite to which to add the preferences control
Returns:
the control that was added to parent

performOk

public void performOk()
Description copied from interface: ICFoldingPreferenceBlock
Called when the OK button is pressed on the preference page. Implementations should commit the configured preference settings into their form of preference storage.

Specified by:
performOk in interface ICFoldingPreferenceBlock

initialize

public void initialize()
Description copied from interface: ICFoldingPreferenceBlock
Called after creating the control. Implementations should load the preferences values and update the controls accordingly.

Specified by:
initialize in interface ICFoldingPreferenceBlock

performDefaults

public void performDefaults()
Description copied from interface: ICFoldingPreferenceBlock
Called when the Defaults button is pressed on the preference page. Implementation should reset any preference settings to their default values and adjust the controls accordingly.

Specified by:
performDefaults in interface ICFoldingPreferenceBlock

dispose

public void dispose()
Description copied from interface: ICFoldingPreferenceBlock
Called when the preference page is being disposed. Implementations should free any resources they are holding on to.

Specified by:
dispose in interface ICFoldingPreferenceBlock