Package de.FeatureModellingTool.Customize.ui.ConstraintExplorerCellRenderHelperManager

Examples of de.FeatureModellingTool.Customize.ui.ConstraintExplorerCellRenderHelperManager.ConstraintExplorerCellRenderHelper


          return this;
        }
       
        Object cons = columnIndexConstraintTable.get(column);
        if (cons!=null) {
          ConstraintExplorerCellRenderHelper helper = ConstraintExplorerCellRenderHelperManager
            .getInstance().getHelper(cons);
        if (helper != null) {
          helper.setLabelStat(cons, node, result , this);
        }
        }

        return this;
      }       
View Full Code Here


          return this;
        }
       
        Object cons = columnIndexConstraintTable.get(column);
        if (cons!=null) {
          ConstraintExplorerCellRenderHelper helper = ConstraintExplorerCellRenderHelperManager
            .getInstance().getHelper(cons);
        if (helper != null) {
          setHorizontalAlignment(SwingConstants.CENTER);
          setIcon(helper.getConstraintIcon(cons , constraintModel , customizationVersion));
          setText("");
        }
        }

        return this;
View Full Code Here

  }
 
  private void filterFeatures(FeatureModel fm , ConstraintModel cm , Set<Feature> fs) {
    for(Iterator<Constraint> itc=cm.getAllConstraint().values().iterator() ; itc.hasNext() ; ) {
      Constraint con = itc.next();
      ConstraintExplorerCellRenderHelper helper = ConstraintExplorerCellRenderHelperManager.getInstance().getHelper(con);
      fs.addAll(helper.getRelatedFeatures(con));
    }
    if (fm.getAllFeatureRelation()!=null) {
      for (Iterator<FeatureRelation> itRelation=fm.getAllFeatureRelation().values().iterator() ; itRelation.hasNext() ; ) {
        FeatureRelation relation = itRelation.next();
        if (relation.getName().equals(FeatureRelation.REQUIRE) || relation.getName().equals(FeatureRelation.EXCLUDE)) {
View Full Code Here

      List<Object> leftList = new ArrayList<Object>();

      int conCount = this.columnIndexConstraintTable.size();
      for (int i=1 ; i<=conCount ; i++) {
        Object con = this.columnIndexConstraintTable.get(i);
        ConstraintExplorerCellRenderHelper helper = ConstraintExplorerCellRenderHelperManager.getInstance().getHelper(con);

        if (helper.isRelatedFeature(this.columnIndexConstraintTable.get(i) , feature)) {
          targetList.add(this.columnIndexConstraintTable.get(i));
        } else {
          leftList.add(this.columnIndexConstraintTable.get(i));
        }
      }
View Full Code Here

    }

    private List<TreePath> getConstraintPathes(Object con) {
      List<TreePath> result = new ArrayList<TreePath>();
     
    ConstraintExplorerCellRenderHelper helper = ConstraintExplorerCellRenderHelperManager.getInstance().getHelper(con);
    Set<Feature> sFeature = helper.getRelatedFeatures(con);
   
    for (Iterator<Feature> itFeature = sFeature.iterator() ; itFeature.hasNext() ; ) {
      Feature feature = itFeature.next();
      ConstraintExplorerTreeNode node = this.idNodeTable.get(feature.getID());
      List<ConstraintExplorerTreeNode> path = node.getPath(false);
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.Customize.ui.ConstraintExplorerCellRenderHelperManager.ConstraintExplorerCellRenderHelper

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.