| // ***************************************************************************** |
| // 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 |
| // |
| // SPDX-License-Identifier: EPL-1.0 |
| // ***************************************************************************** |
| @GenModel(prefix="ApogyCoreUI", |
| 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 |
| |
| SPDX-License-Identifier: EPL-1.0 |
| *******************************************************************************", |
| modelName="ApogyCoreUI") |
| @GenModel(dynamicTemplates="true", templateDirectory="platform:/plugin/org.eclipse.apogy.common.emf.codegen/templates") |
| @GenModel(modelDirectory="/org.eclipse.apogy.core.ui/src-gen") |
| @GenModel(editDirectory="/org.eclipse.apogy.core.ui.edit/src-gen") |
| |
| package org.eclipse.apogy.core.ui |
| |
| import org.eclipse.apogy.common.emf.ui.EClassSettings |
| import org.eclipse.apogy.common.emf.ui.NamedDescribedWizardPagesProvider |
| import org.eclipse.apogy.common.topology.ui.TransformNodePresentation |
| import org.eclipse.apogy.core.FeatureOfInterest |
| import org.eclipse.apogy.core.FeatureOfInterestNode |
| import org.eclipse.core.resources.IContainer |
| import org.eclipse.core.resources.IFile |
| import org.eclipse.core.resources.IFolder |
| import org.eclipse.core.resources.IProject |
| import org.eclipse.jface.resource.ImageDescriptor |
| import org.eclipse.jface.viewers.ISelection |
| import org.eclipse.apogy.common.Apogy |
| |
| type List wraps java.util.List<?> |
| type IProject wraps IProject |
| type IContainer wraps IContainer |
| type IFile wraps IFile |
| type IFolder wraps IFolder |
| type ImageDescriptor wraps ImageDescriptor |
| type ISelection wraps ISelection |
| |
| @Apogy(isSingleton="true", hasCustomClass="true") |
| class ApogyCoreUIFacade |
| { |
| /* |
| * Returns the FeatureOfInterestNode associated with a specified FeatureOfInterest. |
| * @param featureOfInterest The specified FeatureOfInterest. |
| * @return The FeatureOfInterestNode associated with the specified FeatureOfInterest, null is none is found. |
| */ |
| op FeatureOfInterestNode getFeatureOfInterestNode(FeatureOfInterest featureOfInterest) |
| } |
| |
| @Apogy(hasCustomClass="true") |
| class ResultNodePresentation extends TransformNodePresentation |
| { |
| @GenModel(propertyCategory="Flag Visuals") |
| float poleHeight = "1.0f" |
| |
| @GenModel(propertyCategory="Flag Visuals") |
| boolean flagVisible = "true" |
| } |
| |
| // Wizards Support |
| |
| /** |
| * Specialization of EClassSettings for FeatureOfInterest creation. |
| */ |
| class FeatureOfInterestUISettings extends EClassSettings |
| { |
| String name |
| } |
| |
| /** |
| * Wizard support for creating FeatureOfInterest. |
| */ |
| @Apogy(hasCustomClass="true") |
| class FeatureOfInterestWizardPagesProvider extends NamedDescribedWizardPagesProvider |
| { |
| } |
| |
| /** |
| * Wizard support for creating ConnectionPoint. |
| */ |
| @Apogy(hasCustomClass="true") |
| class ConnectionPointWizardPagesProvider extends NamedDescribedWizardPagesProvider |
| { |
| } |
| |
| /** |
| * Wizard support for creating AssemblyLink. |
| */ |
| @Apogy(hasCustomClass="true") |
| class AssemblyLinkWizardPagesProvider extends NamedDescribedWizardPagesProvider |
| { |
| } |