Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » [SOLVED] Application of properties from a project setup file to a running IDE instance
[SOLVED] Application of properties from a project setup file to a running IDE instance [message #1722489] Fri, 05 February 2016 09:35 Go to next message
Christoph Zauner is currently offline Christoph ZaunerFriend
Messages: 7
Registered: October 2015
Junior Member
In my inital project setup file I enabled the line number ruler:

<?xml version="1.0" encoding="UTF-8"?>
<setup:PreferenceTask
    xmi:version="2.0"
    xmlns:xmi="had_to_remove_this_link_before_posting"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    key="/instance/org.eclipse.ui.editors/lineNumberRuler"
    value="true">
  <description>Show line numbers on the left side of editors.</description>
</setup:PreferenceTask>


I installed my development environment using this project setup. The project setup file is consumed from a central location. So any changes in the project setup file can be seen by my development environment.

Later on the line number ruler setting was changed from "true" to "false" in the project setup file.

Now I would expect that this change is also reflected in my installed development environment instance. But that's not the case, even if I run the setup task trigger manually.

Am I missing something or is this use case not supported by Oomph?

Thanks,
Chris

[Updated on: Fri, 05 February 2016 11:15]

Report message to a moderator

Re: Application of properties from a project setup file to a running IDE instance [message #1722497 is a reply to message #1722489] Fri, 05 February 2016 09:44 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Hi Christoph,

In theory it's possible that the IDE doesn't listen to this preference. Have you checked in the Preferences dialog
whether it was changed?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 05.02.2016 um 10:35 schrieb Christoph Zauner:
> In my inital project setup file I enabled the line number ruler:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:PreferenceTask
> xmi:version="2.0"
> xmlns:xmi="had_to_remove_this_link_before_posting"
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> key="/instance/org.eclipse.ui.editors/lineNumberRuler"
> value="true">
> <description>Show line numbers on the left side of editors.</description>
> </setup:PreferenceTask>
>
>
> I installed my development environment using this project setup. The project setup file is consumed from a central
> location. So any changes in the project setup file can be seen by my development environment.
>
> Later on the line number ruler setting was changed from "true" to "false" in the project setup file.
>
> Now I would expect that this change is also reflected in my installed development environment instance. But that's not
> the case, even if I run the setup task trigger manually.
>
> Am I missing something or is this use case not supported by Oomph?
>
> Thanks,
> Chris


Re: Application of properties from a project setup file to a running IDE instance [message #1722502 is a reply to message #1722497] Fri, 05 February 2016 10:11 Go to previous messageGo to next message
Christoph Zauner is currently offline Christoph ZaunerFriend
Messages: 7
Registered: October 2015
Junior Member
Hi Eike,

I have outlined the current behaviour below:

- Project setup file: false
- User setup file: true
- Eclipse preferences dialog: true

===> Setup task not triggered / setting in the preference dialog is not changed

- Project setup file: false
- User setup file: - (I deleted this entry using the Oomph editor)
- Eclipse preferences dialog: true
===> Setup task triggered / setting in the preference dialog is changed

It seems that as long as the preference in the user setup exists the state recorded in the project setup file is not applied...


Thanks,
Chris
Re: Application of properties from a project setup file to a running IDE instance [message #1722505 is a reply to message #1722502] Fri, 05 February 2016 10:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31035
Registered: July 2009
Senior Member
Christoph,

Yes, the different scopes have different precedence, i.e., Product
Catalog, Product, Product Version, Project Catalog, Project, Stream,
User, Installation, Workspace. And many tasks are designed to either
override or merge when they apparent in multiple scopes. Obviously you
can only have one possible setting for the line-numbers preference, so
the tasks from the different scopes will override each other, in
precedence order.

As such, the user can always override tasks either for all installations
and all workspaces in their user.setup, for a specific installation in
that installation's installation.setup, or for a specific workspace in
that workspace's workspace.setup.



On 05.02.2016 11:11, Christoph Zauner wrote:
> Hi Eike,
>
> I have outlined the current behaviour below:
>
> - Project setup file: false
> - User setup file: true
> - Eclipse preferences dialog: true
>
> ===> Setup task not triggered / setting in the preference dialog is
> not changed
>
> - Project setup file: false
> - User setup file: - (I deleted this entry using the Oomph editor)
> - Eclipse preferences dialog: true
> ===> Setup task triggered / setting in the preference dialog is changed
>
> It seems that as long as the preference in the user setup exists the
> state recorded in the project setup file is not applied...
>
>
> Thanks,
> Chris
Re: Application of properties from a project setup file to a running IDE instance [message #1722511 is a reply to message #1722505] Fri, 05 February 2016 11:14 Go to previous messageGo to next message
Christoph Zauner is currently offline Christoph ZaunerFriend
Messages: 7
Registered: October 2015
Junior Member
Thanks a lot Eike (and Ed Wink) for the hints! The problem was that a lot of preference tasks in my project setup file were already present in my user setup file. I must have put them accidentally there.

Are there tools which support you when you want to determine if there are any tasks defined in multiple setup files? E.g. to see at one glace that the PreferenceTask for the "/instance/org.eclipse.ui.editors/lineNumberRuler" is defined in the user and the project setup files.

[Updated on: Fri, 05 February 2016 11:45]

Report message to a moderator

Re: Application of properties from a project setup file to a running IDE instance [message #1722514 is a reply to message #1722511] Fri, 05 February 2016 11:32 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Am 05.02.2016 um 12:14 schrieb Christoph Zauner:
> Thanks a lot Eike for the hint!
I think that was Ed :P

> The problem was that a lot of preference tasks in my project setup file were already present in my user setup file. I
> must have put them accidentally there.
>
> Are there tools which support you when you want to determine if there are any tasks defined in multiple setup files?
> E.g. to see at one glace that the PreferenceTask for the "/instance/org.eclipse.ui.editors/lineNumberRuler" is defined
> in the user and the project setup files.
No, we don't have such tooling.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:command line
Next Topic:Preferences are recorded, but not loaded (!)
Goto Forum:
  


Current Time: Mon Apr 06 17:07:35 GMT 2020

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

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

Back to the top