Hello everybody.

I have some "objects" associated to a IViewPart.
I would access to these objects in different classes and methods.

For example I can access to a view in this way:

 
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("example");

Let's suppose that this view has associated some objects:

String object1;
CustomObject object2;

Can I access to these objects in a similar manner?

For example like this??

PlatformUI.getWorkbench()." getObject(...)"
PlatformUI.getWorkbench()." setObject(....)"

The only solutions that I have in mind are:
1: use a STATIC class with the objects inside.
2: insert the objects inside the view.

Are there other possible ways?

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

Reply via email to