org.eclipse.cdt.internal.ui.preferences.formatter
Class CustomCodeFormatterBlock
java.lang.Object
java.util.Observable
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.
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 |
CustomCodeFormatterBlock
public CustomCodeFormatterBlock(PreferencesAccess access)
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)