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

Bug 269699

Summary: [Class Diagram] Some accelerators are disabled
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Thibault Landré <thibault.landre>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: plan
Version: 0.7.0   
Target Milestone: M1   
Hardware: All   
OS: All   
Whiteboard: UML 2.x Diagrams
Attachments:
Description Flags
GMF preference page for a diagram
none
mylyn/context/zip none

Description Yann Tanguy CLA 2009-03-23 11:00:05 EDT
Lots of accelerators are disabled.

To reproduce, create a class diagram, create a Class and select this Class to make accelerators visible.
Only the first one is active (template signature).
Comment 1 Patrick Tessier CLA 2009-07-15 06:10:23 EDT
Created attachment 141617 [details]
GMF preference page for a diagram
Comment 2 Patrick Tessier CLA 2009-07-15 06:10:35 EDT
It lacks preferences in diagram preferences, 
Indeed in order to see popupBar see  org.eclipse.gmf.runtime.diagram.ui.editpolicies.DiagramAssistantEditPolicy.isPreferenceOn(), It look for preferences to display it.

protected boolean isPreferenceOn() {
		String prefName = getPreferenceName();
		if (prefName == null) {
			return true;
		}
		IPreferenceStore preferenceStore = (IPreferenceStore) ((IGraphicalEditPart) getHost())
			.getDiagramPreferencesHint().getPreferenceStore();
		return preferenceStore.getBoolean(prefName);
	}
	
	So to fix it we need also to generate specific preferences of GMF. (see screenshot of GMF preferences pages) 
	
Comment 3 Thibault Landré CLA 2009-07-30 12:02:00 EDT
The generation of the diagram preference page is modified. It now uses generated pages from GMF and put them under the right hierarchy in the papyrus preference page. 

Rulers and Grid, as well as printing option are also available. 
Comment 4 Thibault Landré CLA 2009-07-30 12:02:02 EDT
Created attachment 143030 [details]
mylyn/context/zip