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;
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;
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;
}
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);
};
private Action clearAction = new Action() {
public void run() {
- widget.setText("");
+ widget.setText(""); //$NON-NLS-1$
}
};
}