- This topic has 3 replies, 2 voices, and was last updated 16 years, 3 months ago by Loyal Water.
-
AuthorPosts
-
delfuegoMemberIn MyEclipse 6.5.1 (6.5.1-GA.20080715), if I highlight a bunch of file types and use the right-click context menu “Properties” selection, I get an error if I select a few of the options in the left-hand column. Specifically, if I highlight an .XML file, a .JAR file, or a few other types, and then choose “Java Code Style”, “Java Compiler”, “Project References”, and a few others, I get a dialog with the error “An error has occurred. See error log for more details. Reason: org.eclipse.core.internal.resources.File”.
Now, you might say that these options don’t *apply* to these file types, and that’s correct — which is why I was confused that they were showing up in the File Properties dialog. And running base Eclipse 3.3.2, they don’t show up in the File Properties dialog; the only options under base Eclipse 3.3.2 are “Resource” and “Run/Debug Settings”. So this appears to be MyEclipse adding them to the Properties dialog, but not being able to handle them.
Does this make sense?
The contents of the log file, after triggering this error, are as follows:
!SESSION 2008-07-25 09:35:46.774 ----------------------------------------------- eclipse.buildId=M20070829-0800 java.version=1.5.0_13 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US Framework arguments: -keyring /Users/jlevine/.eclipse_keyring -showlocation -product com.genuitec.myeclipse.product.ide Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/jlevine/.eclipse_keyring -consoleLog -showlocation -product com.genuitec.myeclipse.product.ide !ENTRY org.eclipse.jface 4 2 2008-07-25 09:37:25.779 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.ClassCastException: org.eclipse.core.internal.resources.File at org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage.setElement(PropertyAndPreferencePage.java:322) at org.eclipse.ui.internal.dialogs.RegistryPageContributor.createPage(RegistryPageContributor.java:136) at org.eclipse.ui.internal.dialogs.PropertyPageNode.createPage(PropertyPageNode.java:56) at org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDialog.java:1294) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:313) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1185) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:433) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3214) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2954) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1519) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1504) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3350) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2950) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Loyal WaterMemberdelfuego,
I tried selecting a JAR and an XML file and opening the right click context menu but my Properties option gets disabled. Can you list the steps to help me reproduce this issue.Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
delfuegoMemberNipun, you misunderstand; you select ONE file, not multiple. So select *any* JAR file, or *any* XML file, or whatever, but don’t select more than one; then do the right-click > Properties.
In any event, here’s my installation details, for the version I re-installed this morning in an attempt to try to isolate all the bugs I’m stumbling over; this version exhibits this Properties bug just like the others have.
*** Date: Monday, July 28, 2008 10:54:59 AM EDT ** System properties: OS=MacOSX OS version=10.5.4 Java version=1.5.0_13 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 6.5.1 GA Build id: 6.5.1-GA-20080715 *** Eclipse details: Eclipse SDK Version: 3.3.2 Build id: M20080221-1800 Eclipse Project SDK Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO Build id: M20080221-1800 Eclipse Platform Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft Build id: M20080221-1800 Eclipse Java Development Tools Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7 Build id: M20080221-1800 Eclipse Graphical Editing Framework Version: 3.3.2.v20080129 Build id: 20080221-1602 Eclipse RCP Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc Build id: M20080221-1800 Eclipse Plug-in Development Environment Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL Build id: M20080221-1800 Eclipse startup command=-os macosx -ws carbon -arch x86 -showsplash -launcher /Volumes/Eclipse Testing 20080728/eclipse/Eclipse.app/Contents/MacOS/eclipse -name Eclipse --launcher.library /Volumes/Eclipse Testing 20080728/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.3.R33x_v20080118/eclipse_1023.so -startup /Volumes/Eclipse Testing 20080728/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar -keyring /Users/jlevine/.eclipse_keyring -consoleLog -showlocation -vm /System/Library/Frameworks/JavaVM.framework
Loyal WaterMemberdelfuego,
I was able to reproduce this issue. I’ll file it for my dev team right away. Thanks for reporting this. -
AuthorPosts