|
|
|
|
|
|
Re: Package Presentation -> Hierarchical preference not saving [message #1726421 is a reply to message #1725909] |
Sun, 13 March 2016 07:04   |
Eclipse User |
|
|
|
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.
|
|
|
|
Re: Package Presentation -&amp;amp;gt; Hierarchical preference not saving [message #1726429 is a reply to message #1726426] |
Sun, 13 March 2016 09:31   |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
Re: Package Presentation -&amp;amp;amp;amp;gt; Hierarchical preference not saving [message #1726460 is a reply to message #1726442] |
Mon, 14 March 2016 02:47   |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Re: Package Presentation -&amp;amp;amp;amp;gt; Hierarchical preference not saving [message #1726511 is a reply to message #1726460] |
Mon, 14 March 2016 07:34  |
Eclipse User |
|
|
|
OK,
Here's the XML file content that is created after the following steps:
1) open Eclipse
2) select a path for a new workspace
3) Switch to hierarchical package presentation
4) close eclipse
The file is being created when eclipse closes:
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
<item value="true" key="group_libraries"/>
<item value="false" key="linkWithEditor"/>
<item value="1" key="layout"/>
<item value="1" key="rootMode"/>
<item value="<?xml version="1.0" encoding="UTF-8"?>
<packageExplorer group_libraries="1" layout="1" linkWithEditor="0" rootMode="1" workingSetName="Aggregate for window 1457954723050">
<customFilters userDefinedPatternsEnabled="false">
<xmlDefinedFilters>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.ajdt.javamodel.CompilationUnitFilter" isEnabled="true"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.PointcutFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter" isEnabled="false"/>
<child filterId="org.eclipse.pde.ui.ExternalPluginLibrariesFilter1" isEnabled="true"/>
<child filterId="_patternFilterId_*.ajsym" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.FieldsFilter" isEnabled="false"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.IntroductionFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter" isEnabled="false"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.AdviceFilter" isEnabled="false"/>
<child filterId="org.eclipse.pde.ui.BinaryProjectFilter1" isEnabled="false"/>
<child filterId="org.eclipse.mylyn.java.ui.MembersFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.StaticsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_*_Roo_*.aj" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter" isEnabled="true"/>
<child filterId="org.eclipse.ajdt.ui.editor.outline.DeclarationFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter" isEnabled="true"/>
<child filterId="org.eclipse.m2e.MavenModuleFilter" isEnabled="false"/>
</xmlDefinedFilters>
</customFilters>
</packageExplorer>" key="memento"/>
</section>
<section name="JavaElementSearchActions">
</section>
<section name="NewPackageWizardPage">
<item value="false" key="create_package_info_java"/>
</section>
</section>
The value is set to 1 when it should be 2: <item value="1" key="layout"/>
Anyway, opening the workspace again the package presentation is Hierarchical as expected. I think there's no write permission problems on the other workspace, since the file is being modified every time.
This is really weird!
|
|
|
Powered by
FUDForum. Page generated in 0.16014 seconds