org.eclipse.cdt.managedbuilder.ui.properties
Class BuilderSettingsTab

java.lang.Object
  extended by org.eclipse.cdt.ui.newui.AbstractCPropertyTab
      extended by org.eclipse.cdt.managedbuilder.ui.properties.AbstractCBuildPropertyTab
          extended by org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab
All Implemented Interfaces:
ICPropertyTab

public class BuilderSettingsTab
extends AbstractCBuildPropertyTab


Field Summary
 
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
 
Fields inherited from interface org.eclipse.cdt.ui.newui.ICPropertyTab
APPLY, CANCEL, DEFAULTS, DISPOSE, MANAGEDBUILDSTATE, MAXCOMMON, OK, SET_ICON, UPDATE, VISIBLE
 
Constructor Summary
BuilderSettingsTab()
           
 
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 checkPressed(org.eclipse.swt.events.SelectionEvent e)
          Selection handler for checkbox created by methods "setupCheck()" or "setupTri()" Descendants should override this method if they use "setupCheck".
 void createControls(org.eclipse.swt.widgets.Composite parent)
          Creates basic widgets for property tab.
 void performApply(org.eclipse.cdt.core.settings.model.ICResourceDescription src, org.eclipse.cdt.core.settings.model.ICResourceDescription dst)
          Descendant tabs should implement this method so that it copies it's data from one description to another.
 void setVisible(boolean b)
          Sets the visibility of this property tab.
 void updateData(org.eclipse.cdt.core.settings.model.ICResourceDescription cfgd)
          Performs common settings for all controls (Copy from config to widgets)
 
Methods inherited from class org.eclipse.cdt.managedbuilder.ui.properties.AbstractCBuildPropertyTab
getCfg, getCfg, getConfigurationFromHoldsOptions, getConfigurationFromTool, getResCfg
 
Methods inherited from class org.eclipse.cdt.ui.newui.AbstractCPropertyTab
createControls, dispose, getFileSystemDirDialog, getFileSystemFileDialog, getFontMetrics, getResDesc, getVariableDialog, getWorkspaceDirDialog, getWorkspaceFileDialog, handleTabEvent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderSettingsTab

public BuilderSettingsTab()
Method Detail

createControls

public void createControls(org.eclipse.swt.widgets.Composite parent)
Description copied from class: AbstractCPropertyTab
Creates basic widgets for property tab. Descendants should, normally, override this method but call super.createControls().


checkPressed

public void checkPressed(org.eclipse.swt.events.SelectionEvent e)
Description copied from class: AbstractCPropertyTab
Selection handler for checkbox created by methods "setupCheck()" or "setupTri()" Descendants should override this method if they use "setupCheck". Usually the method body will look like: { Control b = (Control)e.widget; if (b.equals(myFirstCheckbox) { ... } else if (b.equals(mySecondCheckbox) { ... } ... }


updateData

public void updateData(org.eclipse.cdt.core.settings.model.ICResourceDescription cfgd)
Performs common settings for all controls (Copy from config to widgets)

Parameters:
cfgd - -

performApply

public void performApply(org.eclipse.cdt.core.settings.model.ICResourceDescription src,
                         org.eclipse.cdt.core.settings.model.ICResourceDescription dst)
Description copied from class: AbstractCPropertyTab
Descendant tabs should implement this method so that it copies it's data from one description to another. Only data affected by given tab should be copied.


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

setVisible

public void setVisible(boolean b)
Description copied from class: AbstractCPropertyTab
Sets the visibility of this property tab.

Overrides:
setVisible in class AbstractCPropertyTab
Parameters:
b - true to make this tab visible, and false to hide it