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

java.lang.Object
  extended by java.util.Observable
      extended by org.eclipse.cdt.internal.ui.preferences.formatter.CustomCodeFormatterBlock

public class CustomCodeFormatterBlock
extends java.util.Observable

Allows to choose the formatter in a combo box. If no formatter is contributed, nothing is shown.


Constructor Summary
CustomCodeFormatterBlock(PreferencesAccess access)
           
 
Method Summary
 org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
           
 java.lang.String getFormatterId()
          Get the currently selected formatter id.
 void performDefaults()
           
 void performOk()
           
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCodeFormatterBlock

public CustomCodeFormatterBlock(PreferencesAccess access)
Method Detail

performOk

public void performOk()

performDefaults

public void performDefaults()

getFormatterId

public java.lang.String getFormatterId()
Get the currently selected formatter id.

Returns:
the selected formatter id or null if the default is selected.

createContents

public org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)