Design/Architectual question perspective | views [message #1202427] |
Fri, 22 November 2013 06:21 |
Jack Kilian Messages: 40 Registered: March 2012 |
Member |
|
|
Hi,
what is the best architectual way for the following problem:
I have a persective with e.g. 5 views. Some of that views are used in other perpectives with other views. So - I have a variouse combination of views in perspectives - the idea behind eclipse
When I need data or functions from view A in view B I request the view A in view B with a call like:
IWorkbenchPage pg = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
View_A view_a = (View_A) pg.showView(View_A.ID_VIEW);
...
But then I wire this to views to each other. In an other perspective this view B is available, but not view A. Whats the best way from an archtiectual point of view to avoid this or in other words to decouple the views that the code of each view is more independant from each other?
best regards
jk
[Updated on: Fri, 22 November 2013 06:26] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02918 seconds