Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jcoombes
Post subject: [Closed] Problems adding custom components  PostPosted: Sep 12, 2006 - 09:54 PM
Veteran Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jcoombes
Post subject: Sorry - forgot to post my system config details...  PostPosted: Sep 12, 2006 - 10:43 PM
Veteran Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jum_xie
Post subject:   PostPosted: Sep 13, 2006 - 07:34 AM
Registered Member
Registered Member


Joined: Jul 14, 2005
Posts: 3

I don't known to resolve the question
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 13, 2006 - 06:13 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23459

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-luc
Post subject:   PostPosted: Oct 18, 2006 - 03:25 PM
Registered Member
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).
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 31, 2006 - 11:02 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23459

This fix will be in 5.0.3

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits