1 package org.enhydra.shark.swingclient.workflowadmin.monitoring.actions; 2 3 import java.awt.event.*; 4 5 6 7 import org.enhydra.shark.api.client.wfmodel.*; 8 import org.enhydra.shark.swingclient.*; 9 import org.enhydra.shark.swingclient.workflowadmin.*; 10 import org.enhydra.shark.swingclient.workflowadmin.monitoring.*; 11 12 18 public class ProcessDescription extends ActionBase { 19 20 public ProcessDescription (ProcessMonitor pm) { 21 super(pm); 22 } 23 24 public void actionPerformed(ActionEvent e) { 25 ProcessMonitor pm=(ProcessMonitor)actionPanel; 26 SharkAdmin workflowAdmin=pm.getWorkflowAdmin(); 27 28 WfProcess proc=pm.getProcessViewer().getCurrentProcess(); 29 if (proc!=null) { 30 try { 31 String desc=ResourceManager.getLanguageDependentString("DescriptionKey"); 32 ItemView iv=new ItemView(workflowAdmin.getFrame(), 33 desc+" - "+proc.name(), 34 desc, 35 proc.description()); 36 iv.showDialog(); 37 } catch (Exception ex) {} 38 } 39 } 40 41 } 42 43 | Popular Tags |