/** * Discern whether teh scrap <code>groupId</code> exists in the currently displayed canvas (if * any). */ private boolean isCurrentlyDisplayed(long groupId) { if (!CanvasPerspective.getInstance().isActive()) { return false; } return (CGroupController.groupdb.get(groupId).getCanvasUID() == CCanvasController.getCurrentUUID()); }
/** Change the color of a tag in this plugin's internal model */ public void localSetIntentionTypeColor(long typeId, int colorIndex) { activeIntentionTypes.get(typeId).setColorIndex(colorIndex); if (CanvasPerspective.getInstance().isActive()) { CanvasTagPanel.getInstance().refresh(); } }