Community
Participate
Working Groups
Created attachment 201699 [details] stacktrace I control-clicked on a property key in a bundle.properties file and got the attached error: ClassCastException: org.eclipse.core.internal.resources.Project cannot be cast to org.eclipse.core.resources.IStorage eclipse.buildId=I20110613-1736 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_FR
Can you please attach the entire stacktrace? If possible, a reproducible test case as well. Thanks!
I have already attached the stacktrace. To reproduce: - With these projects: https://dev.eclipse.org/svnroot/modeling/org.eclipse.emft.facet/trunk/plugins/org.eclipse.emf.facet.widgets.nattable https://dev.eclipse.org/svnroot/modeling/org.eclipse.emft.facet/trunk/plugins/org.eclipse.emf.facet.common.ui - Open /org.eclipse.emf.facet.widgets.nattable/OSGI-INF/l10n/bundle.properties - Control+Click on the key: "add.query.column" In the context of the exception, match is a FieldReferenceMatch: Search match accuracy=INACCURATE rule=EXACT raw=false offset=12075 length=6 element=setColumnWidth(org.eclipse.swt.widgets.Item, int) {key=Lorg/eclipse/jface/util/ConfigureColumns$ConfigureColumnsDialog;.setColumnWidth(Lorg/eclipse/swt/widgets/Item;I)V} [in ConfigureColumnsDialog [in ConfigureColumns$ConfigureColumnsDialog.class [in org.eclipse.jface.util [in C:\Users\Travail\bin\com.mia.dev.eclipsepackage_indigo_win32_x86_64_win32_2011-08-09\plugins\org.eclipse.jface_3.7.0.I20110522-1430.jar]]]] And match.getResource() returns an org.eclipse.core.internal.resources.Project: org.eclipse.emf.facet.common.ui
Sorry, my bad. I did not see the attachment. Moving to JDT/UI
*** This bug has been marked as a duplicate of bug 332635 ***
We should not wait for bug 332635.
Fixed in master: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=75f87bbecf220f8990d6edc76017f1a1d9b11348