Custom project elements

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom project elements

Kenneth Gulbrandsoy
Hi!

Question: What is the preferred method for adding custom elements to the uDig project model?

The scenario is as follows

Our uDig application (ETELab) has several custom elements that should be persisted into the same project structure as the uDig project elements. One custom element is "IStudy", where each study is a set of parameters and operations that together are applied to a custom dataset generating a new one. Each study should be persisted for easy re-execution when the source data changes and documentation purposes. Another element type is "IOperation", a class of custom elements that each study is build from.

I've followed the discussion title "New Attribute added in internal.ecore" on udig-devel, and it seems to me that adding new elements using EMF and "project.genmodel" in "net.refractions.udig.project" is complicated and that the outcome is uncertain.

What if new elements and attributes could be added to the uDig model through extension points? I do not know if this is possible, but if it is, it would make it much easier to for developer to extend the uDig model.

Best regards,
Kenneth Gulbrandsøy
Norway

PS: The latter is an improvement request, and should probably be added as one...

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
Reply | Threaded
Open this post in threaded view
|

Re: Custom project elements

Jesse Eichar
It is not commonly used but there is an extension point to make it easier to create custom elements.  

There is a tutorial that demonstrates adding a new project element.  It should be in the SDK but you can also see it in the source code.  Here is one online location:


Jesse

On Thu, May 20, 2010 at 11:50 AM, Kenneth Gulbrandsoy <[hidden email]> wrote:
Hi!

Question: What is the preferred method for adding custom elements to the uDig project model?

The scenario is as follows

Our uDig application (ETELab) has several custom elements that should be persisted into the same project structure as the uDig project elements. One custom element is "IStudy", where each study is a set of parameters and operations that together are applied to a custom dataset generating a new one. Each study should be persisted for easy re-execution when the source data changes and documentation purposes. Another element type is "IOperation", a class of custom elements that each study is build from.

I've followed the discussion title "New Attribute added in internal.ecore" on udig-devel, and it seems to me that adding new elements using EMF and "project.genmodel" in "net.refractions.udig.project" is complicated and that the outcome is uncertain.

What if new elements and attributes could be added to the uDig model through extension points? I do not know if this is possible, but if it is, it would make it much easier to for developer to extend the uDig model.

Best regards,
Kenneth Gulbrandsøy
Norway

PS: The latter is an improvement request, and should probably be added as one...

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
Reply | Threaded
Open this post in threaded view
|

Re: Custom project elements

Jody Garnett-2
In reply to this post by Kenneth Gulbrandsoy
Hi Kenneth:

The preferred approach is to ask on the email list here :-) Seriously we have not defined many extension points - preferring to wait until people ask with real needs to steer development.

You are going to have to ask Jesse for the details of what can be done however.

My understanding is:
-IProjectElement is available as a superclass
-We have a few places where the api has been opened up; such as extending the system to support new "boxes" for inclusion in a Page.


Looking at net.refractions.udig.project I do see a ProjectElementFactory extension point is available so that is probably the way to go.

Aside: We have also had a request to make use of Eclipse IResource before; but we have never had anyone stick around and contribute a community module; Amazi was interested in this one.  In anycase if people are interested they can start a project for inclusion in the SDK.

jody





On 20/05/2010, at 7:50 PM, Kenneth Gulbrandsoy wrote:

Hi!

Question: What is the preferred method for adding custom elements to the uDig project model?

The scenario is as follows

Our uDig application (ETELab) has several custom elements that should be persisted into the same project structure as the uDig project elements. One custom element is "IStudy", where each study is a set of parameters and operations that together are applied to a custom dataset generating a new one. Each study should be persisted for easy re-execution when the source data changes and documentation purposes. Another element type is "IOperation", a class of custom elements that each study is build from.

I've followed the discussion title "New Attribute added in internal.ecore" on udig-devel, and it seems to me that adding new elements using EMF and "project.genmodel" in "net.refractions.udig.project" is complicated and that the outcome is uncertain.

What if new elements and attributes could be added to the uDig model through extension points? I do not know if this is possible, but if it is, it would make it much easier to for developer to extend the uDig model.

Best regards,
Kenneth Gulbrandsøy
Norway

PS: The latter is an improvement request, and should probably be added as one...
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
Reply | Threaded
Open this post in threaded view
|

Re: Custom project elements

Kenneth Gulbrandsoy
Hi again!

Thanks for the inputs, I'll look into these shortly.

mvh,
Kenneth

2010/5/20 Jody Garnett <[hidden email]>
Hi Kenneth:

The preferred approach is to ask on the email list here :-) Seriously we have not defined many extension points - preferring to wait until people ask with real needs to steer development.

You are going to have to ask Jesse for the details of what can be done however.

My understanding is:
-IProjectElement is available as a superclass
-We have a few places where the api has been opened up; such as extending the system to support new "boxes" for inclusion in a Page.


Looking at net.refractions.udig.project I do see a ProjectElementFactory extension point is available so that is probably the way to go.

Aside: We have also had a request to make use of Eclipse IResource before; but we have never had anyone stick around and contribute a community module; Amazi was interested in this one.  In anycase if people are interested they can start a project for inclusion in the SDK.

jody





On 20/05/2010, at 7:50 PM, Kenneth Gulbrandsoy wrote:

Hi!

Question: What is the preferred method for adding custom elements to the uDig project model?

The scenario is as follows

Our uDig application (ETELab) has several custom elements that should be persisted into the same project structure as the uDig project elements. One custom element is "IStudy", where each study is a set of parameters and operations that together are applied to a custom dataset generating a new one. Each study should be persisted for easy re-execution when the source data changes and documentation purposes. Another element type is "IOperation", a class of custom elements that each study is build from.

I've followed the discussion title "New Attribute added in internal.ecore" on udig-devel, and it seems to me that adding new elements using EMF and "project.genmodel" in "net.refractions.udig.project" is complicated and that the outcome is uncertain.

What if new elements and attributes could be added to the uDig model through extension points? I do not know if this is possible, but if it is, it would make it much easier to for developer to extend the uDig model.

Best regards,
Kenneth Gulbrandsøy
Norway

PS: The latter is an improvement request, and should probably be added as one...
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel