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

Bug 325873

Summary: Custom IConfigurationProvider and deeper customization with GEF
Product: [Modeling] Graphiti Reporter: Romain Raugi <romain.raugi>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.brand, michael.wenz
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Romain Raugi CLA 2010-09-21 12:13:25 EDT
Build Identifier: 0.7.0.v20100909-1011

Since Graphiti is built on top of GEF, I would like to be able to work at the GEF edit part/policy level to customize the editor. Graphiti provides nice out of the box features, but do you plan to make it more extensible by this way?

Extending the default ConfigurationProvider is an entry point to customize the editPartFactory and the editPolicyFactory. But setting a custom provider requires a hack. A protected "createConfigurationProvider()" method in DiagramEditorInternal would be nice.


Reproducible: Always
Comment 1 Christian Brand CLA 2010-10-13 09:06:32 EDT
Currently Graphiti covers the technology GEF. So GEF is completely hidden by the framework. The (default) configuration provider is a core component of the Graphiti runtime. I think it would be "dangerous" to open up this runtime to do modifications inside.
Could you please explain your intention? What do you want to customize, which is not possible through Graphiti's API? Perhaps we can find a solution and extend the API for you.
Comment 2 Romain Raugi CLA 2010-10-13 10:07:02 EDT
Hi Christian,

I reported this enhancement mainly because I needed to implement my renderers directly using Draw2D (1). And thinking that I may need to add custom edit policies or to extend the edit parts (2).

For 1), meanwhile, I discovered the IGraphicsAlgorithmRenderer/ IGraphicsAlgorithmRendererFactory/PlatformGraphicsAlgorithm facilities and it satisfies my needs. Except for one thing, I need to make my renderers reacting on custom notational properties update. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=326733.

For 2), I'm not faced to a need requiring such extension for the moment. I will open a dedicated BR if I have an issue.

You can close this one. 

Warm regards,

Romain
Comment 3 Michael Wenz CLA 2011-07-18 06:40:55 EDT
Closed as requested