Added the PHP wizards again
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / view / SQLLogView.java
index 66552d9..a5f57cf 100644 (file)
@@ -1,7 +1,5 @@
 package net.sourceforge.phpdt.sql.view;
 
-import net.sourceforge.phpdt.sql.PHPEclipseSQLPlugin;
-
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IToolBarManager;
 import org.eclipse.swt.SWT;
@@ -16,6 +14,9 @@ import org.eclipse.ui.IActionBars;
 import org.eclipse.ui.IWorkbenchActionConstants;
 import org.eclipse.ui.part.ViewPart;
 
+import net.sourceforge.phpdt.sql.Messages;
+import net.sourceforge.phpdt.sql.PHPEclipseSQLPlugin;
+
 public class SQLLogView extends ViewPart implements LogConstants {
        private Color QUERY_COLOR;
        private Color WARNING_COLOR;
@@ -24,7 +25,7 @@ public class SQLLogView extends ViewPart implements LogConstants {
        private Color RESULTS_COLOR;
        private StyledText widget;
        private static SQLLogView instance = null;
-       private static final String newLine = "\n";
+       private static final String newLine = "\n"; //$NON-NLS-1$
        public static SQLLogView getInstance() {
                return instance;
        }
@@ -42,8 +43,8 @@ public class SQLLogView extends ViewPart implements LogConstants {
                bars.setGlobalActionHandler(IWorkbenchActionConstants.SELECT_ALL, selectAllAction);
 
                IToolBarManager toolBar = getViewSite().getActionBars().getToolBarManager();
-               clearAction.setImageDescriptor(PHPEclipseSQLPlugin.getImageDescriptor("clear.gif"));
-               clearAction.setToolTipText("Clear Log");
+               clearAction.setImageDescriptor(PHPEclipseSQLPlugin.getImageDescriptor("clear.gif")); //$NON-NLS-1$
+               clearAction.setToolTipText(Messages.getString("SQLLogView.ClearLog")); //$NON-NLS-1$
                toolBar.add(clearAction);
 
                widget.setEditable(false);
@@ -102,7 +103,7 @@ public class SQLLogView extends ViewPart implements LogConstants {
        };
        private Action clearAction = new Action() {
                public void run() {
-                       widget.setText("");
+                       widget.setText(""); //$NON-NLS-1$
                }
        };
 }