Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-02-24 20:01:32 +0000
committerMichael Rennie2011-02-24 20:01:32 +0000
commit3f6fa599ffb8dc06096130a1ec8c28b9212b2263 (patch)
tree81416c627109b96ef810bfe5db04526bfa1b3781
parent730c48d84ec3ea5f7c153bfd4e930a9e6bfbfafe (diff)
downloadeclipse.platform.debug-3f6fa599ffb8dc06096130a1ec8c28b9212b2263.tar.gz
eclipse.platform.debug-3f6fa599ffb8dc06096130a1ec8c28b9212b2263.tar.xz
eclipse.platform.debug-3f6fa599ffb8dc06096130a1ec8c28b9212b2263.zip
Bug 328297 - need a way to initialize the width of columns, similar to initialzie the columns in IColumnPresentation
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IColumnPresentation2.java5
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java13
2 files changed, 12 insertions, 6 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IColumnPresentation2.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IColumnPresentation2.java
index adc7cf0bb..d7b59f7ea 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IColumnPresentation2.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/provisional/IColumnPresentation2.java
@@ -1,13 +1,12 @@
/*******************************************************************************
- * Copyright (c) 2010, 2011 IBM Corporation and others.
+ * Copyright (c) 2011 Texas Instruments and others.
* 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:
- * IBM Corporation - initial API and implementation
- * Patrick Chuong (Texas Instruments) - Extension to column presentation (Bug 328297)
+ * Texas Instruments - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.model.provisional;
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java
index 1467375d0..ddaf0f54f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/provisional/AbstractColumnPresentation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
+ * Copyright (c) 2006, 2011 IBM Corporation and others.
* 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.provisional;
-import org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation;
+import org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation2;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
import org.eclipse.jface.resource.ImageDescriptor;
@@ -21,7 +21,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
* </p>
* @since 3.2
*/
-public abstract class AbstractColumnPresentation implements IColumnPresentation {
+public abstract class AbstractColumnPresentation implements IColumnPresentation2 {
private IPresentationContext fContext;
@@ -59,4 +59,11 @@ public abstract class AbstractColumnPresentation implements IColumnPresentation
protected IPresentationContext getPresentationContext() {
return fContext;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IColumnPresentation2#getInitialColumnWidth(java.lang.String, int, java.lang.String[])
+ */
+ public int getInitialColumnWidth(String id, int treeWidgetWidth, String[] visibleColumnIds) {
+ return -1;
+ }
}

Back to the top