Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Search] A few questions
[Search] A few questions [message #97227] Mon, 24 September 2007 21:11 Go to next message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi lb,

Nice work on the new search component, it is a very important addition to
the MDT tools. I am creating modeling tools for HL7 healthcare standards
and the addition of search will help to attract more users. But I do have a
few questions based on my initial review. Looking at your New and Noteworthy
page (http://www.eclipse.org/modeling/emft/?project=search), there are two
features that I cannot get to work.

* How do you invoke the EReferences to an EClass? It looks like this
context menu is in an editor. What is the selection object that adds this
menu? I would like to add it to the contetext menu in the UML2Tools class
diagram.

* I can open the EClass filtered selection dialog using Ctrl+Shift+K (found
in the plugin declaration), but the dialog is always empty. I am looking at
the dialog code but have not yet discovered what resource(s) are used to
populate the dialog list.

This last questions raises a big issue I have with the UML2Tools and use of
a shared Editing Domain. For the selection dialog (and maybe search on a
model), I would like to use an existing resource set, and not reload the
resources each time I open the dialog.

Thanks!
Dave Carlson
www.xmlmodeling.com
Re: [Search] A few questions [message #97307 is a reply to message #97227] Tue, 25 September 2007 09:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lucas.bigeardel.anyware-tech.com

Dave Carlson a écrit :

Hi Dave, my answers below

> Hi lb,
>
> Nice work on the new search component, it is a very important addition to
> the MDT tools. I am creating modeling tools for HL7 healthcare standards
> and the addition of search will help to attract more users.

thank you !

But I do have a
> few questions based on my initial review. Looking at your New and Noteworthy
> page (http://www.eclipse.org/modeling/emft/?project=search), there are two
> features that I cannot get to work.
>
> * How do you invoke the EReferences to an EClass? It looks like this
> context menu is in an editor. What is the selection object that adds this
> menu? I would like to add it to the contetext menu in the UML2Tools class
> diagram.
>

Finding references needs user to define EReference to an already defined
type in an ecore model.

For instance, having an XYZ.ecore file defining two types 'A' & 'B' with
'B' having an EReference 'BtoA', allows you to right click the
EReferences menu action from the legacy ecore editor with the 'A' Eclass
as selection.

As a result user gets the Search View populated with 'BtoA' occurence
coming from XYZ.ecore.



Having such feature on UML2Tools GMF based diagram editor needs
developer contribuing an
org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
extension point.

Can be something like :

<extension

point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider
checkPluginLoaded="false"

class=" org.eclipse.uml2.diagram.search.providers.UML2DiagramSearchC ontributionItemProvider ">
<Priority
name="Medium">
</Priority>
<popupContribution
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupStructuredContributionCriteria
objectClass="*[[[YOUR_GENERATED_UML_Class_EditPart]]]*"/>
<popupStructuredContributionCriteria

<popupMenuGroup
id="UML2Search"
path="/"
separator="true">
</popupMenuGroup>
<popupAction path="/UML2Search" id="ereferencesAction"/>
</popupContribution>
</contributionItemProvider>
</extension>



Thus, you need to implement AbstractContributionItemProvider and
implement createAction method handling a UML implementation version of
AbstractModelSearchPopupActionDelegate inspired from the Ecore
"ModelSearchEcoreMetaElementReferenceSearchAction" action applying on
UML Class.

Note that this action extends AbstractModelSearchPopupActionDelegate and
automatically handles the selection for both legacy editors and GMF
based editors. (same action can be reused for org.eclpse.ui.popupMenus
contributions).


> * I can open the EClass filtered selection dialog using Ctrl+Shift+K (found
> in the plugin declaration), but the dialog is always empty. I am looking at
> the dialog code but have not yet discovered what resource(s) are used to
> populate the dialog list.
>

It sounds like a bug, I did some changes related to CamelCase support
few days ago and maybe I broke something. This point the fact it is
maybe time to add some more tests ^^ I'll take a look at that today.

> This last questions raises a big issue I have with the UML2Tools and use of
> a shared Editing Domain. For the selection dialog (and maybe search on a
> model), I would like to use an existing resource set, and not reload the
> resources each time I open the dialog.
>

To be honnest I didn't really take that into account, give some time to
dig into that.

> Thanks!
> Dave Carlson
> www.xmlmodeling.com
>
>
Re: [Search] A few questions [message #97322 is a reply to message #97307] Tue, 25 September 2007 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lucas.bigeardel.anyware-tech.com

lb a écrit :
> Dave Carlson a écrit :
>
> Hi Dave, my answers below
>
>> Hi lb,
>>
>> Nice work on the new search component, it is a very important addition
>> to the MDT tools. I am creating modeling tools for HL7 healthcare
>> standards and the addition of search will help to attract more users.
>
> thank you !
>
> But I do have a
>> few questions based on my initial review. Looking at your New and
>> Noteworthy page
>> (http://www.eclipse.org/modeling/emft/?project=search), there are two
>> features that I cannot get to work.
>>
>> * How do you invoke the EReferences to an EClass? It looks like this
>> context menu is in an editor. What is the selection object that adds
>> this menu? I would like to add it to the contetext menu in the
>> UML2Tools class diagram.
>>
>
> Finding references needs user to define EReference to an already defined
> type in an ecore model.
>
> For instance, having an XYZ.ecore file defining two types 'A' & 'B' with
> 'B' having an EReference 'BtoA', allows you to right click the
> EReferences menu action from the legacy ecore editor with the 'A' Eclass
> as selection.
>
> As a result user gets the Search View populated with 'BtoA' occurence
> coming from XYZ.ecore.
>
>
>
> Having such feature on UML2Tools GMF based diagram editor needs
> developer contribuing an
> org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
> extension point.
>
> Can be something like :
>
> <extension
>
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>
> <contributionItemProvider
> checkPluginLoaded="false"
>
> class=" org.eclipse.uml2.diagram.search.providers.UML2DiagramSearchC ontributionItemProvider ">
>
> <Priority
> name="Medium">
> </Priority>
> <popupContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
>
> <popupStructuredContributionCriteria
> objectClass="*[[[YOUR_GENERATED_UML_Class_EditPart]]]*"/>
> <popupStructuredContributionCriteria
>
> <popupMenuGroup
> id="UML2Search"
> path="/"
> separator="true">
> </popupMenuGroup>
> <popupAction path="/UML2Search" id="ereferencesAction"/>
> </popupContribution>
> </contributionItemProvider>
> </extension>
>
>
>
> Thus, you need to implement AbstractContributionItemProvider and
> implement createAction method handling a UML implementation version of
> AbstractModelSearchPopupActionDelegate inspired from the Ecore
> "ModelSearchEcoreMetaElementReferenceSearchAction" action applying on
> UML Class.
>
> Note that this action extends AbstractModelSearchPopupActionDelegate and
> automatically handles the selection for both legacy editors and GMF
> based editors. (same action can be reused for org.eclpse.ui.popupMenus
> contributions).
>
>
>> * I can open the EClass filtered selection dialog using Ctrl+Shift+K
>> (found in the plugin declaration), but the dialog is always empty. I
>> am looking at the dialog code but have not yet discovered what
>> resource(s) are used to populate the dialog list.
>>
>
> It sounds like a bug, I did some changes related to CamelCase support
> few days ago and maybe I broke something. This point the fact it is
> maybe time to add some more tests ^^ I'll take a look at that today.
>

Ctrl + Shift + K works for me with UML Package having non empty names.

Some condition have to be met :
1) create a UML diagram like XYZ.uml
2) have a package with non empty name
3) In filtered Dialog : you must type a non void valid Camel Case
pattern before actually having results

>> This last questions raises a big issue I have with the UML2Tools and
>> use of a shared Editing Domain. For the selection dialog (and maybe
>> search on a model), I would like to use an existing resource set, and
>> not reload the resources each time I open the dialog.
>>
>
> To be honnest I didn't really take that into account, give some time to
> dig into that.
>
>> Thanks!
>> Dave Carlson
>> www.xmlmodeling.com
>>
>>
Re: [Search] A few questions [message #97422 is a reply to message #97322] Tue, 25 September 2007 16:45 Go to previous messageGo to next message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi Lucus,
I still don't get results from this. I have a model FpML.uml with about 20
nested packages (all with non-null names). I open the dialog and enter
"Party*" which should find 10 matches to contained classes (these are found
using search). But the dialog is still empty. Does this always search all
..uml resources in the workspace? I tried selecting the desired .uml file
before opening the dialog, but no different. Does it search nested packages
in a model?

Thanks,
Dave

> Ctrl + Shift + K works for me with UML Package having non empty names.
>
> Some condition have to be met :
> 1) create a UML diagram like XYZ.uml
> 2) have a package with non empty name
> 3) In filtered Dialog : you must type a non void valid Camel Case pattern
> before actually having results
>
Re: [Search] A few questions [message #97436 is a reply to message #97422] Tue, 25 September 2007 16:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lucas.bigeardel.anyware-tech.com

Dave Carlson a écrit :
> Hi Lucus,
> I still don't get results from this. I have a model FpML.uml with about 20
> nested packages (all with non-null names). I open the dialog and enter
> "Party*" which should find 10 matches to contained classes (these are found
> using search). But the dialog is still empty. Does this always search all
> .uml resources in the workspace? I tried selecting the desired .uml file
> before opening the dialog, but no different. Does it search nested packages
> in a model?
>
> Thanks,
> Dave
>
>> Ctrl + Shift + K works for me with UML Package having non empty names.
>>
>> Some condition have to be met :
>> 1) create a UML diagram like XYZ.uml
>> 2) have a package with non empty name
>> 3) In filtered Dialog : you must type a non void valid Camel Case pattern
>> before actually having results
>>
>
>

