Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Activate EditorPart
Activate EditorPart [message #535445] Sun, 23 May 2010 16:53 Go to next message
Stefan  is currently offline Stefan Friend
Messages: 2
Registered: May 2010
Junior Member
Hello

How do I activate an EditorPart in Eclipse?
By activating I understand that the EditorPart gets the focus, i.e. the Tab of the EditorPart turn blue.

There is the http://mobius.inria.fr/eclipse-doc/org/eclipse/ui/internal/P artService.html class but its just an internal eclipse class.


Thanks Stefan

[Updated on: Sun, 23 May 2010 22:34]

Report message to a moderator

Re: Activate EditorPart [message #535477 is a reply to message #535445] Mon, 24 May 2010 00:21 Go to previous message
Stefan  is currently offline Stefan Friend
Messages: 2
Registered: May 2010
Junior Member
ok it works like this:

IWorkbenchWindow[] ibw = PlatformUI.getWorkbench().getWorkbenchWindows();
IWorkbenchPage[] iwp= ibw[0].getPages();
iwp[0].activate(partToBeActivated);
Previous Topic:How to do internationalization for the strings in plugin.xml?
Next Topic:SWT and JFace unresolved after project import
Goto Forum:
  


Current Time: Tue Apr 23 11:21:31 GMT 2024

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

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

Back to the top