Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 285911

Summary: [All Diagrams] Do not show Papyrus specific menu or actions when Papyrus Editor is closed
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: plan
Version: 0.7.0   
Target Milestone: M1   
Hardware: PC   
OS: Windows XP   
Whiteboard: UML 2.x Diagrams

Description Yann Tanguy CLA 2009-08-06 12:52:44 EDT
Papyrus specific menus and action button should not appear when Papyrus is not the active editor.
Comment 1 Yann Tanguy CLA 2009-08-06 12:57:39 EDT
Constraint added in on Papyrus menu declaration (in plugin.xml) :

               <visibleWhen>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.core.papyrusEditor">
                     </equals>
                  </with>
               </visibleWhen>
               
Should be used in diagrams to restrict diagram creation buttons the same way.

(r448)
Comment 2 Yann Tanguy CLA 2009-08-07 06:15:01 EDT
plugin.xml updated in each diagram in order to mask Papyrus icons when the editor is not active.

(r454) 
Comment 3 Yann Tanguy CLA 2009-08-07 06:19:22 EDT
Done.
Comment 4 Yann Tanguy CLA 2009-08-07 06:31:06 EDT
*** Bug 269662 has been marked as a duplicate of this bug. ***