Package de.FeatureModellingTool.PatternBase

Examples of de.FeatureModellingTool.PatternBase.Templete


                    ptn = (PatternTreeNode) node;
                }
            }

            if (ptn != null && (e.getButton() == MouseEvent.BUTTON1 || e.getButton() == MouseEvent.BUTTON3)) {
                Templete template = ptn.getNodeType() == NodeType.ntTemplate
                        ? ptn.getTemplate()
                        : null;
                firePropertyChange(ConstantDefinition.CURRENT_TEMPLATE, null, template);
            }
View Full Code Here


    private void removePattern(String patternName) {
        this.patternBase.removePattern(patternName);
    }

    private Templete newTemplate(String parentId, String templateName) {
        Templete template = this.patternBase.addTemplete(templateName);
        if (this.patternBase.containsPattern(parentId)) {
            this.patternBase.getPattern(parentId).addChildTemplete(template);
            template.setParentPattern(this.patternBase.getPattern(parentId));
        } else {
            this.patternBase.getTemplete(parentId).addChildTemplete(template);
            template.setParentTemplete(this.patternBase.getTemplete(parentId));
        }

        return template;
    }
View Full Code Here

TOP

Related Classes of de.FeatureModellingTool.PatternBase.Templete

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.