Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2018-11-09 09:34:04 -0500
committerNicolas FAUVERGUE2018-11-09 11:26:50 -0500
commit0a3c8fb55a04bc05c50f68d1262b2328b7b11651 (patch)
tree4b26a99184141dc827de5a6635193a028b12eb79
parent1acaeeab141ded0ffc1838ebbc520c476cb2d307 (diff)
downloadorg.eclipse.papyrus-0a3c8fb55a04bc05c50f68d1262b2328b7b11651.tar.gz
org.eclipse.papyrus-0a3c8fb55a04bc05c50f68d1262b2328b7b11651.tar.xz
org.eclipse.papyrus-0a3c8fb55a04bc05c50f68d1262b2328b7b11651.zip
Bug 497701: [Properties View] API enhancement of AbstractEditor class
Change-Id: I942f4c89810b540a5085c223a540098c5d218933 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF2
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/pom.xml2
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/AbstractEditor.java11
3 files changed, 12 insertions, 3 deletions
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF
index c9a927ed34d..cb4a465a4ff 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF
@@ -31,7 +31,7 @@ Export-Package: org.eclipse.papyrus.infra.widgets,
org.eclipse.papyrus.infra.widgets.wizard.pages
Bundle-Vendor: %providerName
Bundle-ActivationPolicy: lazy
-Bundle-Version: 3.3.0.qualifier
+Bundle-Version: 3.4.0.qualifier
Bundle-Name: %pluginName
Bundle-Localization: plugin
Bundle-ManifestVersion: 2
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/pom.xml b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/pom.xml
index d2af3253c1f..9625760f98a 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/pom.xml
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/pom.xml
@@ -8,6 +8,6 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.papyrus.infra.widgets</artifactId>
- <version>3.3.0-SNAPSHOT</version>
+ <version>3.4.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project> \ No newline at end of file
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/AbstractEditor.java b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/AbstractEditor.java
index e21b5da41e5..f0cf5234353 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/AbstractEditor.java
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/AbstractEditor.java
@@ -69,7 +69,7 @@ public abstract class AbstractEditor extends Composite implements DisposeListene
/**
* The set of elements listening on changes from this editor
*/
- protected Set<ICommitListener> commitListeners = new LinkedHashSet<ICommitListener>();
+ protected Set<ICommitListener> commitListeners = new LinkedHashSet<>();
/**
* The binding between the model object and the widget
@@ -245,6 +245,15 @@ public abstract class AbstractEditor extends Composite implements DisposeListene
}
/**
+ * Removes all the commit listeners from this editor.
+ *
+ * @since 3.4
+ */
+ public void removeAllCommitListeners() {
+ commitListeners.clear();
+ }
+
+ /**
* Informs the commit listeners that a modification occured
*/
protected void commit() {

Back to the top