//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// 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
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.authoring.ui.editors;

import org.eclipse.epf.authoring.gef.util.DiagramUIResources;
import org.eclipse.epf.uma.MethodConfiguration;


/**
 * @author Shilpa Toraskar
 * @since 1.0
 */
public class ConfigurationEditorInput extends MethodElementEditorInput {

	// private MethodConfiguration methodConfiguration;
	// private ImageDescriptor imageDescriptor = null;

	public ConfigurationEditorInput(MethodConfiguration config) {
		// methodConfiguration = config;
		super(config);
	}

	public MethodConfiguration getConfiguration() {
		// return methodConfiguration;
		return (MethodConfiguration) super.getMethodElement();
	}

	// /* (non-Javadoc)
	// * @see org.eclipse.ui.IEditorInput#exists()
	// */
	// public boolean exists() {
	// return false;
	// }
	//
	// /* (non-Javadoc)
	// * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
	// */
	// public ImageDescriptor getImageDescriptor() {
	// return imageDescriptor;
	// }
	//
	// /* (non-Javadoc)
	// * @see org.eclipse.ui.IEditorInput#getName()
	// */
	// public String getName() {
	// return methodConfiguration.getName();
	// }
	//
	// /* (non-Javadoc)
	// * @see org.eclipse.ui.IEditorInput#getPersistable()
	// */
	// public IPersistableElement getPersistable() {
	// return null;
	// }

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.IEditorInput#getToolTipText()
	 */
	public String getToolTipText() {
		return DiagramUIResources.ConfigurationEditorInput_configeditor0; //$NON-NLS-1$
	}

	// /* (non-Javadoc)
	// * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
	// */
	// public Object getAdapter(Class adapter) {
	// return null;
	// }
	//
	//    
	// /* (non-Javadoc)
	// * @see java.lang.Object#equals(java.lang.Object)
	// */
	// public boolean equals(Object obj) {
	// if(this == obj) return true;
	// if(obj instanceof ConfigurationEditorInput) {
	// return methodConfiguration ==
	// ((ConfigurationEditorInput)obj).getConfiguration();
	// }
	// return false;
	// }
}
