Query Manager [message #696245] |
Wed, 13 July 2011 10:41  |
Eclipse User |
|
|
|
Hi all,
I just started to develop my first query with the modsico query manager. I
followed the examples I found in the help menu. However, there seems to be a
bug in the indigo release. When I want to create a query to my query set,
the parent query set field remains empty. I exactly followed the
instructions in the help sections.
Any suggestions on this?
Timothy
|
|
|
|
|
|
Re: Query Manager [message #698755 is a reply to message #698320] |
Wed, 20 July 2011 03:31  |
Eclipse User |
|
|
|
Thanks a lot for your prompt reply. I guess I will have to take a look into
Papyrus, since they've done it quite well.
Timothy
"Nicolas Bros" schrieb im Newsbeitrag news:j03h0a$eco$1@news.eclipse.org...
Quote:
> I guess the problem was related to the fact that I did not create the
> query set within a dedicated MoDISCO project. Is this a bug or a feature?
This is by design : the QuerySet catalog is filled with query sets found by
an Eclipse builder that is only defined on MoDisco projects (i.e. projects
that have at least the MoDisco nature and builder, but may have additional
natures and builders).
Quote:
> Anyway, I plan to use the CustomizableContentProvider and -LabelProvider
> from MoDISCO for my metamodel browser to allow users a more fine-grained
> customization. Shall I have to take anything else into account except
> those two classes?
Yes, you must also instantiate a CustomizationManager and pass it to the
providers.
And depending on the customizations you are using, you may have to call
CustomizationManager#installCustomPainter on your tree control, to install a
painter that draws customizations that can't be displayed natively with
JFace.
see:
http://wiki.eclipse.org/MoDisco/Components/ModelBrowser/Architecture
You may also want to look at this project, which uses the customizable
content and label providers:
http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.modisco/examples/trunk/org.eclipse.gmt.modisco.infra.browser.uicore.examples.cnf
Quote:
> I'm a bit puzzled due to the fact that query set apparently only work
> within modisco projects.
Please note that you can also deploy/install plug-ins that contain query
sets registered through an extension point
(org.eclipse.gmt.modisco.infra.query.registration).
|
|
|
Powered by
FUDForum. Page generated in 0.03715 seconds