- This topic has 25 replies, 4 voices, and was last updated 16 years, 11 months ago by
Tom Yamada.
-
AuthorPosts
-
Riyad KallaMemberJakoub,
I’m sorry this issue has taken so long to be resolved for you, the reason for the problem in the first place is that your package names (e.g. 22×22) are invalid package names and are therefore being removed by MyEclipse from the build path.Because they are illegal package names you can *never* see them in the package selection drop down list to choose the icon from the package.
You have to rename the package to a valid name, something like “icon22x22” or any other name you want, but it cannot start with numbers.
I have attached an example M4M project for you that *does* set the Icon for a button and works just fine, you can use that as an example.
NOTE: A growing design pattern, including the preferred way to use the Swing Application Framework in Java 7 is to create a “resources” package under the package with the gui that needs the icons or resources. So you might consider something like this as it is the preferred package layout:
+ com + mycompany - MyGUI.java - MyOtherPanel.java + resources - icon.png
something like that.
Attachments:
You must be logged in to view attached files.
JakoubMemberI am sorry for my delay. Yes, you have a true, I had a wrong name for my icon src files. I renamed as a icon22x22 and I can see this files in a pop-up windows just now. Thank you for your help me.
RegardsJakoub
Riyad KallaMemberJakoub,
I’m glad it’s working now.
Tom YamadaParticipantI am running into a similar issue, but with a twist…
In my case, the custom editor pop-up does work normally for the “Icon” property. However the pop-up for “Disabled icon” does not appear, either by clicking on the ellipsis “…” button, or by selecting and pressing Ctrl-Space. I have tried different design-time DT.jar resources but have not been able to get this fixed by that means. For now, I am working around the issue by entering custom creation code.
This may have occurred with the 6.0.1 upgrade, as I had successfully used the Disabled Icon property editor prior to the upgrade, and hadn’t seen the failure until trying to use it in the same project sometime after the upgrade.
I’d appreciate any ideas. Thanks.
:Tom
Riyad KallaMemberTom,
Can you go to MyEclipse > Add Features… and see if any updates are available for Matisse? We did do a separate 6.0.2 refresh of Matisse that is based on the entirely new NetBeans 6.0 codebase and pushed that out after the MyEclipse 6.0.1 release separately.I just tested Matisse4MyEclipse in both MyEclipse Blue and MyEclipse 6.0.1 (from Pulse) and both correctly popped up the Icon editor for the icon, disabledIcon, and disabledSelectedIcon properties.
So I’m hoping you just hadn’t picked up the refreshed update yet and that should fix it.
Tom YamadaParticipantRiyad:
Selecting “Add Features” comes back with “All available MyEclipse-compatible features have been installed”, the “Help/About MyEclipse” popup shows “Version: 6.0.1 GA, Build id: 6.0.1-GA-200710” — while the Configuration Details listing shows several 6.0.2 features relating to Swing and MyReports.
I did get an upgrade around the end of the first week of January and it fixed the “Hang on Startup when Form is focus” syndrome. I thought that was the one with the new NetBeans codebase. Does the version information above indicated that I really didn’t get a an upgrade or the complete correct upgrade? The MyEclipse installation has been stable since that time in daily use.
You mentioned disabledSelectedIcon — my original report concerned a label, but I checked a button also and while the icon property editor works normally, the diabledIcon and disabledSelectedIcon property editors do not appear.
:Tom
Riyad KallaMemberSelecting “Add Features” comes back with “All available MyEclipse-compatible features have been installed”, the “Help/About MyEclipse” popup shows “Version: 6.0.1 GA, Build id: 6.0.1-GA-200710” — while the Configuration Details listing shows several 6.0.2 features relating to Swing and MyReports.
Hmm, ok sounds like you are all current on everything then.
Tom, if you open Window > Show View > Other > General > Errors, do you have errors getting logged each time you try and invoke that menu? (I just tried with a JLabel and it worked)
Also can you go to MyEclipse > Installation Summary > Installation Details and tell me what version of Java is being used to run MyEclipse? I wonder if that could play a role… I’m usnig 1.6.0_04
Tom YamadaParticipantRiyad:
… open Window > Show View > Other > General > Errors …
Now, this is odd — there is no “Errors” choice under this location. I typed “error” into the filter, and just see “MyEclipse Database/Oracle Source Errors” and “PDE Runtime/Error Log”
MyEclipse is running with Java 1.5.0_14.
:Tom
Tom YamadaParticipantRiyad:
So I’m guessing that the Error Log that I found is what we are after and I did the test you suggested. No new entry was created in the log for the actual attempt to launch the property editor.
However I did see a new error while I had the error pane docked — and which may or may not have anything to do with what I have been experiencing. Switching from the errors tab to the properties tab shows a blank property list area with no entries until I click back onto the layout for my form which is already displayed but not the focus. As the properties list is displayed a new entry was created in the log as follows:
“WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part com.genuitec.eclipse.dehory.formeditor” — I was consistently able to trigger this warning at that time. In any case, I cleared the log and thereafter could not trigger that particular warning with the same steps. None of this had any effect on the original problem regarding the disabled icon properties.I am attaching a complete log entry following this message.
Thanks.
:Tom
eclipse.buildId=M20071023-1652
java.version=1.5.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -vm C:\Program Files\Java\jdk1.5.0_14\bin\javaw.exe -product com.genuitec.myeclipse.product.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -vm C:\Program Files\Java\jdk1.5.0_14\bin\javaw.exe -product com.genuitec.myeclipse.product.ide -data C:\Eclipse\workspaceError
Mon Mar 31 15:01:23 PDT 2008
WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part com.genuitec.eclipse.dehory.formeditorjava.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part com.genuitec.eclipse.dehory.formeditor
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3352)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:229)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1273)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2366)
at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2176)
at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:4282)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3738)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Control.forceFocus(Control.java:963)
at org.eclipse.swt.widgets.Control.setFixedFocus(Control.java:2707)
at org.eclipse.swt.widgets.Composite.setFixedFocus(Composite.java:802)
at org.eclipse.swt.widgets.Composite.setFixedFocus(Composite.java:800)
at org.eclipse.swt.widgets.Control.fixFocus(Control.java:921)
at org.eclipse.swt.widgets.Control.setVisible(Control.java:3099)
at org.eclipse.ui.part.PageBook.showPage(PageBook.java:113)
at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:964)
at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:746)
at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:188)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
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.PartListenerList.fireEvent(PartListenerList.java:57)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3402)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:229)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1273)
at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:2015)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3713)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1554)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1753)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2260)
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:2769)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3288)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Riyad KallaMemberThis message has not been recovered.
Tom YamadaParticipantThis message has not been recovered.
-
AuthorPosts