Summary: | [Perspectives] Custom Perspectives Can't Be Deployed With RCP | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jacob Robertson <pepblast> |
Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | CC: | nyssen, Tod_Creasey |
Version: | 3.1 | Keywords: | helpwanted |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Jacob Robertson
2006-01-24 08:52:46 EST
Is it possible to take your designer's recommendations and modify the actual code for the perspective to correspond? If not, try the following as a workaround: - modify the perspective - Save it under the same name (this is important so the saved preference gets the id of the original perspective, instead of a constructed id based on the new name) - export prefs - edit the prefs file - it will have an entry: /instance/org.eclipse.ui.workbench/perspectives=(list of customized perspectives) For example, if I save a custom version of the Java perspective, it looks like: /instance/org.eclipse.ui.workbench/perspectives=org.eclipse.jdt.ui.JavaPerspective - it will also have an entry for each customized perspective of the form: /instance/org.eclipse.ui.workbench/<persp-id>_persp=<XML definition> For example, the entry for the customized Java perspective looks like: /instance/org.eclipse.ui.workbench/org.eclipse.jdt.ui.JavaPerspective_persp=<?xml... - copy these two (or more) entries to a new file, removing the "/instance/" prefixes, e.g.: org.eclipse.ui.workbench/perspectives=org.eclipse.jdt.ui.JavaPerspective org.eclipse.ui.workbench/org.eclipse.jdt.ui.JavaPerspective_persp=<?xml... - add this file to the plugin containing your product extension, and use it to override the preference defaults using the approach described here: http://wiki.eclipse.org/index.php/RCP_FAQ#customPrefs - run your app, being sure to specify eclipse.product=<product id> in the config.ini file, or on the command line via -product <product id> Reassigning bugs in component areas that are changing ownership. |