Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse 4.2 migration(Issues faced with old eclipse API in eclipse 4.2)
Eclipse 4.2 migration [message #892963] Mon, 02 July 2012 07:50 Go to next message
Rohan Kapur is currently offline Rohan KapurFriend
Messages: 6
Registered: October 2010
Junior Member
Hi,

I have been developing plugins based on eclipse 3.5.2. Now I want to migrate to eclipse 4.2. I had read that the older api would still work without any issues, but I am unable to import "org.eclipse.ui.internal.PageLayout", the methods "((WorkbenchPage)page).getActivePerspective()" and saveDesc() of the org.eclipse.ui.internal.Perspective class is giving me a compile time error.

Re: Eclipse 4.2 migration [message #893191 is a reply to message #892963] Tue, 03 July 2012 06:57 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 02.07.2012 09:50, Rohan Kapur wrote:
> Hi,
>
> I have been developing plugins based on eclipse 3.5.2. Now I want to
> migrate to eclipse 4.2. I had read that the older api would still work
> without any issues,
Correct.

> but I am unable to import "org.eclipse.ui.internal.PageLayout", the
> methods "((WorkbenchPage)page).getActivePerspective()" and saveDesc()
> of the org.eclipse.ui.internal.Perspective class is giving me a
> compile time error.

"internal" means what it says: that stuff is internal and can
change/disappear anytime as you already noticed.

Dani
Re: Eclipse 4.2 migration [message #893192 is a reply to message #893191] Tue, 03 July 2012 07:05 Go to previous messageGo to next message
Rohan Kapur is currently offline Rohan KapurFriend
Messages: 6
Registered: October 2010
Junior Member
I am not questioning the change. I just wanted to know what are the corresponding changes that I would need to make so as to get the code working.
Re: Eclipse 4.2 migration [message #893193 is a reply to message #892963] Tue, 03 July 2012 07:15 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Rohan,

There's IWorkBenchPage.getPerspective, IWorkbenchPage.savePerspective,
and IWorkbenchPackage.getWorkbenchWindow().getActivePage(). I imagine
among those you'd have what you need.

On 02/07/2012 9:50 AM, Rohan Kapur wrote:
> Hi,
>
> I have been developing plugins based on eclipse 3.5.2. Now I want to
> migrate to eclipse 4.2. I had read that the older api would still work
> without any issues, but I am unable to import
> "org.eclipse.ui.internal.PageLayout", the methods
> "((WorkbenchPage)page).getActivePerspective()" and saveDesc() of the
> org.eclipse.ui.internal.Perspective class is giving me a compile time
> error.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Hibernate tool for JUNO
Next Topic:Flash and Actionscript in Eclispe. Possible?
Goto Forum:
  


Current Time: Thu Apr 18 05:35:03 GMT 2024

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

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

Back to the top