KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > markers > internal > FieldDummy


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.views.markers.internal;
12
13
14 import org.eclipse.swt.graphics.Image;
15
16 /**
17  * FieldDummy is a dummy field used to eat up the column of the tree
18  * which has layout issues,
19  * @since 3.2
20  *
21  */

22 public class FieldDummy extends AbstractField implements IField {
23
24     /* (non-Javadoc)
25      * @see org.eclipse.ui.views.markers.internal.IField#getDescription()
26      */

27     public String JavaDoc getDescription() {
28         return Util.EMPTY_STRING;
29     }
30
31     /* (non-Javadoc)
32      * @see org.eclipse.ui.views.markers.internal.IField#getDescriptionImage()
33      */

34     public Image getDescriptionImage() {
35         return null;
36     }
37
38     /* (non-Javadoc)
39      * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderText()
40      */

41     public String JavaDoc getColumnHeaderText() {
42         return Util.EMPTY_STRING;
43     }
44
45     /* (non-Javadoc)
46      * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage()
47      */

48     public Image getColumnHeaderImage() {
49         return null;
50     }
51
52     /* (non-Javadoc)
53      * @see org.eclipse.ui.views.markers.internal.IField#getValue(java.lang.Object)
54      */

55     public String JavaDoc getValue(Object JavaDoc obj) {
56         return Util.EMPTY_STRING;
57     }
58
59     /* (non-Javadoc)
60      * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object)
61      */

62     public Image getImage(Object JavaDoc obj) {
63         return null;
64     }
65
66     /* (non-Javadoc)
67      * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object, java.lang.Object)
68      */

69     public int compare(Object JavaDoc obj1, Object JavaDoc obj2) {
70         return 0;
71     }
72
73     /* (non-Javadoc)
74      * @see org.eclipse.ui.views.markers.internal.IField#getDefaultDirection()
75      */

76     public int getDefaultDirection() {
77         return TableComparator.ASCENDING;
78     }
79
80     /* (non-Javadoc)
81      * @see org.eclipse.ui.views.markers.internal.IField#getPreferredWidth()
82      */

83     public int getPreferredWidth() {
84         return 0;
85     }
86
87 }
88
Popular Tags