org.eclipse.cdt.ui.newui
Class AbstractExportTab
java.lang.Object
org.eclipse.cdt.ui.newui.AbstractCPropertyTab
org.eclipse.cdt.ui.newui.AbstractExportTab
- All Implemented Interfaces:
- ICPropertyTab
- Direct Known Subclasses:
- ExpIncludeTab, ExpLibraryPathTab, ExpLibraryTab, ExpSymbolTab
public abstract class AbstractExportTab
- extends AbstractCPropertyTab
Field Summary |
static org.eclipse.swt.graphics.Image |
IMG_FS
|
static org.eclipse.swt.graphics.Image |
IMG_MK
|
static org.eclipse.swt.graphics.Image |
IMG_WS
|
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 |
void |
buttonPressed(int i)
Unified "Add/Edit/Delete" buttons handler |
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 parent)
Creates basic widgets for property tab. |
abstract org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry |
doAdd(java.lang.String s1,
java.lang.String s2,
boolean isWsp)
|
abstract org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry |
doEdit(java.lang.String s1,
java.lang.String s2,
boolean isWsp)
|
abstract int |
getKind()
|
static org.eclipse.swt.graphics.Image |
getWspImage(boolean isWsp)
|
abstract boolean |
hasValues()
|
static java.lang.String[] |
id2name(java.lang.String[] ein,
java.util.Map names)
|
static java.lang.String[] |
name2id(java.lang.String[] ein,
java.util.Map names)
|
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 |
update()
Called when item added/edited/removed. |
void |
updateData(org.eclipse.cdt.core.settings.model.ICResourceDescription rcfg)
Called when configuration changed
Refreshes languages list and calls table refresh. |
Methods inherited from class org.eclipse.cdt.ui.newui.AbstractCPropertyTab |
createControls, dispose, getFileSystemDirDialog, getFileSystemFileDialog, getFontMetrics, getResDesc, getVariableDialog, getWorkspaceDirDialog, getWorkspaceFileDialog, handleTabEvent, setVisible |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IMG_FS
public static final org.eclipse.swt.graphics.Image IMG_FS
IMG_WS
public static final org.eclipse.swt.graphics.Image IMG_WS
IMG_MK
public static final org.eclipse.swt.graphics.Image IMG_MK
AbstractExportTab
public AbstractExportTab()
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().
getKind
public abstract int getKind()
doAdd
public abstract org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry doAdd(java.lang.String s1,
java.lang.String s2,
boolean isWsp)
doEdit
public abstract org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry doEdit(java.lang.String s1,
java.lang.String s2,
boolean isWsp)
hasValues
public abstract boolean hasValues()
update
public void update()
- Called when item added/edited/removed.
Refreshes whole table contwnts
updateData
public void updateData(org.eclipse.cdt.core.settings.model.ICResourceDescription rcfg)
- Called when configuration changed
Refreshes languages list and calls table refresh.
buttonPressed
public void buttonPressed(int i)
- Unified "Add/Edit/Delete" buttons handler
- Parameters:
i
- : number of button pressed
Does nothing by default.
May (but not must) be overridden.
name2id
public static java.lang.String[] name2id(java.lang.String[] ein,
java.util.Map names)
id2name
public static java.lang.String[] id2name(java.lang.String[] ein,
java.util.Map names)
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
getWspImage
public static org.eclipse.swt.graphics.Image getWspImage(boolean isWsp)