Bug 285911 - [All Diagrams] Do not show Papyrus specific menu or actions when Papyrus Editor is closed
Summary: [All Diagrams] Do not show Papyrus specific menu or actions when Papyrus Edit...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: UML 2.x Diagrams
Keywords: plan
: 269662 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-06 12:52 EDT by Yann Tanguy CLA
Modified: 2009-10-15 10:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***