Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java
new file mode 100644
index 00000000000..d1ea42c4975
--- /dev/null
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.util.ui/src/org/eclipse/emf/facet/util/ui/internal/exported/util/widget/command/ICommandWidget.java
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.emf.facet.util.ui.internal.exported.util.widget.command;
+
+import org.eclipse.core.commands.Command;
+import org.eclipse.emf.facet.util.ui.internal.exported.widget.IAbstractWidget;
+
+/**
+ * @since 0.3
+ */
+public interface ICommandWidget extends IAbstractWidget {
+
+ /**
+ * Return the command for the widget specific action. The factory can be
+ * used for the creation of the {@link Command}.
+ *
+ * @see IFacetCommandFactory
+ *
+ * @return the command.
+ */
+ Object getCommand();
+
+ /**
+ * This method is execute when the "OK" button of the {@link #parent} is
+ * pressed.
+ */
+ void onDialogValidation();
+
+ <A> A adapt(Class<A> adapterType);
+
+} \ No newline at end of file

Back to the top