Dave,

Can you send me the model, I'll try to take a look.

If you think something really doesn't go the way it should, please file
a bugzilla against [EMFT Search].

regards,

- Lucas
Re: [Search] A few questions [message #97448 is a reply to message #97307] Tue, 25 September 2007 16:58 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi Lucus,

> Having such feature on UML2Tools GMF based diagram editor needs developer
> contribuing an
> org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
> extension point.

OK, thanks, I'll look into contributing a new plugin for search, e.g.
org.eclipse.uml2.diagram.search.ui

To clarify this last item, the issue I have with UML2Tools is that they do
NOT use a shared editing domain, and I have modified the class diagram to
use a shared editing domain with a navigator. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189974

>> This last questions raises a big issue I have with the UML2Tools and use
>> of a shared Editing Domain. For the selection dialog (and maybe search
>> on a model), I would like to use an existing resource set, and not reload
>> the resources each time I open the dialog.
>>
>
> To be honnest I didn't really take that into account, give some time to
> dig into that.
Re: [Search] A few questions [message #609804 is a reply to message #97227] Tue, 25 September 2007 09:13 Go to previous message
Eclipse UserFriend
Originally posted by: lucas.bigeardel.anyware-tech.com

Dave Carlson a écrit :

Hi Dave, my answers below

> Hi lb,
>
> Nice work on the new search component, it is a very important addition to
> the MDT tools. I am creating modeling tools for HL7 healthcare standards
> and the addition of search will help to attract more users.

thank you !

But I do have a
> few questions based on my initial review. Looking at your New and Noteworthy
> page (http://www.eclipse.org/modeling/emft/?project=search), there are two
> features that I cannot get to work.
>
> * How do you invoke the EReferences to an EClass? It looks like this
> context menu is in an editor. What is the selection object that adds this
> menu? I would like to add it to the contetext menu in the UML2Tools class
> diagram.
>

Finding references needs user to define EReference to an already defined
type in an ecore model.

For instance, having an XYZ.ecore file defining two types 'A' & 'B' with
'B' having an EReference 'BtoA', allows you to right click the
EReferences menu action from the legacy ecore editor with the 'A' Eclass
as selection.

As a result user gets the Search View populated with 'BtoA' occurence
coming from XYZ.ecore.



Having such feature on UML2Tools GMF based diagram editor needs
developer contribuing an
org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
extension point.

Can be something like :

<extension

point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider
checkPluginLoaded="false"

class=" org.eclipse.uml2.diagram.search.providers.UML2DiagramSearchC ontributionItemProvider ">
<Priority
name="Medium">
</Priority>
<popupContribution
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupStructuredContributionCriteria
objectClass="*[[[YOUR_GENERATED_UML_Class_EditPart]]]*"/>
<popupStructuredContributionCriteria

<popupMenuGroup
id="UML2Search"
path="/"
separator="true">
</popupMenuGroup>
<popupAction path="/UML2Search" id="ereferencesAction"/>
</popupContribution>
</contributionItemProvider>
</extension>



Thus, you need to implement AbstractContributionItemProvider and
implement createAction method handling a UML implementation version of
AbstractModelSearchPopupActionDelegate inspired from the Ecore
"ModelSearchEcoreMetaElementReferenceSearchAction" action applying on
UML Class.

Note that this action extends AbstractModelSearchPopupActionDelegate and
automatically handles the selection for both legacy editors and GMF
based editors. (same action can be reused for org.eclpse.ui.popupMenus
contributions).


> * I can open the EClass filtered selection dialog using Ctrl+Shift+K (found
> in the plugin declaration), but the dialog is always empty. I am looking at
> the dialog code but have not yet discovered what resource(s) are used to
> populate the dialog list.
>

It sounds like a bug, I did some changes related to CamelCase support
few days ago and maybe I broke something. This point the fact it is
maybe time to add some more tests ^^ I'll take a look at that today.

> This last questions raises a big issue I have with the UML2Tools and use of
> a shared Editing Domain. For the selection dialog (and maybe search on a
> model), I would like to use an existing resource set, and not reload the
> resources each time I open the dialog.
>

To be honnest I didn't really take that into account, give some time to
dig into that.

> Thanks!
> Dave Carlson
> www.xmlmodeling.com
>
>
Re: [Search] A few questions [message #609805 is a reply to message #97307] Tue, 25 September 2007 09:59 Go to previous message
Eclipse UserFriend
Originally posted by: lucas.bigeardel.anyware-tech.com

lb a écrit :
> Dave Carlson a écrit :
>
> Hi Dave, my answers below
>
>> Hi lb,
>>
>> Nice work on the new search component, it is a very important addition
>> to the MDT tools. I am creating modeling tools for HL7 healthcare
>> standards and the addition of search will help to attract more users.
>
> thank you !
>
> But I do have a
>> few questions based on my initial review. Looking at your New and
>> Noteworthy page
>> (http://www.eclipse.org/modeling/emft/?project=search), there are two
>> features that I cannot get to work.
>>
>> * How do you invoke the EReferences to an EClass? It looks like this
>> context menu is in an editor. What is the selection object that adds
>> this menu? I would like to add it to the contetext menu in the
>> UML2Tools class diagram.
>>
>
> Finding references needs user to define EReference to an already defined
> type in an ecore model.
>
> For instance, having an XYZ.ecore file defining two types 'A' & 'B' with
> 'B' having an EReference 'BtoA', allows you to right click the
> EReferences menu action from the legacy ecore editor with the 'A' Eclass
> as selection.
>
> As a result user gets the Search View populated with 'BtoA' occurence
> coming from XYZ.ecore.
>
>
>
> Having such feature on UML2Tools GMF based diagram editor needs
> developer contribuing an
> org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
> extension point.
>
> Can be something like :
>
> <extension
>
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>
> <contributionItemProvider
> checkPluginLoaded="false"
>
> class=" org.eclipse.uml2.diagram.search.providers.UML2DiagramSearchC ontributionItemProvider ">
>
> <Priority
> name="Medium">
> </Priority>
> <popupContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
>
> <popupStructuredContributionCriteria
> objectClass="*[[[YOUR_GENERATED_UML_Class_EditPart]]]*"/>
> <popupStructuredContributionCriteria
>
> <popupMenuGroup
> id="UML2Search"
> path="/"
> separator="true">
> </popupMenuGroup>
> <popupAction path="/UML2Search" id="ereferencesAction"/>
> </popupContribution>
> </contributionItemProvider>
> </extension>
>
>
>
> Thus, you need to implement AbstractContributionItemProvider and
> implement createAction method handling a UML implementation version of
> AbstractModelSearchPopupActionDelegate inspired from the Ecore
> "ModelSearchEcoreMetaElementReferenceSearchAction" action applying on
> UML Class.
>
> Note that this action extends AbstractModelSearchPopupActionDelegate and
> automatically handles the selection for both legacy editors and GMF
> based editors. (same action can be reused for org.eclpse.ui.popupMenus
> contributions).
>
>
>> * I can open the EClass filtered selection dialog using Ctrl+Shift+K
>> (found in the plugin declaration), but the dialog is always empty. I
>> am looking at the dialog code but have not yet discovered what
>> resource(s) are used to populate the dialog list.
>>
>
> It sounds like a bug, I did some changes related to CamelCase support
> few days ago and maybe I broke something. This point the fact it is
> maybe time to add some more tests ^^ I'll take a look at that today.
>

Ctrl + Shift + K works for me with UML Package having non empty names.

Some condition have to be met :
1) create a UML diagram like XYZ.uml
2) have a package with non empty name
3) In filtered Dialog : you must type a non void valid Camel Case
pattern before actually having results

>> This last questions raises a big issue I have with the UML2Tools and
>> use of a shared Editing Domain. For the selection dialog (and maybe
>> search on a model), I would like to use an existing resource set, and
>> not reload the resources each time I open the dialog.
>>
>
> To be honnest I didn't really take that into account, give some time to
> dig into that.
>
>> Thanks!
>> Dave Carlson
>> www.xmlmodeling.com
>>
>>
Re: [Search] A few questions [message #609812 is a reply to message #97322] Tue, 25 September 2007 16:45 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi Lucus,
I still don't get results from this. I have a model FpML.uml with about 20
nested packages (all with non-null names). I open the dialog and enter
"Party*" which should find 10 matches to contained classes (these are found
using search). But the dialog is still empty. Does this always search all
..uml resources in the workspace? I tried selecting the desired .uml file
before opening the dialog, but no different. Does it search nested packages
in a model?

Thanks,
Dave

> Ctrl + Shift + K works for me with UML Package having non empty names.
>
> Some condition have to be met :
> 1) create a UML diagram like XYZ.uml
> 2) have a package with non empty name
> 3) In filtered Dialog : you must type a non void valid Camel Case pattern
> before actually having results
>
Re: [Search] A few questions [message #609813 is a reply to message #97422] Tue, 25 September 2007 16:51 Go to previous message
Eclipse UserFriend
Originally posted by: lucas.bigeardel.anyware-tech.com

Dave Carlson a écrit :
> Hi Lucus,
> I still don't get results from this. I have a model FpML.uml with about 20
> nested packages (all with non-null names). I open the dialog and enter
> "Party*" which should find 10 matches to contained classes (these are found
> using search). But the dialog is still empty. Does this always search all
> .uml resources in the workspace? I tried selecting the desired .uml file
> before opening the dialog, but no different. Does it search nested packages
> in a model?
>
> Thanks,
> Dave
>
>> Ctrl + Shift + K works for me with UML Package having non empty names.
>>
>> Some condition have to be met :
>> 1) create a UML diagram like XYZ.uml
>> 2) have a package with non empty name
>> 3) In filtered Dialog : you must type a non void valid Camel Case pattern
>> before actually having results
>>
>
>

Dave,

Can you send me the model, I'll try to take a look.

If you think something really doesn't go the way it should, please file
a bugzilla against [EMFT Search].

regards,

- Lucas
Re: [Search] A few questions [message #609814 is a reply to message #97307] Tue, 25 September 2007 16:58 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
Hi Lucus,

> Having such feature on UML2Tools GMF based diagram editor needs developer
> contribuing an
> org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
> extension point.

OK, thanks, I'll look into contributing a new plugin for search, e.g.
org.eclipse.uml2.diagram.search.ui

To clarify this last item, the issue I have with UML2Tools is that they do
NOT use a shared editing domain, and I have modified the class diagram to
use a shared editing domain with a navigator. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189974

>> This last questions raises a big issue I have with the UML2Tools and use
>> of a shared Editing Domain. For the selection dialog (and maybe search
>> on a model), I would like to use an existing resource set, and not reload
>> the resources each time I open the dialog.
>>
>
> To be honnest I didn't really take that into account, give some time to
> dig into that.
Previous Topic:[Search] Development Plan
Next Topic:Teneo support for QName
Goto Forum:
  


Current Time: Thu Apr 25 08:47:11 GMT 2024

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

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

Back to the top