View Javadoc

1   // $Id: TypeHierarchyExecutor.java 130 2009-01-17 01:40:28Z agony $
2   /**
3    * 
4    */
5   package de.mindcrimeilab.xsanalyzer.actions;
6   
7   import java.util.Map;
8   
9   import org.apache.xerces.xs.XSObject;
10  import org.springframework.richclient.application.Application;
11  import org.springframework.richclient.command.support.AbstractActionCommandExecutor;
12  
13  import de.mindcrimeilab.xsanalyzer.ui.TypeHierarchyDialog;
14  
15  /**
16   * @author Michael Engelhardt<me@mindcrime-ilab.de>
17   * @author $Author: agony $
18   * @version $Revision: 130 $
19   * 
20   */
21  public class TypeHierarchyExecutor extends AbstractActionCommandExecutor {
22  
23      public static final String TARGET_OBJECT = "TARGET_OBJECT";
24  
25      @SuppressWarnings("unchecked")
26      @Override
27      public void execute(Map parameters) {
28          TypeHierarchyDialog dialog = new TypeHierarchyDialog((XSObject) parameters.get(TypeHierarchyExecutor.TARGET_OBJECT));
29          dialog.setParentComponent(Application.instance().getActiveWindow().getControl());
30          dialog.showDialog();
31      }
32  }