Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to Retain focus on View after opening Editor(Selection retaining in View when editor opens )
How to Retain focus on View after opening Editor [message #1826647] Tue, 28 April 2020 08:03 Go to next message
Deepak P is currently offline Deepak PFriend
Messages: 32
Registered: January 2012
Member
Hello All,
On similar lines to Java's Package explorer, i have created a view and a treeviewer inside it.

In my view, On making a selection in theTreeviewer, an Editor opens. Because of this, the focus is now on Editor instead of the View.

Hence when a new selection is being made in the Treeviewer, the View first comes to focus and then the selection is made. And we notice a small flicker kind of behavior in the view.

Is it possible to still retain the focus on the view after opening the Editor.

Regards,
Deepak P
Re: How to Retain focus on View after opening Editor [message #1826722 is a reply to message #1826647] Wed, 29 April 2020 13:00 Go to previous message
Deepak P is currently offline Deepak PFriend
Messages: 32
Registered: January 2012
Member
Hello All,
For the above specified use case , i did find an option while opening the editor, a boolean attribute "activate" can be false. And the editor is not highlighted

        IDE.openEditor(page, input, activate) 


regards,
Deepak P
Previous Topic:TreeViewer with Columns: Horizontal scroll first column only
Next Topic:Optional Fields on WizardPage
Goto Forum:
  


Current Time: Fri Apr 26 01:23:02 GMT 2024

Powered by FUDForum. Page generated in 0.02636 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top