Search in sources :

Example 1 with NameSpaceNode

use of org.talend.designer.hl7.ui.data.NameSpaceNode in project tdi-studio-se by Talend.

the class CreateHL7ElementAction method init.

public void init() {
    HL7TreeNode node = (HL7TreeNode) this.getStructuredSelection().getFirstElement();
    if (node == null) {
        this.setEnabled(false);
        return;
    }
    if (node instanceof Attribute) {
        this.setEnabled(false);
        return;
    }
    if (node instanceof NameSpaceNode) {
        this.setEnabled(false);
        return;
    }
    this.setEnabled(true);
}
Also used : NameSpaceNode(org.talend.designer.hl7.ui.data.NameSpaceNode) Attribute(org.talend.designer.hl7.ui.data.Attribute) HL7TreeNode(org.talend.designer.hl7.ui.data.HL7TreeNode)

Aggregations

Attribute (org.talend.designer.hl7.ui.data.Attribute)1 HL7TreeNode (org.talend.designer.hl7.ui.data.HL7TreeNode)1 NameSpaceNode (org.talend.designer.hl7.ui.data.NameSpaceNode)1