diff options
author | Michael Rennie | 2011-02-24 20:01:32 +0000 |
---|---|---|
committer | Michael Rennie | 2011-02-24 20:01:32 +0000 |
commit | 3f6fa599ffb8dc06096130a1ec8c28b9212b2263 (patch) | |
tree | 81416c627109b96ef810bfe5db04526bfa1b3781 | |
parent | 730c48d84ec3ea5f7c153bfd4e930a9e6bfbfafe (diff) | |
download | eclipse.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
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; + } } |