[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] view dependeny problem / view start sequence?

hello group,

i am currently struggling with the problem how to influence on the creation sequence of views.

The reason is that I have a tree view and the input of that tree view is dependant on the current selection of another (list) view. Both views
are in the same layout folder (IFolderLayout)


When the workbench closes with the tree view in front and keeps this
layout in the next startup (which I would NOT like to switch of via IWorkbenchConfigurer.setSaveAndRestore(false)), I have the problem that the content provider of the tree view tries to get the selection from the list view via


ISelection listViewSelection = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getSelectionService().getSelection(MyListView.ID);


but just gets a null.

Is there a way to force the list view creation first so that there will be a selected element, but keep the layout that the tree viewer is in front of the list viewer beeing both in the same layout folder?


Regards, Kris