[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.

Question
[x]
Attachment Details

How to focus a view in perspective ?

Asked by Zetura in Java Programming Language

Tags: swt view perspective focus select

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);
Attachments:
 
The Interface
The Interface
 
[+][-]08/14/09 07:26 AM, ID: 25098387Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/20/09 09:01 AM, ID: 25144158Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/24/09 09:09 PM, ID: 25174497Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625