コード例 #1
0
  /** 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();
    }
  }
コード例 #2
0
 public CIntentionType getIntentionType(long typeId) {
   return activeIntentionTypes.get(typeId);
 }
コード例 #3
0
  /** Rename a tag in this plugin's internal model */
  public void localRenameIntentionType(long typeId, String name) {
    activeIntentionTypes.get(typeId).setName(name);

    CanvasTagPanel.getInstance().updateIntentionTypes();
  }