diff options
author | Vincent Lorenzo | 2018-05-24 08:38:23 +0000 |
---|---|---|
committer | vincent lorenzo | 2018-05-24 15:03:57 +0000 |
commit | bfd26632a7557afd865d2184d26661d57154749f (patch) | |
tree | 0245555ff66050315c245c12ddfd70936c9c33b1 /plugins/uml | |
parent | 1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5 (diff) | |
download | org.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.java | 6 |
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 { |