org.eclipse.cdt.managedbuilder.ui.properties
Class ToolSettingsTab
java.lang.Object
org.eclipse.cdt.ui.newui.AbstractCPropertyTab
org.eclipse.cdt.managedbuilder.ui.properties.AbstractCBuildPropertyTab
org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab
- All Implemented Interfaces:
- ICPropertyTab, org.eclipse.jface.preference.IPreferencePageContainer
public class ToolSettingsTab
- extends AbstractCBuildPropertyTab
- implements org.eclipse.jface.preference.IPreferencePageContainer
Fields inherited from class org.eclipse.cdt.ui.newui.AbstractCPropertyTab |
ADD_STR, BUTTON_WIDTH, DEL_STR, EDIT_STR, EMPTY_STR, FILESYSTEM_DIR_DIALOG_MSG, FILESYSTEM_FILE_DIALOG_TITLE, FILESYSTEMBUTTON_NAME, MOVEDOWN_STR, MOVEUP_STR, page, USE_TRI_STATE, VARIABLESBUTTON_NAME, WORKSPACE_DIR_DIALOG_ERR, WORKSPACE_DIR_DIALOG_MSG, WORKSPACE_DIR_DIALOG_TITLE, WORKSPACE_FILE_DIALOG_ERR, WORKSPACE_FILE_DIALOG_MSG, WORKSPACE_FILE_DIALOG_TITLE, WORKSPACEBUTTON_NAME |
Method Summary |
boolean |
canBeVisible()
Returns true (by default) if page's contents is correct
Returns false if page cannot be shown because it does
not fit to other settings (for example, managed build
settings are not possible when managed build is off). |
void |
createControls(org.eclipse.swt.widgets.Composite par)
Creates basic widgets for property tab. |
org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
|
boolean |
isDirty()
Returns the "dirty" state |
BuildMacroProvider |
obtainMacroProvider()
Returns the build macro provider to be used for macro resolution
In case the "Build Macros" tab is available, returns the BuildMacroProvider
supplied by that tab. |
void |
performDefaults()
|
void |
setDirty(boolean b)
Sets the "dirty" state |
void |
setVisible(boolean visible)
Sets the visibility of this property tab. |
void |
updateButtons()
|
void |
updateData(org.eclipse.cdt.core.settings.model.ICResourceDescription cfgd)
|
void |
updateMessage()
|
void |
updateTitle()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToolSettingsTab
public ToolSettingsTab()
createControls
public void createControls(org.eclipse.swt.widgets.Composite par)
- Description copied from class:
AbstractCPropertyTab
- Creates basic widgets for property tab.
Descendants should, normally, override
this method but call super.createControls().
setVisible
public void setVisible(boolean visible)
- Description copied from class:
AbstractCPropertyTab
- Sets the visibility of this property tab.
- Overrides:
setVisible
in class AbstractCPropertyTab
- Parameters:
visible
- true
to make this tab visible,
and false
to hide it
performDefaults
public void performDefaults()
getPreferenceStore
public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
- Specified by:
getPreferenceStore
in interface org.eclipse.jface.preference.IPreferencePageContainer
setDirty
public void setDirty(boolean b)
- Sets the "dirty" state
isDirty
public boolean isDirty()
- Returns the "dirty" state
obtainMacroProvider
public BuildMacroProvider obtainMacroProvider()
- Returns the build macro provider to be used for macro resolution
In case the "Build Macros" tab is available, returns the BuildMacroProvider
supplied by that tab.
Unlike the default provider, that provider also contains
the user-modified macros that are not applied yet
If the "Build Macros" tab is not available, returns the default BuildMacroProvider
updateData
public void updateData(org.eclipse.cdt.core.settings.model.ICResourceDescription cfgd)
updateButtons
public void updateButtons()
- Specified by:
updateButtons
in interface org.eclipse.jface.preference.IPreferencePageContainer
updateMessage
public void updateMessage()
- Specified by:
updateMessage
in interface org.eclipse.jface.preference.IPreferencePageContainer
updateTitle
public void updateTitle()
- Specified by:
updateTitle
in interface org.eclipse.jface.preference.IPreferencePageContainer
canBeVisible
public boolean canBeVisible()
- Description copied from interface:
ICPropertyTab
- Returns true (by default) if page's contents is correct
Returns false if page cannot be shown because it does
not fit to other settings (for example, managed build
settings are not possible when managed build is off).
- Specified by:
canBeVisible
in interface ICPropertyTab
- Overrides:
canBeVisible
in class AbstractCPropertyTab