Update of /cvsroot/metamorphosis/krysalis-jplugin/src/java/org/krysalis/jplugin/components/holders
In directory sc8-pr-cvs1:/tmp/cvs-serv1880/src/java/org/krysalis/jplugin/components/holders
Modified Files:
SplitPaneHolder.java SingleSheetActivatingHolder.java
Log Message:
Another round of Logging fixes and other small code tweaks.
Index: SplitPaneHolder.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-jplugin/src/java/org/krysalis/jplugin/components/holders/SplitPaneHolder.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SplitPaneHolder.java 29 Sep 2003 14:44:52 -0000 1.3
--- SplitPaneHolder.java 29 Sep 2003 15:46:34 -0000 1.4
***************
*** 25,31 ****
*/
public class SplitPaneHolder extends JSplitPane implements Holder, Composable {
!
! private final org.apache.log4j.Category c = org.apache.log4j.Category.getInstance(this.getClass().toString());
!
private int slotsFull = 0;
--- 25,29 ----
*/
public class SplitPaneHolder extends JSplitPane implements Holder, Composable {
!
private int slotsFull = 0;
***************
*** 60,64 ****
public void addComponent(Component child) {
if (slotsFull > 1) {
! Logging.warn(c,"Tried to add a third Component when two is max - ignored.");
return;
//silently
--- 58,63 ----
public void addComponent(Component child) {
if (slotsFull > 1) {
! //TODO
! //"Tried to add a third Component when two is max - ignored.");
return;
//silently
Index: SingleSheetActivatingHolder.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-jplugin/src/java/org/krysalis/jplugin/components/holders/SingleSheetActivatingHolder.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SingleSheetActivatingHolder.java 29 Sep 2003 14:51:38 -0000 1.5
--- SingleSheetActivatingHolder.java 29 Sep 2003 15:46:34 -0000 1.6
***************
*** 92,96 ****
BorderLayout borderLayout5 = new BorderLayout();
JCheckBox jOpenNewSheetCheckBox = new JCheckBox();
- private final org.apache.log4j.Category c = org.apache.log4j.Category.getInstance(this.getClass().toString());
private java.awt.Component currentAWTComponent = null;
private Object currentComponent = null;
--- 92,95 ----
***************
*** 157,161 ****
public void stateChanged(ChangeEvent e) {
final Object source = e.getSource();
- Logging.debug(c,"stateChanged called with: " + source.getClass());
if (source instanceof StoreEntity) {
urlField.setText(((StoreEntity) source).getURL().toString());
--- 156,159 ----
***************
*** 176,180 ****
Lifecycle.getInstance().laydown(currentComponent);
} catch (Exception ex) {
- Logging.warn(c,"Exception while trying to save currentComponent.", ex);
currentComponent = null;
WindowUtils.warnOnError("Exception while trying to save.", ex);
--- 174,177 ----
***************
*** 215,219 ****
}
} catch (Exception ex) {
- Logging.warn(c,"Exception while trying to view StoreEntity.", ex);
currentComponent = null;
switcherToolBar.removeAll();
--- 212,215 ----
***************
*** 437,441 ****
UrlEntity urlEntity = new UrlEntity(null, selectedURL, null);
director.fireEvent(new ChangeEvent(urlEntity));
- Logging.debug(c,selectedURL + " fired.");
}
--- 433,436 ----
***************
*** 466,471 ****
Lifecycle.getInstance().laydown(currentComponent);
} catch (Exception ex) {
- Logging.warn(c,"Exception while trying to save currentComponent.",
- ex);
currentComponent = null;
WindowUtils.warnOnError("Exception while trying to save.", ex);
--- 461,464 ----
***************
*** 488,492 ****
}
} catch (Exception ex) {
- Logging.warn(c,"Exception while trying to view StoreEntity.", ex);
currentComponent = null;
switcherToolBar.removeAll();
--- 481,484 ----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.