Thread: [Ejtools-cvs] CVS: libraries/adwt/src/main/net/sourceforge/ejtools/awt/action Command.java,1.1,1.2 C
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-04-30 21:06:55
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action In directory usw-pr-cvs1:/tmp/cvs-serv3337/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action Modified Files: Command.java CommandAction.java Log Message: Pretty print source code Index: Command.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/Command.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Command.java 18 Apr 2002 21:09:44 -0000 1.1 --- Command.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 10,19 **** * Interface needed to implement to Command Pattern. * ! * @author laurent * @created 29 décembre 2001 */ public interface Command { ! /** Method to implement with the action. */ public void execute(); } --- 10,20 ---- * Interface needed to implement to Command Pattern. * ! * @author letiemble * @created 29 décembre 2001 + * @version $Revision$ */ public interface Command { ! /** Method to implement executed by the action. */ public void execute(); } Index: CommandAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/CommandAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CommandAction.java 18 Apr 2002 21:09:44 -0000 1.1 --- CommandAction.java 30 Apr 2002 21:06:52 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import java.beans.beancontext.BeanContextServices; import java.util.ResourceBundle; + import javax.swing.AbstractAction; import javax.swing.Action; *************** *** 29,39 **** * Description of the Class * ! * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete */ public class CommandAction extends BeanContextChildSupport implements Action { ! private static Category cat = Category.getInstance(CommandAction.class.getName()); /** Description of the Field */ protected boolean inToolBar = false; --- 30,42 ---- * Description of the Class * ! * @author letiemble * @created 2 novembre 2001 + * @version $Revision$ * @todo Javadoc to complete */ public class CommandAction extends BeanContextChildSupport implements Action { ! /** Description of the Field */ ! private static Category logger = Category.getInstance(CommandAction.class); /** Description of the Field */ protected boolean inToolBar = false; *************** *** 254,257 **** --- 257,262 ---- if (this.menuitem == null) { + logger.debug("Building MenuItem"); + this.menuitem = new JMenuItem(this); *************** *** 396,400 **** if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! cat.debug("Using service MenuBarService..."); try { --- 401,405 ---- if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! logger.debug("Using service MenuBarService"); try { *************** *** 404,408 **** catch (Exception e) { ! cat.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 409,413 ---- catch (Exception e) { ! logger.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } *************** *** 412,416 **** if ((context.hasService(ToolBarService.class)) && this.inToolBar) { ! cat.debug("Using service ToolBarService..."); try { --- 417,421 ---- if ((context.hasService(ToolBarService.class)) && this.inToolBar) { ! logger.debug("Using service ToolBarService"); try { *************** *** 420,424 **** catch (Exception e) { ! cat.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 425,429 ---- catch (Exception e) { ! logger.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } *************** *** 437,441 **** if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! cat.debug("Using service MenuBarService..."); try { --- 442,446 ---- if ((context.hasService(MenuBarService.class)) && (this.menu != null) && (!"".equals(this.menu))) { ! logger.debug("Using service MenuBarService"); try { *************** *** 445,449 **** catch (Exception e) { ! cat.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 450,454 ---- catch (Exception e) { ! logger.error("Error during utilisation of service MenuBarService (" + e.getMessage() + ")"); e.printStackTrace(); } *************** *** 453,457 **** if ((context.hasService(ToolBarService.class)) && inToolBar) { ! cat.debug("Using service ToolBarService..."); try { --- 458,462 ---- if ((context.hasService(ToolBarService.class)) && inToolBar) { ! logger.debug("Using service ToolBarService"); try { *************** *** 461,465 **** catch (Exception e) { ! cat.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } --- 466,470 ---- catch (Exception e) { ! logger.error("Error during utilisation of service ToolBarService (" + e.getMessage() + ")"); e.printStackTrace(); } |