Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Can't get BeanInfo file to work
Can't get BeanInfo file to work [message #615103] Mon, 05 March 2007 22:53
Edward is currently offline EdwardFriend
Messages: 11
Registered: July 2009
Junior Member
I went through the SWT Custom Widget tutorial on tomwidget.html#Runtime_jar
and I was able to get the BeanInfo file to work no matter where I put the
BeanInfo file (same package, different package, in a Jar, in a different
Jar, etc).

I did the same thing with my SWING plugin, but the BeanInfo file did not
work accordingly. Here are the scenarios:

Scenario 1

Project Name: SwingProject
Package: MyCodes
Files inside MyCodes: and

I exported MyCodes to file1.jar, ran the eclipse application, import
file1.jar and the BeanInfo file worked.

Scenario 2

Project Name: SwingProject
Packages: MyCodes, MyBeanInfo
File inside MyCodes:
File inside MyBeanInfo:

I exported MyCodes to file1.jar and MyBeanInfo to file2.jar (both file1.jar
and file2.jar are at the root of SwingProject). I added the following lines
to plugin.xml

<extension point="org.eclipse.jem.beaninfo.registrations">

<registration container="CORRECT CONTAINER NAME">

<beaninfo path="file2.jar">

<searchpath package="MyBeanInfo" />




I just did the same thing as what I did in the SWT Custom Widget tutiroal
(and it worked for me there). Again I ran the eclipse application, import
file1.jar but the BeanInfo file did not work.
Previous Topic:Ve disappeared after upgrade
Next Topic:Custom Component
Goto Forum:

Current Time: Sun May 20 23:42:32 GMT 2018

Powered by FUDForum. Page generated in 0.01838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top