public class ModelConverterPackagePage extends ModelConverterPage
ModelConverterPage.PageDiagnosticHandler
Modifier and Type | Field and Description |
---|---|
protected int |
ePackageDataTableColumn |
protected CheckboxTableViewer |
ePackagesCheckboxTableViewer |
protected java.util.List<EPackage> |
filteredEPackages |
protected boolean |
isCellEditing |
protected CheckboxTreeViewer |
referencedGenModelsCheckboxTreeViewer |
protected boolean |
showReferencedGenModels |
CAUSE_BACK, CAUSE_CANCEL, CAUSE_FINISH, CAUSE_NEXT, CAUSE_UNKNOWN, forwardDirection, handlingEvent, modelConverter, neverVisible, pageDiagnosticHandler
Modifier | Constructor and Description |
---|---|
protected |
ModelConverterPackagePage(ModelConverter modelConverter,
java.lang.String pageName) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEPackagesTableColumns(CheckboxTableViewer ePackagesTableViewer) |
protected void |
addExternalGenModels(java.util.List<GenModel> genModels) |
protected void |
addReferencedGenModels(java.util.List<GenModel> genModels) |
protected void |
addReferencedGenModelsTreeCheckStateManager(Tree tree) |
protected void |
addReferencedGenModelsTreeColumns(CheckboxTreeViewer referencedGenModelsTreeViewer) |
protected void |
adjustEPackagesTableViewer(CheckboxTableViewer ePackagesTableViewer) |
protected void |
adjustReferencedGenModelsTreeViewer(CheckboxTreeViewer referencedGenModelsTreeViewer) |
void |
createControl(Composite parent) |
protected void |
createEPackagesTableEditor() |
protected void |
createPackageControl(Composite parent) |
protected void |
createReferencedGenModelControl(Composite parent) |
void |
dispose() |
protected void |
ePackageCheckStateChanged() |
protected void |
filterEPackagesTable(boolean reloadReferencedGenPackagesTable) |
protected java.lang.String |
getAddButtonLabel() |
protected java.lang.String |
getBrowseButtonLabel()
Deprecated.
in 2.3.0. Use
getAddButtonLabel() instead. This
method will be remove in future versions of the code. |
java.util.List<EPackage> |
getCheckedEPackages() |
java.util.List<GenPackage> |
getCheckedReferencedGenPackages() |
protected java.lang.String |
getDeselectAllLabel() |
protected java.lang.String |
getEPackageColumnLabel() |
protected java.lang.String |
getEPackageData(EPackage ePackage) |
protected java.lang.String |
getEPackageDataColumnLabel() |
protected Image |
getEPackageImage() |
protected IContentProvider |
getEPackagesTableViewerContentProvider(AdapterFactory adapterFactory) |
protected ILabelProvider |
getEPackagesTableViewerLabelProvider(AdapterFactory adapterFactory) |
protected java.lang.String |
getLabel(EPackage ePackage) |
protected java.lang.String |
getLabel(GenPackage genPackage) |
protected java.lang.String |
getLabel(java.lang.Object object,
java.lang.String defaultText)
Returns the label of a given object.
|
protected java.lang.String |
getPackagesLabel() |
protected java.lang.String |
getReferencedGenModelsLabel() |
protected IContentProvider |
getReferencedGenModelsTreeViewerContentProvider(AdapterFactory adapterFactory) |
protected ILabelProvider |
getReferencedGenModelsTreeViewerLabelProvider(AdapterFactory adapterFactory) |
protected java.util.List<GenPackage> |
getReferencedGenPackagesToCheck(java.util.List<GenPackage> genPackages,
boolean reloadReferencedGenPackagesTable)
Returns a not null list with the GenPackages that should be selected
in the referenced Tree Viewer.
|
protected java.lang.String |
getSelectAllLabel() |
protected java.lang.String |
getSelectGenModelDialogMessage() |
boolean |
isPageComplete() |
protected void |
pageActivated(boolean firstTime,
int cause) |
protected void |
referencedGenModelsAddSelected(CheckboxTreeViewer treeViewer) |
protected void |
referencedGenModelsBrowseSelected(CheckboxTreeViewer treeViewer)
Deprecated.
in 2.3.0. Use
referencedGenModelsAddSelected(CheckboxTreeViewer)
instead. This method will be remove in future versions of the code. |
protected void |
referencedGenModelsCheckboxTreeViewerCheckStateChanged(CheckStateChangedEvent event)
This method is invoked when one element in the referenced GenModels tree is
checked or unchecked.
|
protected void |
setEPackageData(EPackage ePackage,
java.lang.String data) |
void |
setShowReferencedGenModels(boolean showReferencedGenModels) |
boolean |
showReferencedGenModels() |
protected boolean |
supportsNestedPackages() |
protected void |
validate() |
protected boolean |
validateEPackageData(EPackage ePackage,
java.lang.String data) |
doHandleEvent, getModelConverter, getNextPage, getPreviousPage, handleDiagnostic, handleDiagnostic, handleEvent, isHandlingEvent, pageDeactivated, setHandlingEvent
protected CheckboxTableViewer ePackagesCheckboxTableViewer
protected int ePackageDataTableColumn
protected CheckboxTreeViewer referencedGenModelsCheckboxTreeViewer
protected java.util.List<EPackage> filteredEPackages
protected boolean showReferencedGenModels
protected boolean isCellEditing
protected ModelConverterPackagePage(ModelConverter modelConverter, java.lang.String pageName)
public void dispose()
dispose
in class ModelConverterPage
public void setShowReferencedGenModels(boolean showReferencedGenModels)
public boolean showReferencedGenModels()
protected void pageActivated(boolean firstTime, int cause)
pageActivated
in class ModelConverterPage
public boolean isPageComplete()
isPageComplete
in class ModelConverterPage
public void createControl(Composite parent)
protected void createPackageControl(Composite parent)
protected void addEPackagesTableColumns(CheckboxTableViewer ePackagesTableViewer)
protected void adjustEPackagesTableViewer(CheckboxTableViewer ePackagesTableViewer)
protected void createEPackagesTableEditor()
protected boolean validateEPackageData(EPackage ePackage, java.lang.String data)
protected void setEPackageData(EPackage ePackage, java.lang.String data)
protected java.lang.String getEPackageData(EPackage ePackage)
protected IContentProvider getEPackagesTableViewerContentProvider(AdapterFactory adapterFactory)
protected ILabelProvider getEPackagesTableViewerLabelProvider(AdapterFactory adapterFactory)
protected java.lang.String getLabel(EPackage ePackage)
protected void ePackageCheckStateChanged()
public java.util.List<EPackage> getCheckedEPackages()
public java.util.List<GenPackage> getCheckedReferencedGenPackages()
protected java.lang.String getEPackageColumnLabel()
protected java.lang.String getEPackageDataColumnLabel()
protected java.lang.String getDeselectAllLabel()
protected java.lang.String getSelectAllLabel()
protected java.lang.String getPackagesLabel()
protected Image getEPackageImage()
protected void createReferencedGenModelControl(Composite parent)
protected void addReferencedGenModelsTreeColumns(CheckboxTreeViewer referencedGenModelsTreeViewer)
protected boolean supportsNestedPackages()
protected void adjustReferencedGenModelsTreeViewer(CheckboxTreeViewer referencedGenModelsTreeViewer)
protected void addReferencedGenModelsTreeCheckStateManager(Tree tree)
protected IContentProvider getReferencedGenModelsTreeViewerContentProvider(AdapterFactory adapterFactory)
protected ILabelProvider getReferencedGenModelsTreeViewerLabelProvider(AdapterFactory adapterFactory)
protected java.lang.String getLabel(java.lang.Object object, java.lang.String defaultText)
protected java.lang.String getLabel(GenPackage genPackage)
@Deprecated protected void referencedGenModelsBrowseSelected(CheckboxTreeViewer treeViewer)
referencedGenModelsAddSelected(CheckboxTreeViewer)
instead. This method will be remove in future versions of the code.protected void referencedGenModelsAddSelected(CheckboxTreeViewer treeViewer)
protected void referencedGenModelsCheckboxTreeViewerCheckStateChanged(CheckStateChangedEvent event)
protected java.lang.String getAddButtonLabel()
@Deprecated protected java.lang.String getBrowseButtonLabel()
getAddButtonLabel()
instead. This
method will be remove in future versions of the code.protected java.lang.String getReferencedGenModelsLabel()
protected java.lang.String getSelectGenModelDialogMessage()
protected void validate()
protected void filterEPackagesTable(boolean reloadReferencedGenPackagesTable)
protected java.util.List<GenPackage> getReferencedGenPackagesToCheck(java.util.List<GenPackage> genPackages, boolean reloadReferencedGenPackagesTable)
protected void addExternalGenModels(java.util.List<GenModel> genModels)
protected void addReferencedGenModels(java.util.List<GenModel> genModels)