Placing logger call [message #130378] |
Fri, 25 August 2006 12:35  |
Eclipse User |
|
|
|
I have to place a permanent logger debug call before swingutilities
invokelater paragraph. By doing this, am I violating any java coding
rules, standards, or conventions that would make eclipse and ve not work
right?
|
|
|
|
|
|
|
|
Re: Placing logger call [message #614580 is a reply to message #130378] |
Fri, 25 August 2006 14:48  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
What kind of call is this? Do you mean you are changing SwingUtilities
itself, or just putting this call before your own code that is calling
SwingUtilities?
Richard wrote:
> I have to place a permanent logger debug call before swingutilities
> invokelater paragraph. By doing this, am I violating any java coding
> rules, standards, or conventions that would make eclipse and ve not work
> right?
>
--
Thanks,
Rich Kulp
|
|
|
Re: Placing logger call [message #614581 is a reply to message #130439] |
Fri, 25 August 2006 20:02  |
Eclipse User |
|
|
|
the code is an apache logj4xml logger. if i insert my code before
invokelater paragraph, would it cause any problems with eclipse and ve? in
some other editors, they do not want you to modify their auto generated
code. that is why I asking.
public static void main(String[] args) {
// TODO Auto-generated method stub
logger.debug(""); <--- my code
SwingUtilities.invokeLater(new Runnable() {
public void run() {
RTMonitor application = new RTMonitor();
application.getJFrame().setVisible(true);
}
});
}
|
|
|
|
Re: Placing logger call [message #614583 is a reply to message #130464] |
Mon, 28 August 2006 10:20  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You can insert code just about anywhere. Especially if it is not a
setter of a property. Most such code is ignored.
Richard wrote:
> Is it is safe to insert the logger before invokelater statement?
>
--
Thanks,
Rich Kulp
|
|
|
|
Powered by
FUDForum. Page generated in 0.07940 seconds