Package de.reuse

Examples of de.reuse.GroupMap


    }

    protected GroupMap getView_FIDMap() {
        if (view_IDMap == null) return null;

        GroupMap gm = view_IDMap.getView_IDMap();

        Iterator keyIterator = gm.keySet().iterator();

        while (keyIterator != null && keyIterator.hasNext()) {
            String key = (String) keyIterator.next();
            Iterator idIterator = gm.get(key).iterator();

            while (idIterator != null && idIterator.hasNext()) {
                String id = (String) idIterator.next();

                if (!featureModel.containsFeature(id)) {
                    gm.remove(key, id);
                }
            }
        }

        return gm;
View Full Code Here


    /////////////////////////////////////////////////////


    protected void outputHtmlDocument(File directory) {
        GroupMap gm = getView_FIDMap();

        DocsProducer producer = new DocsProducerImpl(featureModel, directory);
        producer.featuresProduce();
        producer.othersProduce(gm);
View Full Code Here

    }

    //YangJun
    protected void outputRtfDocument(File directory) {
        GroupMap gm = getView_FIDMap();

        RtfDocsProducer producer = new RtfDocsProducer(featureModel, directory);
        producer.docsProduce(gm, fileOutMode, featureOutMode);

    }
View Full Code Here

        return;
      }
      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());
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();
View Full Code Here

        // end д����Ŀ��ͼ�ļ�

        bufferStream.reset();

        // begin д��������Ϣ
        GroupMap informationMap = (GroupMap) ProjectManagerImplementation.this
            .getContext()
            .getValue(
                de.FeatureModellingTool.ProjectManager.ConstantDefinition.INFOMATION_MAP);

        Iterator iterator = informationMap.keySet().iterator();
        while (iterator.hasNext()) {
          String id = (String) iterator.next();
          Set set = informationMap.get(id);

          if (set != null) {
            Iterator valueIterator = set.iterator();
            while (valueIterator.hasNext()) {
              Drawing drawing = (Drawing) valueIterator.next();
View Full Code Here

    }

    protected GroupMap getView_FIDMap() {
        if (view_IDMap == null) return null;

        GroupMap gm = view_IDMap.getView_IDMap();

        Iterator keyIterator = gm.keySet().iterator();

        while (keyIterator != null && keyIterator.hasNext()) {
            String key = (String) keyIterator.next();
            Iterator idIterator = gm.get(key).iterator();

            while (idIterator != null && idIterator.hasNext()) {
                String id = (String) idIterator.next();

                if (!featureModel.containsFeature(id)) {
                    gm.remove(key, id);
                }
            }
        }

        return gm;
View Full Code Here

    /////////////////////////////////////////////////////


    protected void outputHtmlDocument(File directory) {
        GroupMap gm = getView_FIDMap();

        DocsProducer producer = new DocsProducerImpl(featureModel, directory);
        producer.featuresProduce();
        producer.othersProduce(gm);
View Full Code Here

    }

    //YangJun
    protected void outputRtfDocument(File directory) {
        GroupMap gm = getView_FIDMap();

        RtfDocsProducer producer = new RtfDocsProducer(featureModel, directory);
        producer.docsProduce(gm, fileOutMode, featureOutMode);

    }
View Full Code Here

    public GroupMap getView_IDMap(){
        if (drawingViewContainer == null) return null;

        DrawingView[] views = drawingViewContainer.getAllDrawingViews();

        GroupMap rst = new GroupTreeMap();

        for (int i = 0; i < views.length; i++){
            DrawingView view = views[i];

            FigureEnumeration fe = view.getDrawing().getFigures();

            while (fe.hasMoreElements()){
                Figure fig = fe.nextFigure();
                String id = (String) fig.getAttribute("id");

                if ((id != null) && (!id.equals(""))){
                    rst.add(view.getDrawing().getTitle(), id);
                }
            }
        }

        return rst;
View Full Code Here

TOP

Related Classes of de.reuse.GroupMap

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.