@Override public void onReleased(InputEventInfo event) { super.onReleased(event); long activeCanvasId = CIntentionCellController.getInstance() .getCellById(CIntentionCellInputHandler.getInstance().getActiveCell()) .getCanvasId(); CCanvasLinkController.getInstance().createLinkToEmptyCanvas(activeCanvasId); }
public void onReleased(InputEventInfo ev) { if (BubbleMenu.highlightedParentGroup != 0l) { CGroupController.groupdb.get(BubbleMenu.highlightedParentGroup).highlight_off(); CGroupController.groupdb.get(BubbleMenu.highlightedParentGroup).highlight_repaint(); BubbleMenu.highlightedParentGroup = 0l; } // This threw a null pointer exception for some reason... if (mouseDownPoint != null) CGroupController.move_end(this.uuid, ev.getX(), ev.getY()); // Update the menu location in case it was dropped into a list // BubbleMenu.moveIconPositions(CGroupController.groupdb.get(guuid).getBounds()); ev.stop(); // PieMenu.isPerformingPieMenuAction = false; if (!CGroupController.groupdb.get(uuid).isPermanent()) { // CGroupController.drop(guuid); } super.onReleased(ev); isActive = false; }