01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.views.markers.internal;
11:
12: import org.eclipse.swt.graphics.Image;
13:
14: /**
15: * FieldDummy is a dummy field used to eat up the column of the tree
16: * which has layout issues,
17: * @since 3.2
18: *
19: */
20: public class FieldDummy extends AbstractField implements IField {
21:
22: /* (non-Javadoc)
23: * @see org.eclipse.ui.views.markers.internal.IField#getDescription()
24: */
25: public String getDescription() {
26: return Util.EMPTY_STRING;
27: }
28:
29: /* (non-Javadoc)
30: * @see org.eclipse.ui.views.markers.internal.IField#getDescriptionImage()
31: */
32: public Image getDescriptionImage() {
33: return null;
34: }
35:
36: /* (non-Javadoc)
37: * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText()
38: */
39: public String getColumnHeaderText() {
40: return Util.EMPTY_STRING;
41: }
42:
43: /* (non-Javadoc)
44: * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage()
45: */
46: public Image getColumnHeaderImage() {
47: return null;
48: }
49:
50: /* (non-Javadoc)
51: * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object)
52: */
53: public String getValue(Object obj) {
54: return Util.EMPTY_STRING;
55: }
56:
57: /* (non-Javadoc)
58: * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object)
59: */
60: public Image getImage(Object obj) {
61: return null;
62: }
63:
64: /* (non-Javadoc)
65: * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, java.lang.Object)
66: */
67: public int compare(Object obj1, Object obj2) {
68: return 0;
69: }
70:
71: /* (non-Javadoc)
72: * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection()
73: */
74: public int getDefaultDirection() {
75: return TableComparator.ASCENDING;
76: }
77:
78: /* (non-Javadoc)
79: * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth()
80: */
81: public int getPreferredWidth() {
82: return 0;
83: }
84:
85: }
|