Package manager

Examples of manager.ManagerInterface


        //
       
        Drawing[] drawingArray = (Drawing[]) projectManager.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");
        }
       
        view_IDMapImport = (Import) view_IDMapFC.getInterface(de.FeatureModellingTool.Connector.ConstantDefinition.IMPORT_INTERFACE);
View Full Code Here


        for(int i = 0; i < keys.length; i++){
            interfaces.put(keys[i], actionMap.get(keys[i]));
            classes.put(keys[i], Action.class);
        }

        ManagerInterface mi = component.Manager.getInstance();

        mi.getContext().putValue(component.Manager.INTERFACES, interfaces);
        mi.getContext().putValue(component.Manager.CLASSES, classes);
        mi.getContext().putValue(component.Manager.NAME, ALIGN_AND_DISTRIBUTION_SERVICE_NAME);

        try {
            return (FComponent) mi.getInstance(component.Manager.NGOBJECT, FComponent.class);
        }
        catch(IllegalParameterException ipe){
            return null;
        }
View Full Code Here

        classes.put(EDITOR_AREA_INTERFACE, JComponent.class);
        classes.put(EDITOR_AREA_POPUP_MENU_INTERFACE, JPopupMenu.class);
        classes.put(SCALE_COMPONENT_INTERFACE, JComponent.class);
        classes.put(TOOL_BAR_INTERFACE, JToolBar.class);

        ManagerInterface mi = component.Manager.getInstance();

        mi.getContext().putValue(component.Manager.INTERFACES, interfaces);
        mi.getContext().putValue(component.Manager.CLASSES, classes);
        mi.getContext().putValue(component.Manager.NAME, GRAPHICAL_EDITOR_UI_NAME);

        FComponent ui = (FComponent) mi.getInstance(component.Manager.NGOBJECT, FComponent.class);
        //end

        //���actionMap��NGObjectʵ��
        interfaces = new Hashtable();
        classes = new Hashtable();

        Object[] keys = actionMap.keys();

        for (int i = 0; i < keys.length; i++) {
            interfaces.put(keys[i], actionMap.get(keys[i]));
            classes.put(keys[i], Action.class);
        }

        mi = component.Manager.getInstance();

        mi.getContext().putValue(component.Manager.INTERFACES, interfaces);
        mi.getContext().putValue(component.Manager.CLASSES, classes);
        mi.getContext().putValue(component.Manager.NAME, ACTIONS_NAME);

        FComponent actions = (FComponent) mi.getInstance(component.Manager.NGOBJECT, FComponent.class);
        //

        //��װ�������յ�GraphicalEditor��NGObjectʵ��
        interfaces = new Hashtable();
        classes = new Hashtable();

        interfaces.put(GRAPHICAL_EDITOR_INTERFACE, graphicalEditor);
        interfaces.put(GRAPHICAL_EDITOR_UI_NAME, ui);
        interfaces.put(ACTIONS_NAME, actions);
        interfaces.put(DRAWING_VIEW_CONTAINER_INTERFACE, drawingViewContainer);
        interfaces.put(DROP_TARGET_LISTENER_INTERFACE, dropTargetListener);
        interfaces.put(ELEMENT_LOCATOR_INTERFACE, elementLocator);

        classes.put(GRAPHICAL_EDITOR_INTERFACE, GraphicalEditor.class);
        classes.put(GRAPHICAL_EDITOR_UI_NAME, FComponent.class);
        classes.put(ACTIONS_NAME, FComponent.class);
        classes.put(DRAWING_VIEW_CONTAINER_INTERFACE, DrawingViewContainer.class);
        classes.put(DROP_TARGET_LISTENER_INTERFACE, DropTargetListener.class);
        classes.put(ELEMENT_LOCATOR_INTERFACE, ElementLocator.class);

        mi = component.Manager.getInstance();

        mi.getContext().putValue(component.Manager.INTERFACES, interfaces);
        mi.getContext().putValue(component.Manager.CLASSES, classes);
        mi.getContext().putValue(component.Manager.NAME, GRAPHICAL_EDITOR_NAME);

        FComponent rst = (FComponent) mi.getInstance(component.Manager.NGOBJECT, FComponent.class);
        //

        return rst;
    }
