blob: 039209c0056212a8d9601df260eb0e0bf861dad2 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2005 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 API and implementation
****************************************************************************/
package org.eclipse.gmf.tests.runtime.common.ui.services.action.contributionitem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IPropertyListener;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartSite;
/**
* This defines the workbench part that the test contribution item providers
* will contribute to. This is referenced in the plugin.xml.
*
* @author cmahoney
*/
public class MyWorkbenchPart
implements IWorkbenchPart {
public void addPropertyListener(IPropertyListener listener) {
// do nothing
}
public void createPartControl(Composite parent) {
// do nothing
}
public void dispose() {
// do nothing
}
public IWorkbenchPartSite getSite() {
return null;
}
public String getTitle() {
return null;
}
public Image getTitleImage() {
return null;
}
public String getTitleToolTip() {
return null;
}
public void removePropertyListener(IPropertyListener listener) {
// do nothing
}
public void setFocus() {
// do nothing
}
public Object getAdapter(Class adapter) {
return null;
}
}