blob: 752e6a1063b80283cbad752e5ab082a4642b77ed [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2012 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.providers;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.epf.authoring.ui.forms.AssociationFormPage;
import org.eclipse.epf.library.LibraryService;
import org.eclipse.epf.library.configuration.DefaultElementRealizer;
import org.eclipse.epf.library.configuration.ElementRealizer;
import org.eclipse.epf.uma.MethodConfiguration;
import org.eclipse.epf.uma.Task;
/**
* @author Weiping Lu
*/
public class FormPageProviderExtender {
private AssociationFormPage formPage;
public FormPageProviderExtender(AssociationFormPage formPage) {
this.formPage = formPage;
}
public boolean useContentProviderAPIs(int ix) {
return false;
}
public Object[] getElements(Object object, int ix) {
return new Object[0];
}
public AssociationFormPage getFormPage() {
return formPage;
}
public AssociationFormLabelProvider newLabelProvider(AdapterFactory adapterFactory, int ix) {
return new AssociationFormLabelProvider(adapterFactory, this, ix);
}
protected MethodConfiguration getConfig() {
return LibraryService.getInstance().getCurrentMethodConfiguration();
}
protected ElementRealizer newRealizer() {
ElementRealizer realizer = DefaultElementRealizer.newElementRealizer(getConfig());
return realizer;
}
public void dispose() {
}
}