Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 132481 Details for
Bug 272533
Copyright statements are not generated.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for Util class
patch_272533.txt (text/plain), 2.39 KB, created by
Olivier Thomann
on 2009-04-20 15:05:07 EDT
(
hide
)
Description:
Patch for Util class
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2009-04-20 15:05:07 EDT
Size:
2.39 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/util/Util.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java,v >retrieving revision 1.130 >diff -u -r1.130 Util.java >--- model/org/eclipse/jdt/internal/core/util/Util.java 8 Apr 2009 22:52:54 -0000 1.130 >+++ model/org/eclipse/jdt/internal/core/util/Util.java 20 Apr 2009 19:04:12 -0000 >@@ -926,7 +926,7 @@ > > /** > * Returns the line separator found in the given text. >- * If it is null, or not found return the line delimitor for the given project. >+ * If it is null, or not found return the line delimiter for the given project. > * If the project is null, returns the line separator for the workspace. > * If still null, return the system line separator. > */ >@@ -940,21 +940,23 @@ > return lineSeparator; > } > >- // line delimiter in project preference >- IScopeContext[] scopeContext; >- if (project != null) { >- scopeContext= new IScopeContext[] { new ProjectScope(project.getProject()) }; >- lineSeparator= Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext); >+ if (Platform.isRunning()) { >+ // line delimiter in project preference >+ IScopeContext[] scopeContext; >+ if (project != null) { >+ scopeContext= new IScopeContext[] { new ProjectScope(project.getProject()) }; >+ lineSeparator= Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext); >+ if (lineSeparator != null) >+ return lineSeparator; >+ } >+ >+ // line delimiter in workspace preference >+ scopeContext= new IScopeContext[] { new InstanceScope() }; >+ lineSeparator = Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext); > if (lineSeparator != null) > return lineSeparator; > } > >- // line delimiter in workspace preference >- scopeContext= new IScopeContext[] { new InstanceScope() }; >- lineSeparator = Platform.getPreferencesService().getString(Platform.PI_RUNTIME, Platform.PREF_LINE_SEPARATOR, null, scopeContext); >- if (lineSeparator != null) >- return lineSeparator; >- > // system line delimiter > return org.eclipse.jdt.internal.compiler.util.Util.LINE_SEPARATOR; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272533
:
132230
|
132480
| 132481 |
132664
|
132926