| // ***************************************************************************** |
| // Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency |
| // 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: |
| // Pierre Allard - initial API and implementation |
| // Regent L'Archeveque |
| // Olivier L. Larouche |
| // |
| // SPDX-License-Identifier: EPL-1.0 |
| // ***************************************************************************** |
| |
| @GenModel(prefix="ApogyCommonResources", |
| copyrightText="******************************************************************************* |
| Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency |
| 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: |
| Pierre Allard - initial API and implementation |
| Regent L'Archeveque, |
| Olivier L. Larouche |
| |
| SPDX-License-Identifier: EPL-1.0 |
| *******************************************************************************", |
| childCreationExtenders="true", |
| modelName="ApogyCommonResources") |
| @GenModel(dynamicTemplates="true", templateDirectory="platform:/plugin/org.eclipse.apogy.common.emf.codegen/templates") |
| @GenModel(modelDirectory="/org.eclipse.apogy.common.resources/src-gen") |
| |
| package org.eclipse.apogy.common.resources |
| |
| import org.osgi.framework.Bundle |
| import org.eclipse.core.resources.IProject |
| import org.eclipse.apogy.common.Apogy |
| |
| type Bundle wraps Bundle |
| type IProject wraps IProject |
| type Exception wraps Exception |
| |
| /** |
| * This provides tools to process and manage Eclipse resources (e.g. Workspace). |
| */ |
| @Apogy(isSingleton="true", hasCustomClass="true") |
| class ApogyCommonResourcesFacade |
| { |
| /** |
| * Imports the content of a bundle into the workspace. |
| * @param destinationProject Reference to the project where the content will be imported. |
| * @param bundle Refers the bundle that contains the content to be imported. |
| * @param sourceFolder Refers the bundle folder to import. |
| * @param recursive True means the content will be imported recursively. |
| * @throws Exception Refers the exception if any occurred. |
| */ |
| op void importContent(IProject destinationProject, Bundle bundle, String sourceFolder, boolean recursive) throws Exception |
| } |