Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Query Manager
Query Manager [message #696245] Wed, 13 July 2011 14:41 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
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 #697860 is a reply to message #696245] Mon, 18 July 2011 08:24 Go to previous messageGo to next message
Nicolas Bros is currently offline Nicolas BrosFriend
Messages: 49
Registered: July 2009
Member
Hi,

I couldn't reproduce your problem. When I created a query set and then opened the create query wizard, the query set appeared in the "parent query set" list.

Does your query set have errors? Does it appear in the "Query Sets" view?
You can try doing a "Project > Clean..." on the project containing your query set to force the query set catalog to recompute its state.
Re: Query Manager [message #698268 is a reply to message #697860] Tue, 19 July 2011 06:48 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
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?

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?

I'm a bit puzzled due to the fact that query set apparently only work within
modisco projects.

Best Regards,

Timothy

"Nicolas Bros" schrieb im Newsbeitrag news:j00q0j$ors$1@news.eclipse.org...

Hi,

I couldn't reproduce your problem. When I created a query set and then
opened the create query wizard, the query set appeared in the "parent query
set" list.

Does your query set have errors? Does it appear in the "Query Sets" view?
You can try doing a "Project > Clean..." on the project containing your
query set to force the query set catalog to recompute its state.
Re: Query Manager [message #698320 is a reply to message #698268] Tue, 19 July 2011 09:08 Go to previous messageGo to next message
Nicolas Bros is currently offline Nicolas BrosFriend
Messages: 49
Registered: July 2009
Member
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).
Re: Query Manager [message #698755 is a reply to message #698320] Wed, 20 July 2011 07:31 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
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).
Previous Topic:Modisco installation
Next Topic:Issues with Modicso 0.9
Goto Forum:
  


Current Time: Thu Apr 25 09:21:03 GMT 2024

Powered by FUDForum. Page generated in 0.02921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top