|
|
|
|
|
|
Re: Package Presentation -> Hierarchical preference not saving [message #1726421 is a reply to message #1725909] |
Sun, 13 March 2016 11:04 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
When I shutdown, the value changes. I.e, if I switch to hierarchical,
it changes to this:
<item value="1" key="layout"/>
So if you don't see it changing when you shutdown (and the dialog
settings should be flushed), then likely there's a shutdown problem of
some sort preventing that from being saved.
You could try showing the Error Log view, clearing it, and seeing if
there are problems logged when you shutdown and restart.
On 08.03.2016 14:30, Flavio B wrote:
> Hi!
>
> thanks a lot for replying.
> The file you mentioned looks like it's being modified when I start
> Eclipse, before selecting the workspace (it's weird).
>
> I don't find exactly what is the relevant part and the settings to be
> checked, but I see there's no change stored on shutdown or when I
> select the hierarchical package presentation (basically the xml file I
> opened with an external editor does not get reloaded by the editor
> since it doesn't detect any change).
>
> I think this is the relevant part:
> <section
> name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
> [...]
> </section>
>
> I'm not sure what I have to check to find out if the setting has been
> stored or not.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Re: Package Presentation -&amp;amp;gt; Hierarchical preference not saving [message #1726429 is a reply to message #1726426] |
Sun, 13 March 2016 13:31 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Flavio,
Comments below.
On 13.03.2016 14:08, Flavio B wrote:
> Hi!
>
> I've checked the value <item value="1" key="layout"/> and I see it was
> already set like that.
And it stays that way? And it's in the workspace you're opening? You
mentioned something about it being changed. If you change the setting
to flat and quit, does this value change to 2?
> It doesn't change whenever I change the package presentation option.
As I mentioned, it's apparently saved on shutdown. So try to confirm
that changing it saves changes on shutdown. You can of course try to
change it in the file before you restart to see if that has the expected
impact.
> I've also made sure to have all the RW permissions on the eclipse
> directory, and it is OK.
You are looking in the workspace directory, correct?
>
> As regard the Error Log view, it doesn't say anything when I change
> the package presentation.
Again, I mentioned clearing the error log, shutting down, and looking
again when you've restarted.
I think at this point you have all the information you need because
there's nothing else I can tell you to try. Ensure that you're
really looking at the file for the workspace you're opening and
closing. Ensure that the file really changes when you shutdown. If it
doesn't try changing it manually to confirm that this setting really
does have an impact on what you see in the package explore. For me all
those things work as expected.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Re: Package Presentation -&amp;amp;amp;gt; Hierarchical preference not saving [message #1726442 is a reply to message #1726437] |
Sun, 13 March 2016 19:07 |
Flavio Mising name Messages: 15 Registered: June 2015 |
Junior Member |
|
|
Hi,
yes, I understand your perplexity, I'm sorry for not being so precise.
Anyway, yes... this is my impression: the value has no impact when you start. I double checked the setting file being used (the one of the workspace I am using).
Today it was the first time I noticed that value changing, but it looks like it doesn't work.
These are the steps I am trying to reproduce:
1) Open .metadata\.plugins\org.eclipse.jdt.ui\dialog_settings.xml
2) check the following initial situation:
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
<...>
<item value="1" key="layout"/>
<...>
</section>
3) Open Eclipse
4) Package presentation is: Flat
5) Change Package presentation to: Hierarchical
6) <item value="1" key="layout"/> is unchanged
7) Close Eclipse
8 ) <item value="1" key="layout"/> is unchanged
9) Open Eclipse: value unchanged
10) Repeat step 6
11) Close Eclipse and the value is still unchanged
This is really weird... the value doesn't change anymore! The file is changing anyway when Eclipse is closed, but it's not related to the part we are talking about. Differences are just related to some piece of XML moved up or down.
Thanks for your support.
[Updated on: Sun, 13 March 2016 19:08] Report message to a moderator
|
|
|
Re: Package Presentation -&amp;amp;amp;amp;gt; Hierarchical preference not saving [message #1726460 is a reply to message #1726442] |
Mon, 14 March 2016 06:47 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Comments below.
On 13.03.2016 20:07, Flavio FB wrote:
> Hi,
> yes, I understand your perplexity, I'm sorry for not being so precise.
> Anyway, yes... this is my impression: the value has no impact when you
> start.
That's not what I see. This leads me to the impression that the file
you're looking at on disk is not really the workspace being used by Eclipse.
> I double checked the setting file being used (the one of the workspace
> I am using). Today it was the first time I noticed that value
> changing, but it looks like it doesn't work.
So you talk about the value changing, but the steps below describe them
not changing. That may be, but that means something during shutdown is
failing to save the change.
But then you also claim the value in the file has no impact when you
start up. I doubt that. Then there's also a problem reading the
file. If Eclipse can't read nor write the file, that suggests a
permissions problem.
>
> These are the steps I am trying to reproduce:
> 1) Open .metadata\.plugins\org.eclipse.jdt.ui\dialog_settings.xml
> 2) check the following initial situation:
> <section
> name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
> <...>
> <item value="1" key="layout"/>
> <...>
> </section>
> 3) Open Eclipse
> 4) Package presentation is: Flat
> 5) Change Package presentation to: Hierarchical
> 6) <item value="1" key="layout"/> is unchanged
> 7) Close Eclipse
> 8) <item value="1" key="layout"/> is unchanged
> 9) Open Eclipse: value unchanged
> 10) Repeat step 6
> 11) Close Eclipse and the value is still unchanged
>
> This is really weird... the value doesn't change anymore! The file is
> changing anyway when Eclipse is closed, but it's not related to the
> part we are talking about.
Of course the detail we've been talking about is some piece of XML.
> Differences are just related to some piece of XML moved up or down.
Try the following. Create a new workspace. Note where it is and make
sure that's the one Eclipse is opening. Try the experiment with that.
Copy the *.xml so you have a before and after version you can compare.
Try changing several things such as the top level between project and
workingset and the presentation between flat and hierarchical. Compare
the copied *.xml to see what's changing.
>
> Thanks for your support.
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.05081 seconds