/******************************************************************************* * This file is protected by Copyright. * Please refer to the COPYRIGHT file distributed with this source distribution. * * This file is part of REDHAWK IDE. * * 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 gov.redhawk.ide.dcd.internal.ui.editor.provider; import java.util.ArrayList; import java.util.Collection; import mil.jpeojtrs.sca.dcd.DcdPackage; import mil.jpeojtrs.sca.dcd.provider.DeviceConfigurationItemProvider; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.ecore.EStructuralFeature; /** * The Class ImplementationItemProvider. */ public class DevicesSectionDeviceConfigurationItemProvider extends DeviceConfigurationItemProvider { /** * The Constructor. * * @param adapterFactory the adapter factory * @param page the page */ public DevicesSectionDeviceConfigurationItemProvider(final AdapterFactory adapterFactory) { super(adapterFactory); } /** * {@inheritDoc} */ @Override public Collection< ? extends EStructuralFeature> getChildrenFeatures(final Object object) { if (this.childrenFeatures == null) { this.childrenFeatures = new ArrayList<EStructuralFeature>(); this.childrenFeatures.add(DcdPackage.Literals.DEVICE_CONFIGURATION__PARTITIONING); } return this.childrenFeatures; } }