⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 removeparticipant.java

📁 jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用JAVA语言开发
💻 JAVA
字号:
/** * Miroslav Popov, Sep 21, 2005 * miroslav.popov@gmail.com */package org.enhydra.jawe.components.graph.actions;import java.awt.event.ActionEvent;import org.enhydra.jawe.ActionBase;import org.enhydra.jawe.JaWEComponent;import org.enhydra.jawe.JaWEManager;import org.enhydra.jawe.components.graph.GraphController;/** * Removes selected participant from graph (does not delete it from the model), * and deletes all of the elements it contains from the XPDL model. * @author Miroslav Popov * @author Sasa Bojanic */public class RemoveParticipant extends ActionBase {   public RemoveParticipant (JaWEComponent jawecomponent) {      super(jawecomponent);   }   public void enableDisableAction() {      GraphController gc = (GraphController)jawecomponent;            boolean en=false;      if (gc.getSelectedGraph() != null) {         if (!gc.getSelectedGraph().getXPDLObject().isReadOnly()) {            en=true;         }      }      setEnabled(en);   }      public void actionPerformed(ActionEvent e) {      GraphController gc = (GraphController)jawecomponent;      gc.getSelectedGraph().getGraphManager().removeCells(gc.getSelectedGraph().getSelectionCells());      JaWEManager.getInstance().getJaWEController().getSelectionManager().setSelection(gc.getSelectedGraph().getXPDLObject(), true);                                 }   }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -