Package component

Examples of component.FComponent


        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


                        if (is != null) {                     
                            patternParser.openCm(is, templete);
                            is.close();
                        }
                    } else {
                        FComponent parentFComponent = ((Templete) templete.getParent()).getFComponent();
                        templete.setFComponent(parentFComponent);
                    }

                    //��ȡ������Ϣ
                    is  = getClass().getResourceAsStream("DefaultPattern" + "/" + templete.getName() + "/" + templete.getName() + ".pa");
View Full Code Here

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

            FComponent featureModel = null;

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

            mi
View Full Code Here

      }
      String domainName = projectReader.getDomainName();
      String[] viewNameArray = projectReader.getViewNameArray();
      Drawing[] drawingArray = projectReader.getDrawingArray();
      GroupMap informationMap = projectReader.getInformationMap();
      FComponent featureModel = projectReader.getFeatureModel();

      ProjectImplementation pi = new ProjectImplementation();
      pi.setProjectId(modelID);
      pi.setProjectName(model.getName());
      pi.setDomainName(domainName);
View Full Code Here

      String domainName = projectReader.getDomainName();
      String[] viewNameArray = projectReader.getViewNameArray();
      Drawing[] drawingArray = projectReader.getDrawingArray();
      GroupMap informationMap = projectReader.getInformationMap();
      FComponent featureModel = projectReader.getFeatureModel();

      ProjectImplementation pi = new ProjectImplementation();

      String projectName = selectedFile.getName();
      int lastIndex = projectName.lastIndexOf('.');
View Full Code Here

                        Project project = new ProjectImplementation(projectInfoPane.getProjectName(),
                                projectInfoPane.getDomainName(),
                                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());
View Full Code Here

            }
            String domainName = projectReader.getDomainName();
            String[] viewNameArray = projectReader.getViewNameArray();
            Drawing[] drawingArray = projectReader.getDrawingArray();
            GroupMap informationMap = projectReader.getInformationMap();
            FComponent featureModel = projectReader.getFeatureModel();

            ProjectImplementation pi = new ProjectImplementation();
            pi.setProjectId(modelID);
            pi.setProjectName(model.getName());
            pi.setDomainName(domainName);
View Full Code Here

            String domainName = projectReader.getDomainName();
            String[] viewNameArray = projectReader.getViewNameArray();
            Drawing[] drawingArray = projectReader.getDrawingArray();
            GroupMap informationMap = projectReader.getInformationMap();
            FComponent featureModel = projectReader.getFeatureModel();

            ProjectImplementation pi = new ProjectImplementation();

            String projectName = selectedFile.getName();
            int lastIndex = projectName.lastIndexOf('.');
View Full Code Here

        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);

        classes.put(GRAPHICAL_EDITOR_INTERFACE, Interface.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);

        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

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

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

        return rst;
    }
View Full Code Here

TOP

Related Classes of component.FComponent

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.