|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Zetura in Java Programming Language
Hello,
I'm new on the board and I aplogize for my bad English.
I've made an interface in SWT/jFace to manage content of XML file. I created a tree on the left, when we double-click on a file, it's included in table on the right. Now what I want is to select the right view (the tabs) too when I double-click on a XML file. I still not found solutions to this problem.
I searched to get the focus of the view directly or get the view by the perspective, but it still not working.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
|
Perspective :
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(false);
layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.25f, editorArea);
IFolderLayout treeFile = layout.createFolder("Tree", IPageLayout.LEFT, 0.25f, editorArea);
treeFile.addView(ViewTree.ID);
layout.getViewLayout(ViewTree.ID).setCloseable(false);
IFolderLayout manageFile = layout.createFolder("XML File", IPageLayout.RIGHT, 1f, editorArea);
manageFile.addView(ManageDataTypeView.ID);
layout.getViewLayout(ManageDataTypeView.ID).setCloseable(false);
manageFile.addView(ManageDataView.ID);
layout.getViewLayout(ManageDataView.ID).setCloseable(false);
manageFile.addView(ManageInjectorView.ID);
layout.getViewLayout(ManageInjectorView.ID).setCloseable(false);
manageFile.addView(ManageActionView.ID);
layout.getViewLayout(ManageActionView.ID).setCloseable(false);
|
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625