 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rich Wagner Guest
|
Posted: Mon Sep 08, 2003 1:58 am Post subject: Designer refresh question |
|
|
I'm wondering if there's a better solution to a problem I'm having where
JBuilder's Designer doesn't immediately notice changes to properties in
JavaBean instances it's managing. Here's an example:
(1) I have one project, A.jpx, with code for a JavaBean (in "MyThing.java"
and "MyThingBeanInfo.java"). I do not use JBuilder to build the JAR for
this bean: I was Ant. The name of the built JAR is "A.jar".
(2) In a second project, B.jpx, I have the Designer open for some code that
uses a few instances of "MyThing". Everything's fine so far...
(3) I switch to "A.jpx" and add a property called "Model" to "MyThing"
(making the correct changes to "MyThing.java" and "MyThingBeanInfo.java" as
needed). I use Ant to rebuild "A.jar".
(4) I switch to B.jpx and select a "MyThing" instance within the Designer,
but the properties palette does not show the new "Model" property. Bummer.
I tried various ways to refresh the Designer, and so far the best answer
I've come up with is: Do a full rebuild of "B.jpx", exit and restart
JBuilder. It also seemed to work if I removed the "package cache" files
from the classes directory of B.jpx, but again I have to restart JBuilder.
Is there a way to get that new "Model" property to show up in the Designer
WITHOUT having to restart JBuilder ???
Thanks in advance,
Rich Wagner
P.S. This is using Personal v9 on (alas) Windows 98.
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Mon Sep 08, 2003 3:59 am Post subject: Re: Designer refresh question |
|
|
Rich Wagner wrote:
| Quote: | I'm wondering if there's a better solution to a problem I'm having where
JBuilder's Designer doesn't immediately notice changes to properties in
JavaBean instances it's managing. Here's an example:
(1) I have one project, A.jpx, with code for a JavaBean (in "MyThing.java"
and "MyThingBeanInfo.java"). I do not use JBuilder to build the JAR for
this bean: I was Ant. The name of the built JAR is "A.jar".
(2) In a second project, B.jpx, I have the Designer open for some code that
uses a few instances of "MyThing". Everything's fine so far...
(3) I switch to "A.jpx" and add a property called "Model" to "MyThing"
(making the correct changes to "MyThing.java" and "MyThingBeanInfo.java" as
needed). I use Ant to rebuild "A.jar".
(4) I switch to B.jpx and select a "MyThing" instance within the Designer,
but the properties palette does not show the new "Model" property. Bummer.
I tried various ways to refresh the Designer, and so far the best answer
I've come up with is: Do a full rebuild of "B.jpx", exit and restart
JBuilder. It also seemed to work if I removed the "package cache" files
from the classes directory of B.jpx, but again I have to restart JBuilder.
Is there a way to get that new "Model" property to show up in the Designer
WITHOUT having to restart JBuilder ???
Thanks in advance,
Rich Wagner
P.S. This is using Personal v9 on (alas) Windows 98.
|
Well, this is an old problem, rearing it's head in a new way. Once
JBuilder opens up a jar file as a library, it's open and fixed until you
restart JBuilder. It is an annoying problem, when you have a couple of
interdependent projects.
I suspect if you (for the time being, while "MyThing" is still in flux)
give up the use of the jar file in B.jpx, and just point it at the path
in which the "MyThing" *classes* reside, you can work around this problem.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|