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 216337 Details for
Bug 380772
Adding xtext nature to a groovy-project deletes groovy files on save
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
org.eclipse.xtext-380772.patch (text/plain), 1.02 KB, created by
Thomas Schindl
on 2012-05-27 13:08:43 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Thomas Schindl
Created:
2012-05-27 13:08:43 EDT
Size:
1.02 KB
patch
obsolete
>diff --git a/plugins/org.eclipse.xtext.builder/src/org/eclipse/xtext/builder/smap/SmapInstallingCompilationParticipant.java b/plugins/org.eclipse.xtext.builder/src/org/eclipse/xtext/builder/smap/SmapInstallingCompilationParticipant.java >index d4578bf..99b12fe 100644 >--- a/plugins/org.eclipse.xtext.builder/src/org/eclipse/xtext/builder/smap/SmapInstallingCompilationParticipant.java >+++ b/plugins/org.eclipse.xtext.builder/src/org/eclipse/xtext/builder/smap/SmapInstallingCompilationParticipant.java >@@ -80,7 +80,13 @@ > > protected IFile findSmapFile(BuildContext ctx) { > final IContainer container = ctx.getFile().getParent(); >- return container.getFile(new Path(ctx.getFile().getName().toString().replace(".java", ".smap"))); >+ String extension = ctx.getFile().getFileExtension(); >+ if( extension != null ) { >+ return container.getFile(new Path(ctx.getFile().getName().toString().replace("."+extension, ".smap"))); >+ } else { >+ return container.getFile(new Path(ctx.getFile().getName().toString() + ".smap")); >+ } >+ > } > > }
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 380772
:
216337