]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.message.ui/src/org/simantics/message/ui/LogView.java
Workaround to fix performance problems when opening log view
[simantics/platform.git] / bundles / org.simantics.message.ui / src / org / simantics / message / ui / LogView.java
index ab0940960c2ba6a26073838c7ed22975d0d94984..b71cb3cded05f7de514060b789014186e9bb71d7 100644 (file)
@@ -1,14 +1,14 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
 package org.simantics.message.ui;
 
 import java.io.BufferedReader;
@@ -149,7 +149,7 @@ import com.ibm.icu.text.SimpleDateFormat;
  * @author Tuukka Lehtonen
  * @see org.eclipse.ui.internal.views.LogView
  */
-@SuppressWarnings("deprecation")\r
+@SuppressWarnings("deprecation")
 public class LogView extends ViewPart implements ILogListener {
 
     public static final int      DEFAULT_EXPAND_LEVEL = 1;
@@ -209,7 +209,7 @@ public class LogView extends ViewPart implements ILogListener {
        private boolean              fFirstEvent         = true;
 
        private TreeColumn           fColumn1;
-    @SuppressWarnings("unused")\r
+    @SuppressWarnings("unused")
     private TreeColumn           fColumn2;
     private TreeColumn           fColumn3;
 
@@ -594,7 +594,7 @@ public class LogView extends ViewPart implements ILogListener {
                return action;
        }
 
-    @SuppressWarnings("unused")\r
+    @SuppressWarnings("unused")
     private Action createTestAction() {
         Action action = new Action("Test") {
             public void run() {
@@ -803,8 +803,8 @@ public class LogView extends ViewPart implements ILogListener {
                });
                fFilteredTree.setInitialText(Messages.LogView_show_filter_initialText);
                fTree = fFilteredTree.getViewer().getTree();
-               fTree.setLinesVisible(true);
                createColumns(fTree);
+               fTree.setLinesVisible(true);
                fFilteredTree.getViewer().setAutoExpandLevel(fMemento.getInteger(P_EXPAND_LEVEL).intValue());
                fFilteredTree.getViewer().setContentProvider(new LogViewContentProvider(this));
                fFilteredTree.getViewer().setLabelProvider(fLabelProvider = new LogViewLabelProvider(this));