Problem with certain setup elements not having an effect [message #1777366] |
Tue, 28 November 2017 22:28 |
Hallvard Traetteberg Messages: 673 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
I'm using the Eclipse Installer for setting up Eclipse for an introductory programming course, and in general it has made things a lot easier! However, this year I try to add a custom perspective and have a couple of issues:
- The custom perspective is made by saving the Java perspective as "TDT4100" and modifying it, then saving and importing the preferences. The perspective removes lots of things that aren't relevant for the course. The perspective is available and I set it as default with the following preference /instance/org.eclipse.ui/defaultPerspectiveId=org.eclipse.jdt.ui.JavaPerspective.TDT4100
When opening the list of available perspectives in the newly installed Eclipse this perspective is appears and it is marked as default, but it is not activated when starting up!
- I found a tip that you need to set an option in the ini file to select perspective, so I add an Eclipse Ini task: -perspective=org.eclipse.jdt.ui.JavaPerspective.TDT4100
But this seemingly has no effect, the Resource perspective still opens on startup. Is this perhaps because the perspective is a custom one?
- My custom perspective includes the various views used during debugging, hence I set the preference for switching perspective when a launch suspends to never: /instance/org.eclipse.debug.ui/org.eclipse.debug.ui.switch_perspective_on_suspend=never
However, this doesn't seem to have an effect, when I open the Run/Debug > Perspective preference, this preference is still set to Always
Any suggestions for how to solve these problems?
|
|
|
|
|
|
|
|
|
|
|
|
Re: Problem with certain setup elements not having an effect [message #1777499 is a reply to message #1777433] |
Wed, 29 November 2017 17:33 |
|
It's a while ago that I found a solution a similar problem. In the "CDO Explorer" product (you can find it in your Eclipse Installer) I added the following two tasks:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0">
<setup:ResourceCreationTask
id="plugin.customization.ini"
excludedTriggers="STARTUP MANUAL"
content="org.eclipse.ui/defaultPerspectiveId=org.eclipse.emf.cdo.explorer.ui.CDOExplorerPerspective
"
targetURL="${installation.location|uri}/${installation.relativeProductFolder}/plugin_customization.ini"/>
<setup:EclipseIniTask
excludedTriggers="STARTUP MANUAL"
option="-pluginCustomization"
value="${plugin.customization.ini.targetURL|file}"/>
</xmi:XMI>
I don't remember exactly why I solved it this way, but probably because I didn't want the perspective to switch back to the default after the user had manually changed it.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.02792 seconds