User: ko5tik Date: 02/10/15 06:25:45 Modified: src/java/xdocletgui/swing/editor CommentaryEditorPanel.java UndoableEditorPanel.java Log: added splash on startup. localized some labels & messages Revision Changes Path 1.12 +18 -4 xdocletgui/src/java/xdocletgui/swing/editor/CommentaryEditorPanel.java Index: CommentaryEditorPanel.java =================================================================== RCS file: /cvsroot/xdoclet/xdocletgui/src/java/xdocletgui/swing/editor/CommentaryEditorPanel.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- CommentaryEditorPanel.java 27 Aug 2002 18:23:09 -0000 1.11 +++ CommentaryEditorPanel.java 15 Oct 2002 13:25:44 -0000 1.12 @@ -21,12 +21,26 @@ * * @author kostik * @created April 7, 2002 + * @version $Id: CommentaryEditorPanel.java,v 1.12 2002/10/15 13:25:44 ko5tik Exp $ + * @msg.bundle */ public class CommentaryEditorPanel extends UndoableEditorPanel { /** + * @msg.message msg="Program element description" + * @msg.message msg="Beschreibung des Programmelements" language="de" + */ + public final static String TITLE = "TITLE"; + + /** + * @msg.message msg="Description for {0}" + * @msg.message msg="Beschreibung für {0}" language="de" + */ + public final static String DESCRIPTION = "DESCRIPTION"; + + /** * Get static reference to Log4J Logger */ private static org.apache.log4j.Category _log = org.apache.log4j.Category.getInstance( CommentaryEditorPanel.class.getName() ); @@ -49,7 +63,7 @@ public CommentaryEditorPanel() { super( new BorderLayout() ); - setBorder( BorderFactory.createTitledBorder( "Program element description" ) ); + setBorder( BorderFactory.createTitledBorder( CommentaryEditorPanelTranslator.getString( TITLE ) ) ); _description = new JLabel(); add( _description, BorderLayout.NORTH ); @@ -86,7 +100,7 @@ { _xdoc = xdoc; revert(); - _description.setText( "Description for " + _xdoc.getOwner().getName() ); + _description.setText( CommentaryEditorPanelTranslator.getString( DESCRIPTION, new Object[]{_xdoc.getOwner().getName()} ) ); } /** 1.5 +34 -4 xdocletgui/src/java/xdocletgui/swing/editor/UndoableEditorPanel.java Index: UndoableEditorPanel.java =================================================================== RCS file: /cvsroot/xdoclet/xdocletgui/src/java/xdocletgui/swing/editor/UndoableEditorPanel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- UndoableEditorPanel.java 27 Aug 2002 18:23:09 -0000 1.4 +++ UndoableEditorPanel.java 15 Oct 2002 13:25:44 -0000 1.5 @@ -17,11 +17,36 @@ * @author kostik * @created April 11, 2002 * @todo-javadoc Write javadocs + * @msg.bundle */ public abstract class UndoableEditorPanel extends JPanel implements DocumentListener, NodeEditor { /** + * @msg.message msg="undo" + * @msg.message msg="Widerrufen" language="de" + */ + public final static String UNDO = "UNDO"; + + /** + * @msg.message msg="redo" + * @msg.message msg="Zurücksetzen" language="de" + */ + public final static String REDO = "REDO"; + + /** + * @msg.message msg="save" + * @msg.message msg="Speichern" language="de" + */ + public final static String SAVE = "SAVE"; + + /** + * @msg.message msg="cancel" + * @msg.message msg="Verwerfen" language="de" + */ + public final static String CANCEL = "CANCEL"; + + /** * undo manager for our text panel */ UndoManager _undo; @@ -49,6 +74,8 @@ */ JButton _redoButton; + /** + */ private boolean _isDirty; /** @@ -69,7 +96,7 @@ _text.getDocument().addDocumentListener( this ); _text.getDocument().addUndoableEditListener( _undo ); - _setButton = new JButton( "save" ); + _setButton = new JButton( UndoableEditorPanelTranslator.getString( SAVE ) ); _setButton.addActionListener( new ActionListener() { @@ -79,7 +106,7 @@ } } ); - _cancelButton = new JButton( "cancel" ); + _cancelButton = new JButton( UndoableEditorPanelTranslator.getString( CANCEL ) ); _cancelButton.addActionListener( new ActionListener() { @@ -89,7 +116,7 @@ } } ); - _undoButton = new JButton( "undo" ); + _undoButton = new JButton( UndoableEditorPanelTranslator.getString( UNDO ) ); _undoButton.addActionListener( new ActionListener() { @@ -102,7 +129,7 @@ } } } ); - _redoButton = new JButton( "redo" ); + _redoButton = new JButton( UndoableEditorPanelTranslator.getString( REDO ) ); _redoButton.addActionListener( new ActionListener() @@ -119,6 +146,9 @@ } + /** + * @return + */ public boolean isDirty() { return _isDirty;
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel