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 Edward
Messages: 11
Registered: July 2009
Junior Member
I went through the SWT Custom Widget tutorial on
http://www.eclipse.org/articles/Article-VE-Custom-Widget/cus 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: abc.java and abcBeanInfo.java

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: abc.java
File inside MyBeanInfo: abcBeanInfo.java

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" />

</beaninfo>

</registration>

</extension>


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: Mon Sep 15 09:29:54 GMT 2014

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

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