1 // $Id: XsElementPropertiesExecutor.java 169 2010-08-26 18:59:04Z agony $
2 /*
3 * xsAnalyzer - XML schema analyzing tool. Copyright (C) 2008 Michael Engelhardt
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
6 * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7 * version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
13 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14 */
15 /**
16 *
17 */
18 package de.mindcrimeilab.xsanalyzer.actions;
19
20 import java.util.Map;
21
22 import org.springframework.richclient.application.Application;
23 import org.springframework.richclient.command.support.AbstractActionCommandExecutor;
24
25 /**
26 * @author Michael Engelhardt<me@mindcrime-ilab.de>
27 * @author $Author: agony $
28 * @version $Revision: 169 $
29 *
30 */
31 public class XsElementPropertiesExecutor extends AbstractActionCommandExecutor {
32
33 public static final String OBJECT = "object";
34
35 @Override
36 public void execute(Map parameters) {
37 Object o = parameters.get(XsElementPropertiesExecutor.OBJECT);
38 if (null == o) return;
39 Application.instance().getApplicationContext().publishEvent(new XsAnalyzerApplicationEvent(EventType.SHOW_SCHEMA_ELEMENT_DETAIL, o));
40 }
41 }