Class SdkRow
java.lang.Object
org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
org.libreoffice.ide.eclipse.core.gui.rows.ChoiceRow
org.libreoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
org.libreoffice.ide.eclipse.core.gui.rows.SdkRow
Row displaying the selection of an SDK instance.
-
Field Summary
Fields inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
LAYOUT_COLUMNS, mBrowse, mField, mLabel, mListener, mProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddListener(IConfigListener configListener) Add the configuration listener to the correct configuration container.protected AbstractTablecreateTable(org.eclipse.swt.widgets.Composite pParent) Create the table to show the configuration elements in the dialog.protected String[]protected StringgetElementName(Object pToSelect) Computes the name to use to select the given object.protected Stringprotected Stringprotected voidremoveListener(IConfigListener configListener) Remove the configuration listener from the correct configuration container.protected voidSave the configuration element preferences.Methods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.AbstractConfigRow
disposeMethods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.ChoiceRow
add, add, add, add, addAll, getItem, getItemCount, getValue, getValue, remove, remove, remove, removeAll, select, select, setBrowseSelectionListenerMethods inherited from class org.libreoffice.ide.eclipse.core.gui.rows.LabeledRow
addBrowseSelectionListener, createContent, fillRow, fireFieldChangedEvent, getLabel, getProperty, removeFieldChangedlistener, setEnabled, setFieldChangedListener, setLabel, setTooltip, setVisible
-
Constructor Details
-
SdkRow
Constructor.- Parameters:
pParent- the composite where to create the rowpProperty- the property for the row eventspToSelect- the configuration element to select first
-
-
Method Details
-
addListener
Add the configuration listener to the correct configuration container.- Specified by:
addListenerin classAbstractConfigRow- Parameters:
configListener- the listener to add
-
removeListener
Remove the configuration listener from the correct configuration container.- Specified by:
removeListenerin classAbstractConfigRow- Parameters:
configListener- the listener to remove
-
createTable
Create the table to show the configuration elements in the dialog.- Specified by:
createTablein classAbstractConfigRow- Parameters:
pParent- the parent for the table.- Returns:
- the initialized table
-
getConfigValues
- Specified by:
getConfigValuesin classAbstractConfigRow- Returns:
- the values to show in the list box.
-
getRowLabel
- Specified by:
getRowLabelin classAbstractConfigRow- Returns:
- the label to show for the row
-
getElementName
Computes the name to use to select the given object.- Specified by:
getElementNamein classAbstractConfigRow- Parameters:
pToSelect- the configuration object for which to get the name- Returns:
- the name to use for the selection
-
getTableDialogTitle
- Specified by:
getTableDialogTitlein classAbstractConfigRow- Returns:
- the title of the configuration dialog.
-
savePreferences
protected void savePreferences()Save the configuration element preferences.- Specified by:
savePreferencesin classAbstractConfigRow
-