View Full Code Here

        CustomizationModel CustomizationModel = getCustomizationModel(featureModel);
        interfaces.put(CUSTOMIZATION_MODEL_INTERFACE, CustomizationModel);
        classes.put(CUSTOMIZATION_MODEL_INTERFACE, CustomizationModel.class);
        //gh end

        ManagerInterface mi = component.Manager.getInstance();

        mi.getContext().putValue(component.Manager.INTERFACES, interfaces);
        mi.getContext().putValue(component.Manager.CLASSES, classes);
        mi.getContext().putValue(component.Manager.NAME, FEATURE_MODEL_NAME);

        try {
            return (FComponent) mi.getInstance(component.Manager.NGOBJECT, FComponent.class);
        }
        catch(IllegalParameterException ipe){
            return null;
        }
    }
View Full Code Here

    name=templeteName;
    description="";
        childrenTempletes=new ArrayList<Templete>();
        parameters=new ParameterImplementation();
       
       ManagerInterface mi = de.FeatureModellingTool.FeatureModel.Manager.getInstance();
      
    mi.getContext().putValue(de.FeatureModellingTool.FeatureModel.Manager.NAME_CONTEXT, name);
        mi.getContext().putValue(de.FeatureModellingTool.FeatureModel.Manager.DESCRIPTION_CONTEXT, description);
   
        try {
            this.setFComponent((FComponent) mi.getInstance(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_NAME, FComponent.class));
//       featureModelNGObject = (FComponent) mi.getInstance(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_NAME, FComponent.class);
         } catch (IllegalParameterException ipe) {
             System.out.println(ipe);
         }
        
View Full Code Here

                projectInfoPane.getDescription(),
                projectInfoPane.getProjectFile());

            FComponent featureModel = null;

            ManagerInterface mi = de.FeatureModellingTool.FeatureModel.Manager
                .getInstance();

            mi
                .getContext()
                .putValue(
                    de.FeatureModellingTool.FeatureModel.Manager.NAME_CONTEXT,
                    project.getDomainName());
            mi
                .getContext()
                .putValue(
                    de.FeatureModellingTool.FeatureModel.Manager.DESCRIPTION_CONTEXT,
                    project.getDescription());

            try {
              featureModel = (FComponent) mi
                  .getInstance(
                      de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_NAME,
                      FComponent.class);
            } catch (IllegalParameterException ipe) {
              System.out.println(ipe);
View Full Code Here

                .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");
View Full Code Here

                            }
                        }
                    }
                });

        ManagerInterface mi = research.align.Manager.getInstance();

        try {
            alignAndDistService = (FComponent) mi.getInstance(research.align.ConstantDefinition.ALIGN_AND_DISTRIBUTION_SERVICE_NAME, FComponent.class);
        } catch (Exception e) {
            e.printStackTrace();
        }

        JMenu alignAndDist = new JMenu("������ֲ�");
View Full Code Here

        .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");
View Full Code Here

                                projectInfoPane.getDescription(),
                                projectInfoPane.getProjectFile());

                        FComponent featureModel = null;

                        ManagerInterface mi = de.FeatureModellingTool.FeatureModel.Manager.getInstance();

                        mi.getContext().putValue(de.FeatureModellingTool.FeatureModel.Manager.NAME_CONTEXT, project.getDomainName());
                        mi.getContext().putValue(de.FeatureModellingTool.FeatureModel.Manager.DESCRIPTION_CONTEXT, project.getDescription());

                        try {
                            featureModel = (FComponent) mi.getInstance(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_NAME, FComponent.class);
                        } catch (IllegalParameterException ipe) {
                            System.out.println(ipe);
                        }

                        ProjectManager newProjectManager = de.FeatureModellingTool.ProjectManager.Manager.createProjectManager();
View Full Code Here

TOP

Related Classes of manager.ManagerInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.