NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Steven Yi Posted via mailing list.
|
Posted: Tue Sep 15, 2009 8:12 pm Post subject: Module Not Loading (6.7.1) |
|
|
Hi All,
I have a module that has no dependencies on other modules and which no
modules depend on. It is a Look and Feel module with a custom
LookAndFeel for my project. When working with 6.5 my module loaded
fine and is registered in the main module suite. When I upgraded to
6.7 it seemed to work as well, but recently it stopped loading, I
think when I upgraded to 6.7.1. It also didn't start happening until
I did a Clean of my project, erasing the testuserdir.
It does not show up in the loaded modules list in the log and logging
statements from my PLAF module do not show. Changing module to
Autoload or Eager did not change things.
To get around the issue, I put a dependency on the PLAF module from my
main UI module and that seemed to get it loading, but seems a bit
hackish.
Is this a known issue, or something that changed that I missed?
Thanks!
steven |
|
| Back to top |
|
 |
Tim Boudreau Posted via mailing list.
|
Posted: Thu Sep 17, 2009 3:18 am Post subject: Module Not Loading (6.7.1) |
|
|
Steven Yi wrote:
| Quote: |
I have a module that has no dependencies on other modules and which no
modules depend on. It is a Look and Feel module with a custom
LookAndFeel for my project. When working with 6.5 my module loaded
fine and is registered in the main module suite. When I upgraded to
6.7 it seemed to work as well, but recently it stopped loading, I
think when I upgraded to 6.7.1. It also didn't start happening until
I did a Clean of my project, erasing the testuserdir.
It does not show up in the loaded modules list in the log and logging
statements from my PLAF module do not show. Changing module to
Autoload or Eager did not change things.
To get around the issue, I put a dependency on the PLAF module from my
main UI module and that seemed to get it loading, but seems a bit
hackish.
Is this a known issue, or something that changed that I missed?
|
The dependency on core.swing.plaf is correct. If you're going to set the
look and feel, you want your module to be loaded after that one, since it
also sets the look and feel, to the platform default. Or, just disable
core.swing.plaf in your application, so it doesn't get in the way (although
this may break some things, since it sets a lot of UIManager key/value pairs
used by custom components, etc.).
-Tim
--
View this message in context: http://www.nabble.com/Module-Not-Loading-%286.7.1%29-tp25460983p25484508.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Tim Boudreau Posted via mailing list.
|
Posted: Thu Sep 17, 2009 4:11 pm Post subject: Module Not Loading (6.7.1) |
|
|
Steven Yi wrote:
| Quote: |
Hi Tim,
I think we might be talking two different things, as I am talking
about my own custon plaf module, not the netbeans one. I added the
dependency from my main application module to my plaf module to get
the plaf module to load in 6.7.1, but did not need this before. It's
working for now but still not sure what changed that I would need this
for the module to even load, even though it is listed in my module
suite.
|
Possibly we are. The answer to the question would be to put some logging in
your ModuleInstall that sets the look and feel. If it's running, but you're
not seeing your look and feel, than something else is changing the look and
feel after your code runs, in which case the most likely culprit is
core.swing.plaf. Dependencies affect module load order, so changing
dependencies could change when your ModuleInstall for your plaf runs.
I don't see why your application module should need to depend on your plaf
module, unless you have your plaf module set to be autoload, so it isn't
being loaded unless something depends on it.
-Tim
--
View this message in context: http://www.nabble.com/Module-Not-Loading-%286.7.1%29-tp25460983p25491977.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Steven Yi Posted via mailing list.
|
Posted: Thu Sep 17, 2009 6:08 pm Post subject: Module Not Loading (6.7.1) |
|
|
Hi Tim,
As mentioned in my original post:
"It does not show up in the loaded modules list in the log and logging
statements from my PLAF module do not show. Changing module to
Autoload or Eager did not change things."
So there was no logger statements showing up, and I tried Regular,
Autoload, and Eager already without difference.
However, I just undid my dependency changes to retest and things are
working now with Regular and Eager(!!!). I just don't get it.
Anyways, I'm going to keep the dependency on my PLAF module from my
application module to ensure it gets loaded.
Note: It did occur on two different computers, both running Windows XP
with Netbeans 6.7.1.
Thanks!
steven
On Thu, Sep 17, 2009 at 12:11 PM, Tim Boudreau <address-removed> wrote:
| Quote: |
Steven Yi wrote:
| Quote: |
Hi Tim,
I think we might be talking two different things, as I am talking
about my own custon plaf module, not the netbeans one. I added the
dependency from my main application module to my plaf module to get
the plaf module to load in 6.7.1, but did not need this before. It's
working for now but still not sure what changed that I would need this
for the module to even load, even though it is listed in my module
suite.
|
Possibly we are. |
|
| 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 You can attach files in this forum You can download files in this forum
|
|
|