Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » IElementChangedListener and Source Attachments
IElementChangedListener and Source Attachments [message #1722377] Thu, 04 February 2016 11:56
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hello, i have a question on IElementChangedListeners

I get a delta like the following if i simply change the source attachment of a libary

Java Model[*]: {CHILDREN}
zzz[*]: {CHILDREN | CONTENT | RAW CLASSPATH CHANGED | RESOLVED CLASSPATH CHANGED}
/data/eclipse-workspaces/ws-jan-swx/lib/bin[*]: {SOURCE ATTACHED}
ResourceDelta(/zzz/.classpath)[*]

for the JavaProject (zzz) it says "RAW CLASSPATH CHANGED | RESOLVED CLASSPATH CHANGED" although nothing has changed

.classpath before

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="src" path="xtend-gen"/>
	<classpathentry kind="src" path="abc"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
	<classpathentry kind="con" path="org.eclipse.xtend.XTEND_CONTAINER"/>
	<classpathentry kind="var" path="MY_LIB/bin"/>
	<classpathentry kind="output" path="bin"/>
</classpath>


.classpath after

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="src" path="xtend-gen"/>
	<classpathentry kind="src" path="abc"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
	<classpathentry kind="con" path="org.eclipse.xtend.XTEND_CONTAINER"/>
	<classpathentry kind="var" path="MY_LIB/bin" sourcepath="/MY_LIB/src"/>
	<classpathentry kind="output" path="bin"/>
</classpath>


is this behavour intended? a source attachment does no classpath change at all imho
is there a util that helps me to detect if the delta is a real classpath change and not a fake change only?

thanks
Christian Dietrich


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:No console output of comma
Next Topic:Publishing exported packages with specific version in ecj.jar?
Goto Forum:
  


Current Time: Fri Apr 26 14:50:24 GMT 2024

Powered by FUDForum. Page generated in 0.03429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top