blob: 41d7ef21323c071961037dafd35a18de799b8170 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Sonatype, Inc.
* 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
*******************************************************************************/
package org.eclipse.m2e.wtp.internal;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.model.WorkbenchLabelProvider;
import org.eclipse.ui.navigator.ICommonContentExtensionSite;
import org.eclipse.ui.navigator.ICommonLabelProvider;
/**
* WTPResourcesLabelProvider
*
* @author Eugene Kuleshov
*/
public class WTPResourcesLabelProvider extends WorkbenchLabelProvider implements ICommonLabelProvider {
@Override
public void init(ICommonContentExtensionSite config) {
}
@Override
public void restoreState(IMemento memento) {
}
@Override
public void saveState(IMemento memento) {
}
@Override
public String getDescription(Object element) {
if(element instanceof WTPResourcesNode) {
return ((WTPResourcesNode)element).getLabel();
}
return null;
}
}