View | Details | Raw Unified | Return to bug 217853
Collapse All | Expand All

(-)./plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java (-1 / +4 lines)
Lines 23-28 Link Here
23
import org.eclipse.core.runtime.content.IContentType;
23
import org.eclipse.core.runtime.content.IContentType;
24
import org.eclipse.core.runtime.preferences.IScopeContext;
24
import org.eclipse.core.runtime.preferences.IScopeContext;
25
import org.eclipse.core.runtime.preferences.InstanceScope;
25
import org.eclipse.core.runtime.preferences.InstanceScope;
26
import org.eclipse.core.runtime.preferences.IPreferencesService;
26
import org.eclipse.jdt.core.*;
27
import org.eclipse.jdt.core.*;
27
import org.eclipse.jdt.core.compiler.CharOperation;
28
import org.eclipse.jdt.core.compiler.CharOperation;
28
import org.eclipse.jdt.core.dom.ASTNode;
29
import org.eclipse.jdt.core.dom.ASTNode;
Lines 879-885 Link Here
879
		
880
		
880
		// line delimiter in workspace preference
881
		// line delimiter in workspace preference
881
		scopeContext= new IScopeContext[] { new InstanceScope() };
882
		scopeContext= new IScopeContext[] { new InstanceScope() };
882
		lineSeparator = Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext);
883
		IPreferencesService prefService = Platform.getPreferencesService();
884
		if (prefService != null)
885
			lineSeparator = prefService.getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext);
883
		if (lineSeparator != null)
886
		if (lineSeparator != null)
884
			return lineSeparator;
887
			return lineSeparator;
885
		
888
		

Return to bug 217853