Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Custom project elements

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:

http://github.com/udig/udig/tree/master/tutorials/net.refractions.udig.tutorials.genericprojectelement/

Jesse

On Thu, May 20, 2010 at 11:50 AM, Kenneth Gulbrandsoy <kenneth.gulbrandsoy@xxxxxxxxx> 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



Back to the top