blob: e85f387afe550d3d4ce9b0cccb4b63ef395f4f7a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0, which accompanies this distribution
* and is available at https://www.eclipse.org/legal/epl-2.0/.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.jpa.ui;
import org.eclipse.jpt.common.utility.model.value.CollectionValueModel;
import org.eclipse.jpt.jpa.core.JpaProject;
import org.eclipse.jpt.jpa.core.JpaWorkspace;
/**
* Standard adapter for retrieving a model of a workspace's
* {@link JpaProject JPA project}s
* with change notification when the model changes:
* <pre>
* IWorkspace workspace = ResourcesPlugin.getWorkspace();
* JpaProjectsModel jpaProjectsModel = (JpaProjectsModel) workspace.getAdapter(JpaProjectsModel.class);
* </pre>
* @see org.eclipse.jpt.jpa.ui.internal.WorkspaceAdapterFactory
*/
public interface JpaProjectsModel
extends CollectionValueModel<JpaProject>
{
/**
* Return the JPA workspace corresponding to the JPA projects model.
*/
JpaWorkspace getJpaWorkspace();
}