Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366792

Summary: [Xtend] highlighting of extension methods
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Holger Schill <Holger.Schill>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Holger.Schill, sebastian.zarnekow
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-12-15 04:47:09 EST
Simple feature calls are sometimes not get highlighted as extension method.

@Inject extension MyExtension // defines doStuff(String x)
def foo(String it) {
  doStuff //not colored as extension method
}
Comment 1 Holger Schill CLA 2011-12-16 06:51:57 EST
Unfortunately I am not able to reproduce this. With this example the invocation of doStuff is highlighted. 


Xtend-class

package foo

import com.google.inject.Inject

class Foo {
@Inject extension Bar
	def foo(String it){
		doStuff  <--- is highlighted as extension
	}	
}

Java-class

package foo;

public class Bar {
	public String doStuff(String a){
		return a;
	}
}


Sven, could you please attach your example?
Comment 2 Sven Efftinge CLA 2012-01-04 08:30:48 EST
This was due to an unintuitive linking resolution. Bug #367058 should help with this.
Comment 3 Karsten Thoms CLA 2017-09-19 17:22:42 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:34:07 EDT
Closing all bugs that were set to RESOLVED before Neon.0