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 17658 Details for
Bug 71460
[model] Non *.java file association with Java contents.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch fixes some hardcoded dependency on *.java extension
patch.txt (text/plain), 738 bytes, created by
Alex Smirnoff
on 2005-02-03 11:51:50 EST
(
hide
)
Description:
Patch fixes some hardcoded dependency on *.java extension
Filename:
MIME Type:
Creator:
Alex Smirnoff
Created:
2005-02-03 11:51:50 EST
Size:
738 bytes
patch
obsolete
>Index: CompilationUnit.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java,v >retrieving revision 1.196 >diff -u -r1.196 CompilationUnit.java >--- CompilationUnit.java 21 Jan 2005 16:00:23 -0000 1.196 >+++ CompilationUnit.java 3 Feb 2005 16:42:16 -0000 >@@ -675,8 +675,9 @@ > */ > public char[] getMainTypeName(){ > String elementName = getElementName(); >- //remove the .java >- elementName = elementName.substring(0, elementName.length() - 5); >+ //remove the extension >+ int end = elementName.lastIndexOf('.'); >+ elementName = elementName.substring(0, end); > return elementName.toCharArray(); > } > /**
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 71460
: 17658 |
17686