Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342732

Summary: Incorrect preference store is used for SyntaxColor preferences
Product: [Modeling] TMF Reporter: Hendrik Eeckhaut <hendrik>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: clay, sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: M7   
Hardware: All   
OS: All   
Whiteboard:

Description Hendrik Eeckhaut CLA 2011-04-13 11:40:25 EDT
Build Identifier: 20110218-0911

When I run my Xtext plugin as an Eclipse Application from a host Eclipse and change color preferences for my DSL. These preferences are stored in a settings file in the workspace of the host Eclipse (and not in the runtime workspace).

See http://www.eclipse.org/forums/index.php?t=msg&th=207226&start=0&S=0444892b35e1644be58cee63ba1dcd25&SQ=bc1ce9953d911fd999d85200d3a8ab6b& for the original discussion on the Xtext forum.

Xtext 2.0 M6

Reproducible: Always

Steps to Reproduce:
1. Create a new Xtext project (default settings) and run the MWE2 workflow
2. Start the new plugin as Eclipse application
3. Create a test project with a test file (test.mydsl)
4. Change a color in the Syntax Coloring Preference page of MyDsl
5. The preference is stored in <host-workspace>/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/.settings/org.xtext.example.mydsl.MyDsl.prefs instead of the expected ~/runtime-EclipseApplication/.metadata/.plugins
Comment 1 Michael Clay CLA 2011-04-18 17:25:10 EDT
have you already tried to change the configuration area in the corresponding eclipse launch configurations dialog (default value is ${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application)?


(In reply to comment #0)
> Build Identifier: 20110218-0911
> 
> When I run my Xtext plugin as an Eclipse Application from a host Eclipse and
> change color preferences for my DSL. These preferences are stored in a settings
> file in the workspace of the host Eclipse (and not in the runtime workspace).
> 
> See
> http://www.eclipse.org/forums/index.php?t=msg&th=207226&start=0&S=0444892b35e1644be58cee63ba1dcd25&SQ=bc1ce9953d911fd999d85200d3a8ab6b&
> for the original discussion on the Xtext forum.
> 
> Xtext 2.0 M6
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Create a new Xtext project (default settings) and run the MWE2 workflow
> 2. Start the new plugin as Eclipse application
> 3. Create a test project with a test file (test.mydsl)
> 4. Change a color in the Syntax Coloring Preference page of MyDsl
> 5. The preference is stored in
> <host-workspace>/.metadata/.plugins/org.eclipse.pde.core/Eclipse
> Application/.settings/org.xtext.example.mydsl.MyDsl.prefs instead of the
> expected ~/runtime-EclipseApplication/.metadata/.plugins
Comment 2 Hendrik Eeckhaut CLA 2011-04-19 03:18:59 EDT
I didn't know about the configuration area setting. The preference is indeed saved in the specified location.
Comment 3 Karsten Thoms CLA 2017-09-19 17:55:05 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:06:02 EDT
Closing all bugs that were set to RESOLVED before Neon.0