Package research.tool

Examples of research.tool.Tool$ContextChangeListener


            return;

        toolAction.addPropertyChangeListener(toolActionPropertyChangeListener);
        actions.add(toolAction);

        Tool tool = (Tool) toolAction.getValue(ToolAction.TOOL);
        if (tool != null) {
            tool.addPropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);
        }
    }
View Full Code Here


    public synchronized void removeToolAction(ToolAction toolAction) {
        if (!actions.contains(toolAction))
            return;

        Tool tool = (Tool) toolAction.getValue(ToolAction.TOOL);
        if (tool != null) {
            tool.removePropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);
        }

        actions.remove(toolAction);
        toolAction.removePropertyChangeListener(toolActionPropertyChangeListener);
View Full Code Here

                    }
                }

                processing = false;
            } else if (name.equals(ToolAction.TOOL)) {
                Tool oldTool = (Tool) e.getOldValue();
                Tool newTool = (Tool) e.getNewValue();

                if (oldTool != null)
                    oldTool.removePropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);

                if (newTool != null)
                    newTool.addPropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);
            }
        }
View Full Code Here

    }

    protected class InerPropertyChangeListener implements PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent e) {
            if (ToolAction.TOOL.equals(e.getPropertyName())) {
                Tool oldTool = tool;
                tool = (Tool) e.getNewValue();
            }
        }
View Full Code Here

            return;

        toolAction.addPropertyChangeListener(toolActionPropertyChangeListener);
        actions.add(toolAction);

        Tool tool = (Tool) toolAction.getValue(ToolAction.TOOL);
        if (tool != null) {
            tool.addPropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);
        }
    }
View Full Code Here

    public synchronized void removeToolAction(ToolAction toolAction) {
        if (!actions.contains(toolAction))
            return;

        Tool tool = (Tool) toolAction.getValue(ToolAction.TOOL);
        if (tool != null) {
            tool.removePropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);
        }

        actions.remove(toolAction);
        toolAction.removePropertyChangeListener(toolActionPropertyChangeListener);
View Full Code Here

                    }
                }

                processing = false;
            } else if (name.equals(ToolAction.TOOL)) {
                Tool oldTool = (Tool) e.getOldValue();
                Tool newTool = (Tool) e.getNewValue();

                if (oldTool != null)
                    oldTool.removePropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);

                if (newTool != null)
                    newTool.addPropertyChangeListener(Tool.TOOL_DONE, toolPropertyChangeListener);
            }
        }
View Full Code Here

TOP

Related Classes of research.tool.Tool$ContextChangeListener

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.