Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Perspective customization (with layout)
Perspective customization (with layout) [message #1815903] Mon, 14 October 2019 22:03 Go to next message
Vsevolod Kalinin is currently offline Vsevolod KalininFriend
Messages: 4
Registered: December 2016
Junior Member
Hi,

I'm trying to create a personalized setup that customizes a perspective in a way I like it to be. Ideally including layout. What I was able to find so far is this: https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W0c4a14ff363e_436c_9962_2254bb5cbc60/page/Setting%20perspective%20customization%20with%20Oomph
I use the same perspective everywhere, so it's in my products setup now (latest version is at https://github.com/FlasH-RUS/oomph/blob/master/setups/ru.lonedeveloper.flash.products.setup#L795).

Still the approach is quite cumbersome (customize perspective -> save as -> export all preferences -> extract perspective from .epf file -> remove "\n" and escapes from it -> put it into your setup variable).

Questions:
1. Is there any easier way to customize the perspective in my setup?
2. The perspective itself is a [huge] XML - is it possible in Oomph to store it near the .setup file as XML and inject into PreferenceTask value instead of having this full XML as a key in .setup file?
Re: Perspective customization (with layout) [message #1815915 is a reply to message #1815903] Tue, 15 October 2019 05:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
If the information is stored as a preference, you can use the toolbar button with hover "Capture Preferences" while editing any *.setup. This opens a dialog with a view of all preferences. Here you can quickly find the one you want via the filter field and double click it to capture the Preference task(s) in the setup that you are editing.

You cannot serialize a value as a separate resource, but you could store the Preference task itself in a separate resource as part of a Macro task and then reference that Macro via a Macro Expansion task from any other setup:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Macros_and_Macro_Expansion_Tasks


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Perspective customization (with layout) [message #1815955 is a reply to message #1815915] Tue, 15 October 2019 21:20 Go to previous message
Vsevolod Kalinin is currently offline Vsevolod KalininFriend
Messages: 4
Registered: December 2016
Junior Member
Oh, thanks for the hint about Macro tasks - that's really helpful!
Previous Topic:Installing updates
Next Topic:I keep getting an error.
Goto Forum:
  


Current Time: Thu Mar 28 08:56:00 GMT 2024

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

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

Back to the top