Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 380772
Collapse All | Expand All

(-)a/plugins/org.eclipse.xtext.builder/src/org/eclipse/xtext/builder/smap/SmapInstallingCompilationParticipant.java (-1 / +7 lines)
Lines 80-86 Link Here
80
80
81
	protected IFile findSmapFile(BuildContext ctx) {
81
	protected IFile findSmapFile(BuildContext ctx) {
82
		final IContainer container = ctx.getFile().getParent();
82
		final IContainer container = ctx.getFile().getParent();
83
		return container.getFile(new Path(ctx.getFile().getName().toString().replace(".java", ".smap")));
83
		String extension = ctx.getFile().getFileExtension();
84
		if( extension != null ) {
85
			return container.getFile(new Path(ctx.getFile().getName().toString().replace("."+extension, ".smap")));	
86
		} else {
87
			return container.getFile(new Path(ctx.getFile().getName().toString() + ".smap"));
88
		}
89
		
84
	}
90
	}
85
91
86
}
92
}

Return to bug 380772