Summary: | Palette Service refactoring: allow definition of a palette drawer with-out forcing a contribution | ||||||
---|---|---|---|---|---|---|---|
Product: | [Modeling] GMF-Runtime | Reporter: | Steven R. Shaw <steveshaw> | ||||
Component: | General | Assignee: | Cherie Revells <crevells> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P1 | CC: | caniszczyk, tikhomirov.artem | ||||
Version: | 1.0 | Keywords: | api | ||||
Target Milestone: | 1.0 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Steven R. Shaw
2005-10-07 10:44:01 EDT
Is this related to two different semantic models contributing to an editor their palettes. I have this use case where I need two different semantic models (with appropriate gmf runtime providers, etc...) to share an editor and sprinkle them with some OCL rules to govern possible cross semantic model relationships. It is already possible to create multiple palettes, so I don't think the last point is an issue. Moving to M5 Moving to M6. Not enough time left in M5 to address this. Created attachment 37198 [details]
Describes how client will use it.
Purpose: Bugzilla#111907 Support Separation of Palette Definition and Contribution - Updated the palette schema to support definition of a palette entry only and contribution of a palette entry that was predefined, as well as removing an existing palette entry - Changed the public API in IPaletteProvider from: contributeToPalette(IEditorPart editor, Object content, PaletteRoot root) to: contributeToPalette(IEditorPart editor, Object content, PaletteRoot root, Map predefinedEntries) The Taipan example needed to be updated, but I don't expect any other clients implement IPaletteProvider directly. - Updated the DefaultPaletteProvider to conform to the new API and support the new functionality. - Added section "Separating the Definition and Contribution of a Palette Entry" to the "Configuring and Extending the Diagram Palette" tutorial in the GMF SDK. - Added XML in the org.eclipse.gmf.examples.runtime.diagram.geoshapes plugin to expand the geoshapes drawer by default. - Added JUnit: PaletteServiceTests.testPredefineAndContributeEntries. Activities: Bugzilla#111907 gmf_head cmahoney 060329 Support Separation of Palette Definition and Contribution Code Reviewed by: Steve How tested: - Verified Geoshapes palette is expanded by default on Geoshapes diagram only. JUnit Tests: diagram.ui tests -- all passed [target cleanup] 1.0 M6 was the original target milestone for this bug [GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug |