g-Eclipse
Release 1.0.0

eu.geclipse.ui.providers
Class FileStoreLabelProvider

java.lang.Object
  extended by LabelProvider
      extended by eu.geclipse.ui.providers.FileStoreLabelProvider
Direct Known Subclasses:
NewGridModelLabelProvider

public class FileStoreLabelProvider
extends LabelProvider

Label provider for tables that handles IFileStores. The columns are configurable.


Field Summary
static java.lang.String COLUMN_TYPE_MOD_DATE
          Type field for the modification date column.
static java.lang.String COLUMN_TYPE_NAME
          Type field for the name column.
static java.lang.String COLUMN_TYPE_SIZE
          Type field for the size column.
 
Constructor Summary
FileStoreLabelProvider()
          Create a new ConnectionViewLabelProvider
 
Method Summary
 void addColumn(int index, java.lang.String type)
          Add a new column of the specified type to this provider.
 Image getColumnImage(java.lang.Object element, int columnIndex)
           
 java.lang.String getColumnText(java.lang.Object element, int columnIndex)
           
 Image getImage(java.lang.Object element)
           
 java.lang.String getText(java.lang.Object element)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_TYPE_NAME

public static final java.lang.String COLUMN_TYPE_NAME
Type field for the name column.

See Also:
Constant Field Values

COLUMN_TYPE_SIZE

public static final java.lang.String COLUMN_TYPE_SIZE
Type field for the size column.

See Also:
Constant Field Values

COLUMN_TYPE_MOD_DATE

public static final java.lang.String COLUMN_TYPE_MOD_DATE
Type field for the modification date column.

See Also:
Constant Field Values
Constructor Detail

FileStoreLabelProvider

public FileStoreLabelProvider()
Create a new ConnectionViewLabelProvider

Method Detail

addColumn

public void addColumn(int index,
                      java.lang.String type)
Add a new column of the specified type to this provider. Any former column at the specified index is discarded.

Parameters:
index - The index of the new column.
type - The type of the new column, i.e. one of the COLUMN_TYPE_* fields.

getColumnImage

public Image getColumnImage(java.lang.Object element,
                            int columnIndex)

getColumnText

public java.lang.String getColumnText(java.lang.Object element,
                                      int columnIndex)

getImage

public Image getImage(java.lang.Object element)

getText

public java.lang.String getText(java.lang.Object element)

g-Eclipse
Release 1.0.0