Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2018-05-24 08:38:23 +0000
committervincent lorenzo2018-05-24 15:03:57 +0000
commitbfd26632a7557afd865d2184d26661d57154749f (patch)
tree0245555ff66050315c245c12ddfd70936c9c33b1 /plugins/uml
parent1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5 (diff)
downloadorg.eclipse.papyrus-bfd26632a7557afd865d2184d26661d57154749f.tar.gz
org.eclipse.papyrus-bfd26632a7557afd865d2184d26661d57154749f.tar.xz
org.eclipse.papyrus-bfd26632a7557afd865d2184d26661d57154749f.zip
Bug 535055: [Widget][RichText] the additional buttons for dictionnary and reference UML Element doesn't work
Change-Id: I8efa7449a6e6b5a359605d7ca78bf8eca47029ff Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/InsertReferenceToolbarButton.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/InsertReferenceToolbarButton.java b/plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/InsertReferenceToolbarButton.java
index 8139307c4bc..b2648cf71b9 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/InsertReferenceToolbarButton.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/InsertReferenceToolbarButton.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2016 CEA LIST and others.
+ * Copyright (c) 2016, 2018 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -8,6 +8,7 @@
*
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Bug 535055
*****************************************************************************/
package org.eclipse.papyrus.uml.ui.editors;
@@ -72,6 +73,9 @@ public class InsertReferenceToolbarButton extends AbstractToolbarButton {
*/
@Override
public Object execute() {
+ if(null==this.richTextEditor) {
+ Activator.log.warn("The insert references action cannot be executed, because the Richtext editor has not be registered for this action");//$NON-NLS-1$
+ }else
if (!(this.richTextEditor instanceof UMLRichtextEditorWithReferences)) {
Activator.log.warn("The insert references action cannot be executed, because the Richtext editor is not a UMLRichtextEditorWithReferences");//$NON-NLS-1$
} else {

Back to the top