[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] how to provide mapping between view and the tree element.

In the Treeviewer i have 3 child, say unit1, unit2 ,unit3.
If i click on Unit 1, i open a view(Sample1) at my right end,  i used the following code to open a view at right end.
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage.showView(Sample1.ID);

The same i do for:
Unit2-(Sample2.ID)
Unit3-(Sample3.ID)  



Say if i click on Unit1 i make the view(Sample1) display at right end, provided i the change the image of Unit1.

If i close any of the View at right end, i want the appropriate tree element to change its image ie) there should be a Mapping between view and appropriate tree element.


But there is no mapping between the view and the appropriate tree element. for eg: if i close the View( Sample2.ID) the  Unit3 tree elements image gets changed.

So tell me how to provide mapping between view and the tree element.

Reg,
Johan