mirror of
https://github.com/Minres/RDL-Editor.git
synced 2025-07-01 21:43:26 +02:00
Update to XText 2.13
This commit is contained in:
@ -61,7 +61,8 @@ enum ComponentDefinitionType:
|
||||
|
||||
Instantiation:
|
||||
(
|
||||
instanceType=EnumInstanceType? ("alias" alias=ID)? componentRef=[ComponentDefinition]| component=ComponentDefinition instanceType=EnumInstanceType?
|
||||
instanceType=EnumInstanceType? ("alias" alias=ID)?
|
||||
componentRef=[ComponentDefinition] | component=ComponentDefinition instanceType=EnumInstanceType?
|
||||
) componentInstances+=ComponentInstance (',' componentInstances+=ComponentInstance)*
|
||||
;
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.minres.rdl.preferences;
|
||||
|
||||
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
|
||||
import org.eclipse.core.runtime.preferences.DefaultScope;
|
||||
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
|
||||
|
||||
/**
|
||||
@ -16,7 +15,7 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
|
||||
* initializeDefaultPreferences()
|
||||
*/
|
||||
public void initializeDefaultPreferences() {
|
||||
IEclipsePreferences store = getPreferenceStore();
|
||||
IEclipsePreferences store = RdlPreferences.getPreferenceStore();
|
||||
store.putBoolean(PreferenceConstants.P_GENERATE_CSV, true);
|
||||
String value = System.getProperty(PreferenceConstants.ADDRESSUNIT_PROP);
|
||||
if(value!=null){
|
||||
@ -34,8 +33,4 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
|
||||
store.put(PreferenceConstants.P_ADDRESSUNIT, "byte");
|
||||
}
|
||||
|
||||
public static IEclipsePreferences getPreferenceStore() {
|
||||
return DefaultScope.INSTANCE.getNode(PreferenceConstants.SCOPE_NAME);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,7 +5,6 @@ package com.minres.rdl.scoping
|
||||
|
||||
import com.minres.rdl.rdl.ComponentDefinition
|
||||
import com.minres.rdl.rdl.Root
|
||||
import org.eclipse.emf.ecore.EObject
|
||||
import org.eclipse.xtext.EcoreUtil2
|
||||
import org.eclipse.xtext.scoping.IScope
|
||||
import org.eclipse.xtext.scoping.Scopes
|
||||
|
Reference in New Issue
Block a user