| Author |
Message |
|
|
Post subject: [Closed] Problems adding custom components
Posted: Sep 12, 2006 - 09:54 PM
|
|
Veteran Member

Joined: May 26, 2003
Posts: 2
|
|
Hi,
I'm just in the process of porting across some Netbeans 5.x projects to MyEclipse 5.0 GA, and I'm completely stumped as to how I get custom Swing components to work within the built-in Matisse editor.
What I have is a number of *very* simple custom components, (couple of Textfield derivatives and a couple of bespoke table classes) and for the life of me I can't get them to be recognized by the Matisse palette.
I consistently get the following error:
<snip>
java.lang.ClassNotFoundException: xss.rake.controls.swing.IntegerTextField
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:276)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
at org.netbeans.modules.form.palette.PaletteItem.getComponentClass(PaletteItem.java:139)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:2520)
at org.netbeans.modules.form.HandleLayer$NewComponentDrag.<init>(HandleLayer.java:2466)
at org.netbeans.modules.form.HandleLayer.mouseMoved(HandleLayer.java:1612)
at java.awt.Component.processMouseMotionEvent(Component.java:5533)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3111)
at java.awt.Component.processEvent(Component.java:5257)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1766)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
</snip>
No matter how I try and reference the JAR file containing the custom component.
I've seen other postings here on the forum that seem to suggest that other people have been experiencing similar issues - are there any known workarounds/patches to address this, or will I have to just revert back to NetBeans for the time being?
Cheers
JC |
|
|
| |
|
|
|
 |
|
|
Post subject: Sorry - forgot to post my system config details...
Posted: Sep 12, 2006 - 10:43 PM
|
|
Veteran Member

Joined: May 26, 2003
Posts: 2
|
|
*** Date: Tue Sep 12 22:43:38 BST 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.0 GA
Build id: 20060805-5.0-GA
*** Eclipse details:
MyEclipse Enterprise Workbench
Version: 5.0.1 GA
Build id: 20060810-5.0.1-GA
Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816
Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905
Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905
Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905
Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m------6zXJJzJzJq
Build id: M20060629-1905
Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Program Files\Eclipse.2\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
684_74
-product
com.genuitec.myeclipse.product.ide
-vm
C:\Program Files\Java\jdk1.5.0\bin\javaw.exe |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 13, 2006 - 07:34 AM
|
|
Registered Member


Joined: Jul 14, 2005
Posts: 3
|
|
I don't known to resolve the question |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 13, 2006 - 06:13 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
JC,
Sorry for the delay in responding. Just to cut to the quick of this really fast, can you send me your JAR with a list of 2 or 3 of the custom components in an email (support@myeclipseide.com ATTN Riyad, with a link to this thread) and I'll try and import them, and if it fails on my end I'll file it as a bug with the attached JAR to make sure the designer team has something to test against? |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 18, 2006 - 03:25 PM
|
|
Registered Member


Joined: Jun 21, 2006
Posts: 19
|
|
JC,
the jar you provided seems to be compiled to be run on a Java6 compliant VM. M4ME is failing when trying to load the widget to get data about it when MyEclipse is run on a 1.5 VM. It works correctly when a 1.6 VM is used.
You can fix you problem by getting a version of the jar compiled for Java5 or less, or you can try to run MyEclipse with a 1.6 VM (these VMs are still beta, and has a number of known problems). |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Oct 31, 2006 - 11:02 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
This fix will be in 5.0.3 |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|