Home » Eclipse Projects » Oomph » Network Connections Active Provider selection preference(Oomph doesn't want to record it normally)
|
Re: Network Connections Active Provider selection preference [message #1753120 is a reply to message #1753083] |
Thu, 02 February 2017 03:33 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
Certainly the marketplace has made changes in Neon how it does authentication, so perhaps that support still isn't quite right...
I don't know specifically how WST stores any of its preferences. I do know that the General -> Network Connections are stored as configuration scoped preferences, not instance scoped, so they are stored in the installation's configuratiaon/.settings/*.prefs. The preference recorder only records instance-scoped preferences, so that makes capturing the changes trickier. The installer itself supports settings the network connection preferences and if you set them there, those preferences will be copied to each installation created by the installer, so that's one approach to use. Another approach is to resource copy task that copies the file containing the network preferences into each installation. Preference tasks could accomplish this as well, but direct recording isn't so easy.
You can use Navigate -> Open Setup -> User to open the user.setup, and then the toolbar button for Capture Preferences can be used to record any preference as it's current set in the preference store. I tried this for the org.eclipse.core.net node, but it captures them as instance scoped preference and I'm not sure that the core.net plugin will respect those. You could change /instance to /configuration in the key...
With regard to your other problem, we noticed that some preference dialogs defer changing the preference values to happen after the the OK processing, so we changed the recorder to also defer (post event to display thread) to process the recorded changes, so maybe that problem is fixed. If not, we could look into fixing that if there is a bugzilla describing how to reproduce the problem.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Network Connections Active Provider selection preference [message #1753215 is a reply to message #1753120] |
Thu, 02 February 2017 17:51 |
Daniel Wilson Messages: 11 Registered: February 2017 |
Junior Member |
|
|
I see. Stupidly, I'm not actually making use of the installer functionality -- I'm just using Oomph to make an installation.setup that'll carry some default preferences into any new workspace, and otherwise using a batch script to xcopy a pre-installed application folder into Windows' Program Files directory. As such, it seems like my problem's a bit illusory -- I had a look in or.clipse.core.net.prefs, found proxiesEnabled and systemProxiesEnabled set to false, and realized my testing had been with copies of a clean (other than having the Subversive plugin installed) application folder, rather than one that'd had the Active Provider changed. A brief test even confirmed that a new workspace in a copy of the test folder I'd been working with didn't exhibit the issue. So that resolves that.
My other problem? If you're refering to the PHP save action not recording properly, I can confirm that's been fixed in Neon. In fact, I think it may've been fixed in Mars.2.
Thanks for accidentally pointing out my unwitting folly; it proved extremely helpful!
[edit] Or not...copying the thing out and firing up that version in a new workspace actually sees Active Provider go right back to Native. Drat. I'll try that capture preferences button.
[edit 2] And after further investigation, I've found why it's doing that -- Program Files is being troublesome by not letting it write to its own preferences, so it's making new ones off in %userprofile%\.eclipse\org.eclipse.platform_4.6.2_578509193_win32_win32_x86_64. I'm guessing they start as defaults, and since Oomph doesn't record the two settings I'm having trouble with, default they stay. I understand better what you meant by instance vs config scope. I guess I'll see if I can't get away with having the install script copy core.net.prefs into said userprofile folder, creating it, before first running eclipse.
[Updated on: Sat, 04 February 2017 00:17] Report message to a moderator
|
|
| | |
Re: Network Connections Active Provider selection preference [message #1753558 is a reply to message #1753485] |
Tue, 07 February 2017 17:27 |
Daniel Wilson Messages: 11 Registered: February 2017 |
Junior Member |
|
|
Oh heck, hence that whole defference thing you mentioned. Darn, that was a dumb question.
Indeed I have, however, Windows does not like things writing to the otherwise-logical Program Files directory, so it runs off and generates a whole new configuration folder in \Users\%name%\.eclipse\org.eclipse.platform_4.6.2_578509193_win32_win32_x86_64\ when one first launches it, and the core.net.prefs file it shoves in configuration\.settings defaults to native. Why it doesn't base this thing off the one in the application's actual location is beyond me.
I can copy org.eclipse.core.net.prefs into %userprofile%\.eclipse\org.eclipse.platform_4.6.2_578509193_win32_win32_x86_64\ configuration\.settings, creating most of that tree in doing so, and it does work, but only for the user that runs the script that does the copies; thus kinda violating the whole installation settings premise.
|
|
| | |
Goto Forum:
Current Time: Sat Dec 07 20:58:02 GMT 2024
Powered by FUDForum. Page generated in 0.04060 seconds
|