Package research.toolAction

Examples of research.toolAction.ToolAction$InerPropertyChangeListener


        iccTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.DECOMPOSE);
        dvccTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.ATTRIBUTE);
        rcTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.REQUIRE);
        mcTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.EXCLUDE);

        ToolAction toolAction = null;
        ImageIcon toolIcon = null;
        ToolButton tooButton = null;

        toolAction = new ToolAction();
       
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"select.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Select and Move Figures");
        toolAction.putValue(ToolAction.TOOL, fmsTool);
        controller.addToolAction(toolAction);
        controller.setDefaultToolAction(toolAction);
        toolAction.setSelected(true);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"feature.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create or Modify Feature Figures");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new FeatureFigure());
        toolAction.putValue(ToolAction.TOOL, ffcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"resource.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create or Modify Resource-Container Figures");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new ResourceComponentFigure());
        toolAction.putValue(ToolAction.TOOL, rccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new ToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"decomposeS.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Decompose Structure");
        toolAction.putValue(ToolAction.TOOL, decomposeTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"attributeS.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Attribute Structure");
        toolAction.putValue(ToolAction.TOOL, attributeTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"specializeS.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Specialize Structure");
        toolAction.putValue(ToolAction.TOOL, specializeTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"empty_16_12.png"));

        refinementCount = new JButton();
        refinementCount.setText("3");
        refinementCount.setIcon(toolIcon);
        refinementCount.setVerticalTextPosition(AbstractButton.CENTER);
        refinementCount.setHorizontalTextPosition(AbstractButton.CENTER);
        refinementCount.setFocusable(false);

        decomposeTool.setChildCount(3);
        attributeTool.setChildCount(3);
        specializeTool.setChildCount(3);

        this.add(refinementCount);

        refinementCount.addActionListener(new RefinementCountListener());

        this.addSeparator();

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"decompose.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Decompose-Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new DecomposeConnection());
        toolAction.putValue(ToolAction.TOOL, iccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"attribute.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Attribute-Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new AttributeConnection());
        toolAction.putValue(ToolAction.TOOL, dvccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"require_connection.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Require-Relation Figure");
        ConstraintConnection prototype = new ConstraintConnection(FeatureRelation.REQUIRE);
        prototype.setEndDecoration(new ArrowTip());
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, prototype);
        toolAction.putValue(ToolAction.TOOL, rcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"mutex_connection.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Exclude-Relation Figure");
        prototype = new ConstraintConnection(FeatureRelation.EXCLUDE);
        prototype.setMidDecoration(new CrossDecoration(5));
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, prototype);
        toolAction.putValue(ToolAction.TOOL, mcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"vp_contraint.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a VP Constraint Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new VPConstraintFigure());
        toolAction.putValue(ToolAction.TOOL, vpcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"group_contraint.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Group Constraint Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new GroupConstraintFigure());
        toolAction.putValue(ToolAction.TOOL, gcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"composite_contraint.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Composite Constraint Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLFigure());
        toolAction.putValue(ToolAction.TOOL, plcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"c2f.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Constraint Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLConnection());
        toolAction.putValue(ToolAction.TOOL, plccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"c2fn.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Negation Constraint Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLConnection(true));
        toolAction.putValue(ToolAction.TOOL, plccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        /**
        toolAction = new TextAreaToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"comment.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Comment Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new TextAreaFigure());
        toolAction.putValue(ToolAction.TOOL, new ConnectedTextAreaTool());
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);
         **/
        this.addSeparator();

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"interaction_connection.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Interaction Figure");
        InteractionConnection proto = new InteractionConnection();
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, proto);
        proto.setEndDecoration(new ArrowTip());
        toolAction.putValue(ToolAction.TOOL, icTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();
        toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"lock.png"));
View Full Code Here


        iccTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.DECOMPOSE);
        dvccTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.ATTRIBUTE);
        rcTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.REQUIRE);
        mcTool.getContext().putValue(FeatureRelationCreationTool.RELATION_NAME, FeatureRelation.EXCLUDE);

        ToolAction toolAction = null;
        ImageIcon toolIcon = null;
        ToolButton tooButton = null;

        toolAction = new ToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/select.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Select and Move Figures");
        toolAction.putValue(ToolAction.TOOL, fmsTool);
        controller.addToolAction(toolAction);
        controller.setDefaultToolAction(toolAction);
        toolAction.setSelected(true);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        /**
         toolAction = new ToolAction();
         toolIcon = new ImageIcon(getClass().getResource("image/select.png"));
         toolAction.putValue(Action.SMALL_ICON, toolIcon);
         toolAction.putValue(Action.SHORT_DESCRIPTION, "Trace Link Figures");
         toolAction.putValue(ToolAction.TOOL, fmtTool);
         controller.addToolAction(toolAction);
         toolAction.setSelected(false);
         tooButton = new ToolButton(toolAction);
         this.add(tooButton);
         **/

        /**
         toolAction = new CreationToolAction();
         toolIcon = new ImageIcon(getClass().getResource("image/rect.png"));
         toolAction.putValue(Action.SMALL_ICON, toolIcon);
         toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Rectangle Figure");
         toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new RectangleFigure());
         toolAction.putValue(ToolAction.TOOL, new CreationTool());
         controller.addToolAction(toolAction);
         toolAction.setSelected(false);
         tooButton = new ToolButton(toolAction);
         this.add(tooButton);
         **/

        this.addSeparator();

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/feature.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create or Modify Feature Figures");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new FeatureFigure());
        toolAction.putValue(ToolAction.TOOL, ffcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/resource.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create or Modify Resource-Container Figures");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new ResourceComponentFigure());
        toolAction.putValue(ToolAction.TOOL, rccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/decompose.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Decompose-Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new DecomposeConnection());
        toolAction.putValue(ToolAction.TOOL, iccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/attribute.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Attribute-Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new AttributeConnection());
        toolAction.putValue(ToolAction.TOOL, dvccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/require_connection.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Require-Relation Figure");
        ConstraintConnection prototype = new ConstraintConnection(FeatureRelation.REQUIRE);
        prototype.setEndDecoration(new ArrowTip());
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, prototype);
        toolAction.putValue(ToolAction.TOOL, rcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/mutex_connection.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Exclude-Relation Figure");
        prototype = new ConstraintConnection(FeatureRelation.EXCLUDE);
        prototype.setMidDecoration(new CrossDecoration(5));
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, prototype);
        toolAction.putValue(ToolAction.TOOL, mcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/vp_contraint.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a VP Constraint Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new VPConstraintFigure());
        toolAction.putValue(ToolAction.TOOL, vpcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/group_contraint.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Group Constraint Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new GroupConstraintFigure());
        toolAction.putValue(ToolAction.TOOL, gcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new CreationToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/composite_contraint.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Composite Constraint Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLFigure());
        toolAction.putValue(ToolAction.TOOL, plcTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/c2f.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Constraint Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLConnection());
        toolAction.putValue(ToolAction.TOOL, plccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/c2fn.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Negation Constraint Relation Figure");
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLConnection(true));
        toolAction.putValue(ToolAction.TOOL, plccTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        /**
         toolAction = new TextAreaToolAction();
         toolIcon = new ImageIcon(getClass().getResource("image/comment.png"));
         toolAction.putValue(Action.SMALL_ICON, toolIcon);
         toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Comment Figure");
         toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new TextAreaFigure());
         toolAction.putValue(ToolAction.TOOL, new ConnectedTextAreaTool());
         controller.addToolAction(toolAction);
         toolAction.setSelected(false);
         tooButton = new ToolButton(toolAction);
         this.add(tooButton);
         **/

        this.addSeparator();
        toolAction = new ConnectionToolAction();
        toolIcon = new ImageIcon(getClass().getResource("image/interaction_connection.png"));
        toolAction.putValue(Action.SMALL_ICON, toolIcon);
        toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Interaction Figure");
        InteractionConnection proto = new InteractionConnection();
        toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, proto);
        proto.setEndDecoration(new ArrowTip());
        toolAction.putValue(ToolAction.TOOL, icTool);
        controller.addToolAction(toolAction);
        toolAction.setSelected(false);
        tooButton = new ToolButton(toolAction);
        this.add(tooButton);

        this.addSeparator();
        toolIcon = new ImageIcon(getClass().getResource("image/lock.png"));
View Full Code Here

            if (name.equals("selected")) {
                if (processing) return;
                processing = true;

                boolean newValue = ((Boolean) e.getNewValue()).booleanValue();
                ToolAction action = (ToolAction) e.getSource();

                if (newValue) {
                    ToolAction ta = null;
                    for (int i = 0; i < actions.size(); i++) {
                        ta = (ToolAction) actions.get(i);
                        if (ta == action) continue;
                        if (ta.isSelected()) ta.setSelected(false);
                    }
                    currentAction = action;
                } else {
                    ToolAction ta = null;
                    for (int i = 0; i < actions.size(); i++) {
                        ta = (ToolAction) actions.get(i);
                        if (ta == action) continue;
                        if (ta.isSelected()) ta.setSelected(false);
                    }

                    if (defaultAction != null) {
                        defaultAction.setSelected(true);
                        currentAction = defaultAction;
View Full Code Here

            if (name.equals("selected")) {
                if (processing) return;
                processing = true;

                boolean newValue = ((Boolean) e.getNewValue()).booleanValue();
                ToolAction action = (ToolAction) e.getSource();

                if (newValue) {
                    ToolAction ta = null;
                    for (int i = 0; i < actions.size(); i++) {
                        ta = (ToolAction) actions.get(i);
                        if (ta == action) continue;
                        if (ta.isSelected()) ta.setSelected(false);
                    }
                    currentAction = action;
                } else {
                    ToolAction ta = null;
                    for (int i = 0; i < actions.size(); i++) {
                        ta = (ToolAction) actions.get(i);
                        if (ta == action) continue;
                        if (ta.isSelected()) ta.setSelected(false);
                    }

                    if (defaultAction != null) {
                        defaultAction.setSelected(true);
                        currentAction = defaultAction;
View Full Code Here

TOP

Related Classes of research.toolAction.ToolAction$InerPropertyChangeListener

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.