com.amazonaws.eclipse.datatools.enablement.simpledb.ui.editor.AbstractTableLabelProvider.java Source code

Java tutorial

Introduction

Here is the source code for com.amazonaws.eclipse.datatools.enablement.simpledb.ui.editor.AbstractTableLabelProvider.java

Source

/*
 * Copyright 2011 Amazon Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *    http://aws.amazon.com/apache2.0
 *
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
 * OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and
 * limitations under the License.
 */
package com.amazonaws.eclipse.datatools.enablement.simpledb.ui.editor;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

/**
 * No-op adapter class for table label providers.
 */
public abstract class AbstractTableLabelProvider implements ITableLabelProvider {

    public void addListener(final ILabelProviderListener listener) {
    }

    public void dispose() {
    }

    public boolean isLabelProperty(final Object element, final String property) {
        return true;
    }

    public void removeListener(final ILabelProviderListener listener) {
    }

    public Image getColumnImage(final Object element, final int columnIndex) {
        return null;
    }

    public String getColumnText(final Object element, final int columnIndex) {
        return null;
    }

}