.getContext()
.getValue(
de.FeatureModellingTool.ProjectManager.ConstantDefinition.DRAWING_ARRAY);
// new way
ManagerInterface mi = de.FeatureModellingTool.GraphicalEditor.Manager
.getInstance();
mi
.getContext()
.putValue(
de.FeatureModellingTool.GraphicalEditor.Manager.DRAWING_ARRAY_CONTEXT,
drawingArray);
try {
graphicalEditorNGObject = (FComponent) mi
.getInstance(
de.FeatureModellingTool.GraphicalEditor.Manager.GRAPHICAL_EDITOR_NAME,
FComponent.class);
} catch (IllegalParameterException ipe) {
}
graphicalEditor = (GraphicalEditor) graphicalEditorNGObject
.getInterface(de.FeatureModellingTool.GraphicalEditor.Manager.GRAPHICAL_EDITOR_INTERFACE);
graphicalEditorUI = (FComponent) graphicalEditorNGObject
.getInterface(de.FeatureModellingTool.GraphicalEditor.Manager.GRAPHICAL_EDITOR_UI_NAME);
graphicalEditorActionMap = (FComponent) graphicalEditorNGObject
.getInterface(de.FeatureModellingTool.GraphicalEditor.Manager.ACTIONS_NAME);
drawingViewContainer = (DrawingViewContainer) graphicalEditorNGObject
.getInterface(de.FeatureModellingTool.GraphicalEditor.Manager.DRAWING_VIEW_CONTAINER_INTERFACE);
graphicalEditorDropTargetListener = (DropTargetListener) graphicalEditorNGObject
.getInterface(de.FeatureModellingTool.GraphicalEditor.Manager.DROP_TARGET_LISTENER_INTERFACE);
elementLocator = (ElementLocator) graphicalEditorNGObject
.getInterface(de.FeatureModellingTool.GraphicalEditor.Manager.ELEMENT_LOCATOR_INTERFACE);
//
leftAlignAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.LEFT_ALIGN);
vertAlignAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.VERTICAL_ALIGN);
rightAlignAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.RIGHT_ALIGN);
topAlignAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.TOP_ALIGN);
horiAlignAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.HORIZONTAL_ALIGN);
botAlignAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.BOTTOM_ALIGN);
vertDistAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.VERTICAL_DISTRIBUTE);
horiDistAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.HORIZONTAL_DISTRIBUTE);
deleteAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_DELETE_ACTION);
deleteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL,
featureModel);
deleteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL_EDITOR,
featureModelEditor);
deleteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL,
constraintModel);
deleteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL_EDITOR,
constraintModelEditor);
deleteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL,
interactionModel);
deleteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL_EDITOR,
interactionModelEditor);
copyAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_COPY_ACTION);
copyAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL,
featureModel);
copyAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL_EDITOR,
featureModelEditor);
copyAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL,
constraintModel);
copyAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL_EDITOR,
constraintModelEditor);
copyAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL,
interactionModel);
copyAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL_EDITOR,
interactionModelEditor);
cutAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_CUT_ACTION);
cutAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL,
featureModel);
cutAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL_EDITOR,
featureModelEditor);
cutAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL,
constraintModel);
cutAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL_EDITOR,
constraintModelEditor);
cutAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL,
interactionModel);
cutAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL_EDITOR,
interactionModelEditor);
pasteAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_PASTE_ACTION);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL,
featureModel);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_EDITOR,
featureEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL_EDITOR,
featureModelEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL,
constraintModel);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL_EDITOR,
constraintModelEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.PL_CONSTRAINT_EDITOR,
plConstraintEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.GROUP_CONSTRAINT_EDITOR,
gConstraintEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.VP_CONSTRAINT_EDITOR,
vpConstraintEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL,
interactionModel);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL_EDITOR,
interactionModelEditor);
pasteAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.RESOURCE_COMPONENT_EDITOR,
resourceComponentEditor);
pasteAsLinkAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_PASTE_AS_LINK_ACTION);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL,
featureModel);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_EDITOR,
featureEditor);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FEATURE_MODEL_EDITOR,
featureModelEditor);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL,
constraintModel);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.CONSTRAINT_MODEL_EDITOR,
constraintModelEditor);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL,
interactionModel);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.INTERACTION_MODEL_EDITOR,
interactionModelEditor);
pasteAsLinkAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.RESOURCE_COMPONENT_EDITOR,
resourceComponentEditor);
selectAllAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_SELECT_ALL_ACTION);
toggleSelectAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FIGURE_TOGGLE_SELECT_ACTION);
sendToBackAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.SEND_TO_BACK);
sendToFrontAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.SEND_TO_FRONT);
changeFillColorAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FILL_COLOR_CAHNGE_ACTION);
changeFrameColorAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.FRAME_COLOR_CAHNGE_ACTION);
changeTextColorAction = (Action) graphicalEditorActionMap
.getInterface(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.TEXT_COLOR_CAHNGE_ACTION);
changeFillColorAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.UI_FRAME,
this);
changeFrameColorAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.UI_FRAME,
this);
changeTextColorAction
.putValue(
de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.UI_FRAME,
this);
featureInfoEditor = de.FeatureModellingTool.ElementInfoEditor.Manager
.createFeatureInfoEditor();
featureDescriptionEditor = de.FeatureModellingTool.ElementInfoEditor.Manager
.createFeatureDescriptionEditor();
constraintInfoEditor = de.FeatureModellingTool.ElementInfoEditor.Manager
.createConstraintInfoEditor();
interactionInfoEditor = de.FeatureModellingTool.ElementInfoEditor.Manager
.createInteractionInfoEditor();
/**
* old way infoExplorer =
* de.FeatureModellingTool.InfoExplorer.Manager.createInfoExplorer();
* infoExplorerUI =
* de.FeatureModellingTool.InfoExplorer.Manager.getInfoExplorerUI(infoExplorer);
*/
// new way
try {
infoExplorerNGObject = (FComponent) de.FeatureModellingTool.InfoExplorer.Manager
.getInstance()
.getInstance(
de.FeatureModellingTool.InfoExplorer.Manager.INFOEXPLORER_NAME,
FComponent.class);
} catch (IllegalParameterException ipe) {
}
infoExplorer = (InfoExplorer) infoExplorerNGObject
.getInterface(de.FeatureModellingTool.InfoExplorer.Manager.INFOEXPLORER_INTERFACE);
infoExplorerUI = (JComponent) infoExplorerNGObject
.getInterface(de.FeatureModellingTool.InfoExplorer.Manager.JCOMPONENT_INTERFACE);
modelChecker = de.FeatureModellingTool.ModelChecker.Manager
.createModelChecker();
modelCheckerUI = de.FeatureModellingTool.ModelChecker.Manager
.getModelCheckerUI(modelChecker);
plModelChecker = de.FeatureModellingTool.PLModelChecker.Manager
.createModelChecker(false);
((PLModelCheckerImplementation) plModelChecker)
.SetCustomizationModel(customizationModel);// yh
customizationModel
.addPropertyChangeListener(((PLModelCheckerImplementation) plModelChecker)
.GetCustomizationChangeListener());
plModelCheckerUI = de.FeatureModellingTool.PLModelChecker.Manager
.getModelCheckerUI(plModelChecker);
plModelCheckerOptimized = de.FeatureModellingTool.PLModelChecker.Manager
.createModelChecker(true);
((PLModelCheckerImplementation) plModelCheckerOptimized)
.SetCustomizationModel(customizationModel);// yh
customizationModel
.addPropertyChangeListener(((PLModelCheckerImplementation) plModelCheckerOptimized)
.GetCustomizationChangeListener());
plModelCheckerUIOptimized = de.FeatureModellingTool.PLModelChecker.Manager
.getModelCheckerUI(plModelCheckerOptimized);
dictEditor = de.FeatureModellingTool.DictEditor.Manager
.createDictEditor();
documentation = de.FeatureModellingTool.Documentation.Manager
.createDocumentation();
elementLocating = de.FeatureModellingTool.ElementLocating.Manager
.createElementLocating();
mi = de.FeatureModellingTool.Connector.View_IDMap.Manager.getInstance();
try {
view_IDMapFC = (FComponent) mi
.getInstance(
de.FeatureModellingTool.Connector.View_IDMap.ConstantDefinition.VIEW_ID_MAP_NAME,
FComponent.class);
} catch (IllegalParameterException ipe) {
System.out.println("error when getting view_IDMapFC");