Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Calling Editor
Calling Editor [message #466542] Fri, 20 April 2007 14:30 Go to next message
Eclipse UserFriend
Originally posted by: awais.shibli.niit.edu.pk

hi

can any body tell me how to call an editor behind workbench menu action

Regards
Shibli
Re: Calling Editor [message #466550 is a reply to message #466542] Fri, 20 April 2007 19:21 Go to previous messageGo to next message
Duncan Krebs is currently offline Duncan KrebsFriend
Messages: 79
Registered: July 2009
Member
Awais Shibli wrote:

> hi

> can any body tell me how to call an editor behind workbench menu action

> Regards
> Shibli

I assume you are talking about manually opening an editor in the
workbench, if that is the case take a look at
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor(input,
editorId) where input is an instance of IEditorInput and editorId is the
id of the editor that is defined in the org.eclipse.ui.editors extension
point, hope that helps. - Duncan
Re: Calling Editor [message #466571 is a reply to message #466550] Sat, 21 April 2007 04:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: awais.shibli.niit.edu.pk

thanks Duncan

this is what i have required. kindly can you also tell me how can i get
input parameter.

Regards
Shibli

"Duncan Krebs" <dkrebs@tibco.com> wrote in message
news:4248b68975a20e694e1f636e30563c41$1@www.eclipse.org...
> Awais Shibli wrote:
>
>> hi
>
>> can any body tell me how to call an editor behind workbench menu action
>
>> Regards
>> Shibli
>
> I assume you are talking about manually opening an editor in the
> workbench, if that is the case take a look at
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEditor(input,
> editorId) where input is an instance of IEditorInput and editorId is the
> id of the editor that is defined in the org.eclipse.ui.editors extension
> point, hope that helps. - Duncan
>
Re: Calling Editor [message #466605 is a reply to message #466571] Sun, 22 April 2007 18:17 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
If you are going to open your editor for a IFile, the input can be created with: new FileInputEditor(someFile)
Re: Calling Editor [message #467114 is a reply to message #466605] Fri, 27 April 2007 19:36 Go to previous message
Eclipse UserFriend
Originally posted by: awais.shibli.niit.edu.pk

yup you are right i got the solution thanks

"Prakash" <grprakash@gmail.com> wrote in message
news:15365095.1177265853855.JavaMail.root@cp1.javalobby.org...
> If you are going to open your editor for a IFile, the input can be created
> with: new FileInputEditor(someFile)
Previous Topic:Perspective Resize
Next Topic:eclipse language packs
Goto Forum:
  


Current Time: Tue Apr 16 21:24:47 GMT 2024

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

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

Back to the top