Here's an answer that aims at clarifying and solving my problem :
Using the Eclipse 4 IDE, build a RCP application developped before Eclipse 4, integrating Java 7 features and compatible with Windows 32 bits. And of course be able to switch perspective.
This answer doesn't solve the problem of those who'd want to switch perspective in a RCP application AND use the features or look of the new Eclipse 4 Platform (not to be confused with the Eclipse 4 IDE). But I wouldn't recommend it, at least for an old application (that is developped on Eclipse 3), given that :
- that's so slow it renders the application barely usable
- there are numerous graphical glitches
- there are bugs, among them the one related to perspective switch
For these 3 points, I can't say if it's due to the Eclipse 4 platform or the Eclipse 3 compatibility layer. I hope new applications developed specifically for the new Eclipse 4 platform would correctly run.
So my solution was to define an Eclipse 3 target and use it for the build.
Here's the complete procedure :
- Have the JDK 7 installed (32bits version)
- Install Eclipse 3.7 (32bits version)
- Install Eclipse 4 (32bits version)
- Launch Eclipse 4 and import the needed projects
- Go to Window/Preferences/Plug-in Development/Target Platform
- Click "Add" then "Nothing"
- Click "Add" then "Installation" and choose your Eclipse 3.7 directory
- Once your target created, select it (still in Window/Preferences/Plug-in Development/Target Platform)
Now, in your .product
, the "Eclipse Product Export Wizard" will build an Eclipse 3 executable.
Practical notes :
- "clean all" wasn't enough and I had to stop/restart Eclipse to get it working after target selection
- the installation process erased some on my
.product
fields. I had to reset the ID and to check "The product includes native laucher artifacts"