/*******************************************************************************
* Copyright (c) 2016 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.eef.properties.ui.api;
/**
* Wrapper for contributors who want to use this version of the framework but can not have a hard dependency (via
* inheritance) towards IEEFTabbedPropertySheetPageContributor.
*
* @author pcdavid
*/
public abstract class AbstractEEFTabbedPropertySheetPageContributorWrapper implements IEEFTabbedPropertySheetPageContributor {
/**
* The original contributor object.
*/
protected final Object realContributor;
/**
* The contributor id.
*/
protected final String contributorId;
/**
* Creates a wrapper.
*
* @param realContributor
* the original contributor object.
* @param contributorId
* the contributor id.
*/
public AbstractEEFTabbedPropertySheetPageContributorWrapper(Object realContributor, String contributorId) {
this.realContributor = realContributor;
this.contributorId = contributorId;
}
@Override
public String getContributorId() {
return contributorId;
}
/**
* Return the original (wrapped) Contributor.
*
* @return the original (wrapped) Contributor.
*/
public Object getRealContributor() {
return this.realContributor;
}
}