1
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
17
18
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 }