Examples of Tool


Examples of org.locationtech.udig.project.ui.tool.Tool

    static synchronized void enableClearBlackboardCommand( final IToolContext context ) {
        if (clearEditBlackboardHandler == null) {
            clearEditBlackboardHandler = new AbstractHandler(){

                public Object execute( ExecutionEvent event ) throws ExecutionException {
                    Tool tool = ApplicationGIS.getToolManager().getActiveTool();

                    if (tool instanceof AbstractEditTool) {
                        EditToolHandler editToolHandler = ((AbstractEditTool) tool).getHandler();
                        List<Behaviour> behaviours = editToolHandler.getCancelBehaviours();
                        UndoableComposite compositeCommand = new UndoableComposite();
View Full Code Here

Examples of org.spout.vanilla.material.item.tool.Tool

              // due to varying latency.
              if (breakBlock(blockMaterial, block, human, session)) {
                GeneralEffects.BREAKBLOCK.playGlobal(block.getPosition(), blockMaterial, player);

                if (heldItem != null && heldItem.getMaterial() instanceof Tool) {
                  Tool tool = (Tool) heldItem.getMaterial();
                  short damage = tool.getDurabilityPenalty(heldItem);
                  if (currentSlot.get().getData() + damage >= tool.getMaxDurability()) {
                    currentSlot.set(null);
                  } else {
                    currentSlot.addData(damage);
                  }
                }
View Full Code Here

Examples of research.tool.Tool

            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
TOP
Copyright © 2018 www.massapi.com. 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.