Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Accessing the EditorInput in IdetailsPage(Creating a MultipageEditor)
Accessing the EditorInput in IdetailsPage [message #538608] Tue, 08 June 2010 04:14 Go to next message
Sandeep  is currently offline Sandeep
Messages: 14
Registered: June 2010
Junior Member
Hello Everyone,
I am trying to make a plugin for Eclipse in which I am creating a MutliPageEditor. I have observed that the tutorials on this topic are very sparse on net and the only good reading is default tutorial by Dejan Glozic.
Anyway, my question is

How do i access the Editor in the IdetailsPage ?
I need to access the EditorInput from there on.

Thanks in advance,
Sandeep.
Re: Accessing the EditorInput in IdetailsPage [message #538664 is a reply to message #538608] Tue, 08 June 2010 07:25 Go to previous messageGo to next message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 397
Registered: September 2009
Senior Member
On 08/06/2010 10.14, Sandeep wrote:
> Hello Everyone, I am trying to make a plugin for Eclipse in which I am
> creating a MutliPageEditor. I have observed that the tutorials on this
> topic are very sparse on net and the only good reading is default
> tutorial by Dejan Glozic. Anyway, my question is
> How do i access the Editor in the IdetailsPage ? I need to access the
> EditorInput from there on.
> Thanks in advance, Sandeep.

Hi,
I solved this few minutes ago (with help from the wiki):

IWorkbench wb = PlatformUI.getWorkbench();
IWorkbenchWindow win = wb.getActiveWorkbenchWindow();
IWorkbenchPage page = win.getActivePage();
IEditorPart editor = page.getActiveEditor();

HiH
Mauro
Re: Accessing the EditorInput in IdetailsPage [message #538926 is a reply to message #538608] Wed, 09 June 2010 02:54 Go to previous messageGo to next message
Sandeep  is currently offline Sandeep
Messages: 14
Registered: June 2010
Junior Member
perfect! thanks a lot !

Btw, in which wiki did you look ?

The biggest problem i am facing while developing this plugin with Eclipse forms is that i am not finding any good API/tutorial .. (also i am developing this plugin with very minimal previous experience in SWT and Jface, so that adds to the problems)..

Thanks again.
Re: Accessing the EditorInput in IdetailsPage [message #538964 is a reply to message #538926] Wed, 09 June 2010 04:05 Go to previous message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 397
Registered: September 2009
Senior Member
On 09/06/2010 8.54, Sandeep wrote:
> perfect! thanks a lot !
>
> Btw, in which wiki did you look ?
see:
http://wiki.eclipse.org/The_Official_Eclipse_FAQs
and
http://wiki.eclipse.org/RCP_FAQ

For the specific problem at hand:
http://wiki.eclipse.org/FAQ_How_do_I_find_out_what_view_or_e ditor_is_selected%3F
http://wiki.eclipse.org/FAQ_How_do_I_find_the_active_workben ch_page%3F

>
> The biggest problem i am facing while developing this plugin with
> Eclipse forms is that i am not finding any good API/tutorial .. (also i
> am developing this plugin with very minimal previous experience in SWT
> and Jface, so that adds to the problems)..
>
> Thanks again.
No Problem
HiH
Mauro
Previous Topic:Problem with org.apache.commons.logging while exporting RCP product
Next Topic:Reuse Commands in plugin.xml in form toolbar
Goto Forum:
  


Current Time: Sat Apr 19 03:03:57 EDT 2014

Powered by FUDForum. Page generated in 0.01841 seconds