diff --git a/dart-designer-configuration/dart.design/.classpath b/dart-designer-configuration/dart.design/.classpath new file mode 100644 index 0000000..39810b7 --- /dev/null +++ b/dart-designer-configuration/dart.design/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/dart-designer-configuration/dart.design/.project b/dart-designer-configuration/dart.design/.project new file mode 100644 index 0000000..94da85e --- /dev/null +++ b/dart-designer-configuration/dart.design/.project @@ -0,0 +1,35 @@ + + + dart.design + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.acceleo.ide.ui.acceleoBuilder + + + + + + org.eclipse.acceleo.ide.ui.acceleoNature + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + + diff --git a/dart-designer-configuration/dart.design/META-INF/MANIFEST.MF b/dart-designer-configuration/dart.design/META-INF/MANIFEST.MF new file mode 100644 index 0000000..1a3ccee --- /dev/null +++ b/dart-designer-configuration/dart.design/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: dart.design +Bundle-SymbolicName: dart.design;singleton:=true +Bundle-Version: 1.0.0 +Bundle-Activator: dart.design.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.mtl +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 diff --git a/dart-designer-configuration/dart.design/bin/dart/design/Activator.class b/dart-designer-configuration/dart.design/bin/dart/design/Activator.class new file mode 100644 index 0000000..97b719c Binary files /dev/null and b/dart-designer-configuration/dart.design/bin/dart/design/Activator.class differ diff --git a/dart-designer-configuration/dart.design/build.properties b/dart-designer-configuration/dart.design/build.properties new file mode 100644 index 0000000..bbbc4ce --- /dev/null +++ b/dart-designer-configuration/dart.design/build.properties @@ -0,0 +1,7 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml +customBuildCallbacks = build.acceleo diff --git a/dart-designer-configuration/dart.design/description/dart.odesign b/dart-designer-configuration/dart.design/description/dart.odesign new file mode 100644 index 0000000..87f27ab --- /dev/null +++ b/dart-designer-configuration/dart.design/description/dart.odesign @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dart-designer-configuration/dart.design/plugin.xml b/dart-designer-configuration/dart.design/plugin.xml new file mode 100644 index 0000000..c49c583 --- /dev/null +++ b/dart-designer-configuration/dart.design/plugin.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/dart-designer-configuration/dart.design/src/dart/design/Activator.java b/dart-designer-configuration/dart.design/src/dart/design/Activator.java new file mode 100644 index 0000000..4d39f7b --- /dev/null +++ b/dart-designer-configuration/dart.design/src/dart/design/Activator.java @@ -0,0 +1,66 @@ +package dart.design; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "dart.design"; + + // The shared instance + private static Activator plugin; + + private static Set viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/dart.odesign")); + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint: viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/dart-designer-configuration/dart.sample/.project b/dart-designer-configuration/dart.sample/.project new file mode 100644 index 0000000..4d792e0 --- /dev/null +++ b/dart-designer-configuration/dart.sample/.project @@ -0,0 +1,12 @@ + + + dart.sample + + + + + + + org.eclipse.sirius.nature.modelingproject + + diff --git a/dart-designer-configuration/dart.sample/dart.dartspec b/dart-designer-configuration/dart.sample/dart.dartspec new file mode 100644 index 0000000..37f3800 --- /dev/null +++ b/dart-designer-configuration/dart.sample/dart.dartspec @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/dart-designer-configuration/dart.sample/representations.aird b/dart-designer-configuration/dart.sample/representations.aird new file mode 100644 index 0000000..aaa1fa6 --- /dev/null +++ b/dart-designer-configuration/dart.sample/representations.aird @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart.edit/.classpath b/org.obeonetwork.dsl.dart.edit/.classpath new file mode 100644 index 0000000..6292ea5 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart.edit/.gitignore b/org.obeonetwork.dsl.dart.edit/.gitignore new file mode 100644 index 0000000..5e56e04 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.gitignore @@ -0,0 +1 @@ +/bin diff --git a/org.obeonetwork.dsl.dart.edit/.project b/org.obeonetwork.dsl.dart.edit/.project new file mode 100644 index 0000000..4a585ae --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.project @@ -0,0 +1,28 @@ + + + org.obeonetwork.dsl.dart.edit + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.core.resources.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.core.runtime.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 0000000..5a0ad22 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.core.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..97d2432 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,405 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.cleanOutputFolder=clean +org.eclipse.jdt.core.builder.duplicateResourceTask=warning +org.eclipse.jdt.core.builder.invalidClasspath=abort +org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore +org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch +org.eclipse.jdt.core.circularClasspath=error +org.eclipse.jdt.core.classpath.exclusionPatterns=enabled +org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled +org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.doc.comment.support=enabled +org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=error +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=error +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=enabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=error +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=error +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=error +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=error +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=error +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=1 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=110 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indentation.size=8 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=110 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=false +org.eclipse.jdt.core.incompatibleJDKLevel=ignore +org.eclipse.jdt.core.incompleteClasspath=error diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.launching.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.launching.prefs new file mode 100644 index 0000000..d211d32 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.launching.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.ui.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..73b5091 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,62 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Dart Designer +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=com;java;javax;org;\#org.junit; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=false +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=false +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=true +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=true +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.pde.api.tools.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000..fdcba94 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,97 @@ +ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error +ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error +API_USE_SCAN_FIELD_SEVERITY=Error +API_USE_SCAN_METHOD_SEVERITY=Error +API_USE_SCAN_TYPE_SEVERITY=Error +CLASS_ELEMENT_TYPE_ADDED_METHOD=Error +CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error +CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error +CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error +CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error +ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error +ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error +ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +FIELD_ELEMENT_TYPE_ADDED_VALUE=Error +FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error +FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error +FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error +FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error +ILLEGAL_EXTEND=Warning +ILLEGAL_IMPLEMENT=Warning +ILLEGAL_INSTANTIATE=Warning +ILLEGAL_OVERRIDE=Warning +ILLEGAL_REFERENCE=Warning +INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error +INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error +INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error +INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +INVALID_JAVADOC_TAG=Ignore +INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore +LEAK_EXTEND=Warning +LEAK_FIELD_DECL=Warning +LEAK_IMPLEMENT=Warning +LEAK_METHOD_PARAM=Warning +LEAK_METHOD_RETURN_TYPE=Warning +METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error +METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +MISSING_EE_DESCRIPTIONS=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error +UNUSED_PROBLEM_FILTERS=Warning +automatically_removed_unused_problem_filters=false +eclipse.preferences.version=1 +incompatible_api_component_version=Error +incompatible_api_component_version_include_major_without_breaking_change=Disabled +incompatible_api_component_version_include_minor_without_api_change=Disabled +invalid_since_tag_version=Error +malformed_since_tag=Error +missing_since_tag=Error +report_api_breakage_when_major_version_incremented=Disabled +report_resolution_errors_api_component=Warning diff --git a/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.pde.prefs b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000..0abdfbe --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/.settings/org.eclipse.pde.prefs @@ -0,0 +1,32 @@ +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.build.bin.includes=1 +compilers.p.build.encodings=2 +compilers.p.build.java.compiler=1 +compilers.p.build.java.compliance=1 +compilers.p.build.missing.output=2 +compilers.p.build.output.library=1 +compilers.p.build.source.library=1 +compilers.p.build.src.includes=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=2 +compilers.p.missing-version-import-package=2 +compilers.p.missing-version-require-bundle=2 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=1 +compilers.p.unknown-attribute=1 +compilers.p.unknown-class=1 +compilers.p.unknown-element=1 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=1 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +eclipse.preferences.version=1 diff --git a/org.obeonetwork.dsl.dart.edit/META-INF/MANIFEST.MF b/org.obeonetwork.dsl.dart.edit/META-INF/MANIFEST.MF new file mode 100644 index 0000000..f1233b7 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.obeonetwork.dsl.dart.edit;singleton:=true +Bundle-Version: 0.4.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.obeonetwork.dsl.dart.edit.internal.provider.DartEditPlugin$Implementation +Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: bundle +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.obeonetwork.dsl.dart.edit.internal.provider;version="0.4.0";x-internal:=true +Require-Bundle: org.eclipse.core.runtime, + org.obeonetwork.dsl.dart;bundle-version="0.4.0";visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/org.obeonetwork.dsl.dart.edit/build.properties b/org.obeonetwork.dsl.dart.edit/build.properties new file mode 100644 index 0000000..bff57fb --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/build.properties @@ -0,0 +1,19 @@ +################################################################################ +## Copyright (c) 2014 Obeo. +## 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: +## Obeo - initial API and implementation +################################################################################ +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + bundle.properties +jars.compile.order = . +source.. = src-gen/ +output.. = bin/ +javacProjectSettings = true diff --git a/org.obeonetwork.dsl.dart.edit/bundle.properties b/org.obeonetwork.dsl.dart.edit/bundle.properties new file mode 100644 index 0000000..427c385 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/bundle.properties @@ -0,0 +1,137 @@ +################################################################################ +## Copyright (c) 2014 Obeo. +## 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: +## Obeo - initial API and implementation +################################################################################ +Bundle-Name=Dart Edit Support +Bundle-Vendor=Obeo Network + +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. + +_UI_PropertyDescriptor_description = The {0} of the {1} + +_UI_Project_type = Project +_UI_Asset_type = Asset +_UI_Container_type = Container +_UI_Folder_type = Folder +_UI_Package_type = Package +_UI_DartResource_type = Resource +_UI_Import_type = Import +_UI_Export_type = Export +_UI_Type_type = Type +_UI_Library_type = Library +_UI_Part_type = Part +_UI_Classifier_type = Classifier +_UI_Metadata_type = Metadata +_UI_Class_type = Class +_UI_Variable_type = Variable +_UI_Constructor_type = Constructor +_UI_Function_type = Function +_UI_Parameter_type = Parameter +_UI_Typedef_type = Typedef +_UI_HTML_type = HTML +_UI_Stylesheet_type = Stylesheet +_UI_Module_type = Module +_UI_AngularType_type = Angular Type +_UI_Controller_type = Controller +_UI_Component_type = Component +_UI_Decorator_type = Decorator +_UI_Formatter_type = Formatter +_UI_Route_type = Route +_UI_Unknown_type = Object + +_UI_Unknown_datatype= Value + +_UI_Project_name_feature = Name +_UI_Project_packages_feature = Packages +_UI_Asset_name_feature = Name +_UI_Asset_container_feature = Container +_UI_Container_assets_feature = Assets +_UI_Package_name_feature = Name +_UI_Package_license_feature = License +_UI_Package_dependencies_feature = Dependencies +_UI_Package_project_feature = Project +_UI_DartResource_documentation_feature = Documentation +_UI_DartResource_imports_feature = Imports +_UI_DartResource_exports_feature = Exports +_UI_Import_dartResource_feature = Dart Resource +_UI_Import_as_feature = As +_UI_Import_show_feature = Show +_UI_Import_hide_feature = Hide +_UI_Import_metadata_feature = Metadata +_UI_Export_dartResource_feature = Dart Resource +_UI_Export_show_feature = Show +_UI_Export_hide_feature = Hide +_UI_Export_metadata_feature = Metadata +_UI_Library_parts_feature = Parts +_UI_Library_typedefs_feature = Typedefs +_UI_Library_metadata_feature = Metadata +_UI_Library_variables_feature = Variables +_UI_Library_functions_feature = Functions +_UI_Part_partOf_feature = Part Of +_UI_Classifier_fields_feature = Fields +_UI_Classifier_metadata_feature = Metadata +_UI_Class_abstract_feature = Abstract +_UI_Class_extends_feature = Extends +_UI_Class_implements_feature = Implements +_UI_Class_mixins_feature = Mixins +_UI_Class_constructors_feature = Constructors +_UI_Class_methods_feature = Methods +_UI_Variable_name_feature = Name +_UI_Variable_documentation_feature = Documentation +_UI_Variable_type_feature = Type +_UI_Variable_static_feature = Static +_UI_Variable_constant_feature = Constant +_UI_Variable_final_feature = Final +_UI_Variable_value_feature = Value +_UI_Variable_metadata_feature = Metadata +_UI_Constructor_constant_feature = Constant +_UI_Constructor_body_feature = Body +_UI_Constructor_metadata_feature = Metadata +_UI_Function_name_feature = Name +_UI_Function_documentation_feature = Documentation +_UI_Function_type_feature = Type +_UI_Function_abstract_feature = Abstract +_UI_Function_static_feature = Static +_UI_Function_body_feature = Body +_UI_Function_parameters_feature = Parameters +_UI_Function_metadata_feature = Metadata +_UI_Parameter_name_feature = Name +_UI_Parameter_value_feature = Value +_UI_Parameter_optional_feature = Optional +_UI_Parameter_type_feature = Type +_UI_Parameter_metadata_feature = Metadata +_UI_Typedef_documentation_feature = Documentation +_UI_Typedef_name_feature = Name +_UI_Typedef_type_feature = Type +_UI_Typedef_parameters_feature = Parameters +_UI_Typedef_metadata_feature = Metadata +_UI_HTML_uses_feature = Uses +_UI_Stylesheet_imports_feature = Imports +_UI_Stylesheet_partial_feature = Partial +_UI_Module_types_feature = Types +_UI_Module_routes_feature = Routes +_UI_Controller_publishAs_feature = Publish As +_UI_Controller_selector_feature = Selector +_UI_Component_publishAs_feature = Publish As +_UI_Component_stylesheet_feature = Stylesheet +_UI_Component_template_feature = Template +_UI_Component_selector_feature = Selector +_UI_Decorator_selector_feature = Selector +_UI_Formatter_formatterName_feature = Formatter Name +_UI_Route_name_feature = Name +_UI_Route_path_feature = Path +_UI_Route_view_feature = View +_UI_Route_extends_feature = Extends +_UI_Unknown_feature = Unspecified + diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClass_constructors_Constructor.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClass_constructors_Constructor.gif new file mode 100644 index 0000000..7cfafa0 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClass_constructors_Constructor.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClass_methods_Function.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClass_methods_Function.gif new file mode 100644 index 0000000..846943b Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClass_methods_Function.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClassifier_fields_Variable.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClassifier_fields_Variable.gif new file mode 100644 index 0000000..8e471a0 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateClassifier_fields_Variable.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Application.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Application.gif new file mode 100644 index 0000000..bd2a29a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Application.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Asset.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Asset.gif new file mode 100644 index 0000000..f73697b Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Asset.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Class.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Class.gif new file mode 100644 index 0000000..71ebb1a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Class.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Component.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Component.gif new file mode 100644 index 0000000..51394a3 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Component.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Controller.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Controller.gif new file mode 100644 index 0000000..135cbb0 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Controller.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Decorator.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Decorator.gif new file mode 100644 index 0000000..8966d11 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Decorator.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Folder.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Folder.gif new file mode 100644 index 0000000..975d734 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Folder.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Formatter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Formatter.gif new file mode 100644 index 0000000..7936184 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Formatter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_HTML.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_HTML.gif new file mode 100644 index 0000000..148227b Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_HTML.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Library.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Library.gif new file mode 100644 index 0000000..d2b4766 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Library.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Metadata.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Metadata.gif new file mode 100644 index 0000000..912c2bf Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Metadata.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Module.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Module.gif new file mode 100644 index 0000000..bd2a29a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Module.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Part.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Part.gif new file mode 100644 index 0000000..e2f4ed3 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Part.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Stylesheet.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Stylesheet.gif new file mode 100644 index 0000000..e47a63a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateContainer_assets_Stylesheet.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateDartResource_exports_Export.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateDartResource_exports_Export.gif new file mode 100644 index 0000000..fb66338 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateDartResource_exports_Export.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateDartResource_imports_Import.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateDartResource_imports_Import.gif new file mode 100644 index 0000000..d553a7a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateDartResource_imports_Import.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateFunction_parameters_Parameter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateFunction_parameters_Parameter.gif new file mode 100644 index 0000000..9abea5d Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateFunction_parameters_Parameter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_functions_Function.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_functions_Function.gif new file mode 100644 index 0000000..af07ba1 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_functions_Function.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_typedefs_Typedef.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_typedefs_Typedef.gif new file mode 100644 index 0000000..64cd1b0 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_typedefs_Typedef.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_variables_Variable.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_variables_Variable.gif new file mode 100644 index 0000000..983575c Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateLibrary_variables_Variable.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateMethod_parameters_Parameter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateMethod_parameters_Parameter.gif new file mode 100644 index 0000000..14d7832 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateMethod_parameters_Parameter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_routes_Route.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_routes_Route.gif new file mode 100644 index 0000000..9f3b2e7 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_routes_Route.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Component.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Component.gif new file mode 100644 index 0000000..3d1deee Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Component.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Controller.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Controller.gif new file mode 100644 index 0000000..c1e8f13 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Controller.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Decorator.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Decorator.gif new file mode 100644 index 0000000..a49d181 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Decorator.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Formatter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Formatter.gif new file mode 100644 index 0000000..93e8b6b Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateModule_types_Formatter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateProject_packages_Package.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateProject_packages_Package.gif new file mode 100644 index 0000000..b822374 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateProject_packages_Package.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateTypedef_parameters_Parameter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateTypedef_parameters_Parameter.gif new file mode 100644 index 0000000..471b87f Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/ctool16/CreateTypedef_parameters_Parameter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Asset.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Asset.gif new file mode 100644 index 0000000..061161a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Asset.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Class.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Class.gif new file mode 100644 index 0000000..e4c2a83 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Class.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Component.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Component.gif new file mode 100644 index 0000000..e4c2a83 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Component.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Constructor.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Constructor.gif new file mode 100644 index 0000000..10d2229 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Constructor.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Controller.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Controller.gif new file mode 100644 index 0000000..e4c2a83 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Controller.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Decorator.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Decorator.gif new file mode 100644 index 0000000..e4c2a83 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Decorator.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Export.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Export.gif new file mode 100644 index 0000000..c3370c7 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Export.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Folder.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Folder.gif new file mode 100644 index 0000000..b1f8afa Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Folder.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Formatter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Formatter.gif new file mode 100644 index 0000000..e4c2a83 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Formatter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Function.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Function.gif new file mode 100644 index 0000000..7d24707 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Function.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/HTML.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/HTML.gif new file mode 100644 index 0000000..061161a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/HTML.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Import.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Import.gif new file mode 100644 index 0000000..98b351f Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Import.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Library.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Library.gif new file mode 100644 index 0000000..131c28d Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Library.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Metadata.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Metadata.gif new file mode 100644 index 0000000..c43c5d5 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Metadata.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Module.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Module.gif new file mode 100644 index 0000000..32bf5fc Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Module.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Package.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Package.gif new file mode 100644 index 0000000..f4a1ea1 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Package.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Parameter.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Parameter.gif new file mode 100644 index 0000000..a3908bc Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Parameter.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Part.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Part.gif new file mode 100644 index 0000000..338fb8d Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Part.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Project.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Project.gif new file mode 100644 index 0000000..7bac4fd Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Project.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Route.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Route.gif new file mode 100644 index 0000000..7b1efa5 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Route.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Stylesheet.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Stylesheet.gif new file mode 100644 index 0000000..061161a Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Stylesheet.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Typedef.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Typedef.gif new file mode 100644 index 0000000..7d24707 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Typedef.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Variable.gif b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Variable.gif new file mode 100644 index 0000000..d4cb425 Binary files /dev/null and b/org.obeonetwork.dsl.dart.edit/icons/full/obj16/Variable.gif differ diff --git a/org.obeonetwork.dsl.dart.edit/plugin.xml b/org.obeonetwork.dsl.dart.edit/plugin.xml new file mode 100644 index 0000000..0f67e60 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/plugin.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart.edit/pom.xml b/org.obeonetwork.dsl.dart.edit/pom.xml new file mode 100644 index 0000000..382e6fb --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/pom.xml @@ -0,0 +1,40 @@ + + + + 4.0.0 + + + org.obeonetwork.dsl.dart + org.obeonetwork.dsl.dart.releng.parent + 0.4.0-SNAPSHOT + ../../releng/org.obeonetwork.dsl.dart.releng/parent + + + org.obeonetwork.dsl.dart.edit + eclipse-plugin + + Dart Designer Model Edit + + + + + org.eclipse.tycho + tycho-source-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + + \ No newline at end of file diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/AssetItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/AssetItemProvider.java new file mode 100644 index 0000000..177bea2 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/AssetItemProvider.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.ResourceLocator; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Asset} object. + * + * @generated + */ +public class AssetItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public AssetItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Asset_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Asset_name_feature", "_UI_Asset_type"), + DartPackage.Literals.ASSET__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Asset.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Asset")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Asset)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Asset_type") + : getString("_UI_Asset_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Asset.class)) { + case DartPackage.ASSET__NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ClassItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ClassItemProvider.java new file mode 100644 index 0000000..94217ce --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ClassItemProvider.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Class} object. + * + * @generated + */ +public class ClassItemProvider extends ClassifierItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ClassItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addAbstractPropertyDescriptor(object); + addExtendsPropertyDescriptor(object); + addImplementsPropertyDescriptor(object); + addMixinsPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Abstract feature. + * + * @generated + */ + protected void addAbstractPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Class_abstract_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Class_abstract_feature", + "_UI_Class_type"), DartPackage.Literals.CLASS__ABSTRACT, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Extends feature. + * + * @generated + */ + protected void addExtendsPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Class_extends_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Class_extends_feature", + "_UI_Class_type"), DartPackage.Literals.CLASS__EXTENDS, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Implements feature. + * + * @generated + */ + protected void addImplementsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Class_implements_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Class_implements_feature", + "_UI_Class_type"), DartPackage.Literals.CLASS__IMPLEMENTS, true, false, true, null, + null, null)); + } + + /** + * This adds a property descriptor for the Mixins feature. + * + * @generated + */ + protected void addMixinsPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Class_mixins_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Class_mixins_feature", + "_UI_Class_type"), DartPackage.Literals.CLASS__MIXINS, true, false, true, + null, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.CLASS__CONSTRUCTORS); + childrenFeatures.add(DartPackage.Literals.CLASS__METHODS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns Class.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Class")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((org.obeonetwork.dsl.dart.Class)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Class_type") + : getString("_UI_Class_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(org.obeonetwork.dsl.dart.Class.class)) { + case DartPackage.CLASS__ABSTRACT: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + case DartPackage.CLASS__CONSTRUCTORS: + case DartPackage.CLASS__METHODS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CLASS__CONSTRUCTORS, + DartFactory.eINSTANCE.createConstructor())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CLASS__METHODS, + DartFactory.eINSTANCE.createFunction())); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ClassifierItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ClassifierItemProvider.java new file mode 100644 index 0000000..bc6a4fe --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ClassifierItemProvider.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.Classifier; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Classifier} object. + * + * @generated + */ +public class ClassifierItemProvider extends PartItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ClassifierItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Classifier_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Classifier_metadata_feature", + "_UI_Classifier_type"), DartPackage.Literals.CLASSIFIER__METADATA, true, false, true, + null, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.CLASSIFIER__FIELDS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Classifier)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Classifier_type") + : getString("_UI_Classifier_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Classifier.class)) { + case DartPackage.CLASSIFIER__FIELDS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CLASSIFIER__FIELDS, + DartFactory.eINSTANCE.createVariable())); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ComponentItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ComponentItemProvider.java new file mode 100644 index 0000000..771cacc --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ComponentItemProvider.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.Component; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Component} object. + * + * @generated + */ +public class ComponentItemProvider extends ClassItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ComponentItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addPublishAsPropertyDescriptor(object); + addStylesheetPropertyDescriptor(object); + addTemplatePropertyDescriptor(object); + addSelectorPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Publish As feature. + * + * @generated + */ + protected void addPublishAsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Component_publishAs_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Component_publishAs_feature", + "_UI_Component_type"), DartPackage.Literals.COMPONENT__PUBLISH_AS, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Stylesheet feature. + * + * @generated + */ + protected void addStylesheetPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Component_stylesheet_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Component_stylesheet_feature", + "_UI_Component_type"), DartPackage.Literals.COMPONENT__STYLESHEET, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Template feature. + * + * @generated + */ + protected void addTemplatePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Component_template_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Component_template_feature", + "_UI_Component_type"), DartPackage.Literals.COMPONENT__TEMPLATE, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Selector feature. + * + * @generated + */ + protected void addSelectorPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Component_selector_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Component_selector_feature", + "_UI_Component_type"), DartPackage.Literals.COMPONENT__SELECTOR, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns Component.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Component")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Component)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Component_type") + : getString("_UI_Component_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Component.class)) { + case DartPackage.COMPONENT__PUBLISH_AS: + case DartPackage.COMPONENT__SELECTOR: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ConstructorItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ConstructorItemProvider.java new file mode 100644 index 0000000..33b6358 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ConstructorItemProvider.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Constructor} object. + * + * @generated + */ +public class ConstructorItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ConstructorItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addConstantPropertyDescriptor(object); + addBodyPropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Constant feature. + * + * @generated + */ + protected void addConstantPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Constructor_constant_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Constructor_constant_feature", + "_UI_Constructor_type"), DartPackage.Literals.CONSTRUCTOR__CONSTANT, true, false, + false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Body feature. + * + * @generated + */ + protected void addBodyPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Constructor_body_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Constructor_body_feature", + "_UI_Constructor_type"), DartPackage.Literals.CONSTRUCTOR__BODY, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Constructor_metadata_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Constructor_metadata_feature", + "_UI_Constructor_type"), DartPackage.Literals.CONSTRUCTOR__METADATA, true, false, + true, null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Constructor.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Constructor")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + Constructor constructor = (Constructor)object; + return getString("_UI_Constructor_type") + " " + constructor.isConstant(); + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Constructor.class)) { + case DartPackage.CONSTRUCTOR__CONSTANT: + case DartPackage.CONSTRUCTOR__BODY: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ContainerItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ContainerItemProvider.java new file mode 100644 index 0000000..d7ca20c --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ContainerItemProvider.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.Container; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Container} object. + * + * @generated + */ +public class ContainerItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ContainerItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.CONTAINER__ASSETS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_Container_type"); + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Container.class)) { + case DartPackage.CONTAINER__ASSETS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createAsset())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createFolder())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createLibrary())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createMetadata())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createClass())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createHTML())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createStylesheet())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createModule())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createController())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createComponent())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createDecorator())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.CONTAINER__ASSETS, + DartFactory.eINSTANCE.createFormatter())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ControllerItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ControllerItemProvider.java new file mode 100644 index 0000000..ffc0f58 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ControllerItemProvider.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.Controller; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Controller} object. + * + * @generated + */ +public class ControllerItemProvider extends ClassItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ControllerItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addPublishAsPropertyDescriptor(object); + addSelectorPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Publish As feature. + * + * @generated + */ + protected void addPublishAsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Controller_publishAs_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Controller_publishAs_feature", + "_UI_Controller_type"), DartPackage.Literals.CONTROLLER__PUBLISH_AS, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Selector feature. + * + * @generated + */ + protected void addSelectorPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Controller_selector_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Controller_selector_feature", + "_UI_Controller_type"), DartPackage.Literals.CONTROLLER__SELECTOR, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns Controller.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Controller")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Controller)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Controller_type") + : getString("_UI_Controller_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Controller.class)) { + case DartPackage.CONTROLLER__PUBLISH_AS: + case DartPackage.CONTROLLER__SELECTOR: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartEditPlugin.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartEditPlugin.java new file mode 100644 index 0000000..074228c --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartEditPlugin.java @@ -0,0 +1,94 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the Dart edit plugin. + * + * @generated + */ +public final class DartEditPlugin extends EMFPlugin { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Keep track of the singleton. + * + * @generated + */ + public static final DartEditPlugin INSTANCE = new DartEditPlugin(); + + /** + * Keep track of the singleton. + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * @generated + */ + public DartEditPlugin() { + super(new ResourceLocator[] {}); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartItemProviderAdapterFactory.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartItemProviderAdapterFactory.java new file mode 100644 index 0000000..030e0e5 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartItemProviderAdapterFactory.java @@ -0,0 +1,736 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import org.obeonetwork.dsl.dart.util.DartAdapterFactory; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. The adapters + * generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged + * fireNotifyChanged}. The adapters also support Eclipse property sheets. Note that most of the adapters are + * shared among multiple instances. + * + * @generated + */ +public class DartItemProviderAdapterFactory extends DartAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * @generated + */ + public DartItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Project} instances. + * + * + * @generated + */ + protected ProjectItemProvider projectItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Project}. + * + * @generated + */ + @Override + public Adapter createProjectAdapter() { + if (projectItemProvider == null) { + projectItemProvider = new ProjectItemProvider(this); + } + + return projectItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Asset} instances. + * + * @generated + */ + protected AssetItemProvider assetItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Asset}. + * + * @generated + */ + @Override + public Adapter createAssetAdapter() { + if (assetItemProvider == null) { + assetItemProvider = new AssetItemProvider(this); + } + + return assetItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Folder} instances. + * + * + * @generated + */ + protected FolderItemProvider folderItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Folder}. + * + * @generated + */ + @Override + public Adapter createFolderAdapter() { + if (folderItemProvider == null) { + folderItemProvider = new FolderItemProvider(this); + } + + return folderItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Package} instances. + * + * + * @generated + */ + protected PackageItemProvider packageItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Package}. + * + * @generated + */ + @Override + public Adapter createPackageAdapter() { + if (packageItemProvider == null) { + packageItemProvider = new PackageItemProvider(this); + } + + return packageItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Import} instances. + * + * + * @generated + */ + protected ImportItemProvider importItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Import}. + * + * @generated + */ + @Override + public Adapter createImportAdapter() { + if (importItemProvider == null) { + importItemProvider = new ImportItemProvider(this); + } + + return importItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Export} instances. + * + * + * @generated + */ + protected ExportItemProvider exportItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Export}. + * + * @generated + */ + @Override + public Adapter createExportAdapter() { + if (exportItemProvider == null) { + exportItemProvider = new ExportItemProvider(this); + } + + return exportItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Typedef} instances. + * + * + * @generated + */ + protected TypedefItemProvider typedefItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Typedef}. + * + * @generated + */ + @Override + public Adapter createTypedefAdapter() { + if (typedefItemProvider == null) { + typedefItemProvider = new TypedefItemProvider(this); + } + + return typedefItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.HTML} instances. + * + * @generated + */ + protected HTMLItemProvider htmlItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.HTML}. + * + * @generated + */ + @Override + public Adapter createHTMLAdapter() { + if (htmlItemProvider == null) { + htmlItemProvider = new HTMLItemProvider(this); + } + + return htmlItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Stylesheet} instances. + * + * + * @generated + */ + protected StylesheetItemProvider stylesheetItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Stylesheet}. + * + * @generated + */ + @Override + public Adapter createStylesheetAdapter() { + if (stylesheetItemProvider == null) { + stylesheetItemProvider = new StylesheetItemProvider(this); + } + + return stylesheetItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Module} instances. + * + * + * @generated + */ + protected ModuleItemProvider moduleItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Module}. + * + * @generated + */ + @Override + public Adapter createModuleAdapter() { + if (moduleItemProvider == null) { + moduleItemProvider = new ModuleItemProvider(this); + } + + return moduleItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Controller} instances. + * + * + * @generated + */ + protected ControllerItemProvider controllerItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Controller}. + * + * @generated + */ + @Override + public Adapter createControllerAdapter() { + if (controllerItemProvider == null) { + controllerItemProvider = new ControllerItemProvider(this); + } + + return controllerItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Component} instances. + * + * + * @generated + */ + protected ComponentItemProvider componentItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Component}. + * + * @generated + */ + @Override + public Adapter createComponentAdapter() { + if (componentItemProvider == null) { + componentItemProvider = new ComponentItemProvider(this); + } + + return componentItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Decorator} instances. + * + * + * @generated + */ + protected DecoratorItemProvider decoratorItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Decorator}. + * + * @generated + */ + @Override + public Adapter createDecoratorAdapter() { + if (decoratorItemProvider == null) { + decoratorItemProvider = new DecoratorItemProvider(this); + } + + return decoratorItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Formatter} instances. + * + * + * @generated + */ + protected FormatterItemProvider formatterItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Formatter}. + * + * @generated + */ + @Override + public Adapter createFormatterAdapter() { + if (formatterItemProvider == null) { + formatterItemProvider = new FormatterItemProvider(this); + } + + return formatterItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Route} instances. + * + * @generated + */ + protected RouteItemProvider routeItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Route}. + * + * @generated + */ + @Override + public Adapter createRouteAdapter() { + if (routeItemProvider == null) { + routeItemProvider = new RouteItemProvider(this); + } + + return routeItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Library} instances. + * + * + * @generated + */ + protected LibraryItemProvider libraryItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Library}. + * + * @generated + */ + @Override + public Adapter createLibraryAdapter() { + if (libraryItemProvider == null) { + libraryItemProvider = new LibraryItemProvider(this); + } + + return libraryItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Metadata} instances. + * + * + * @generated + */ + protected MetadataItemProvider metadataItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Metadata}. + * + * @generated + */ + @Override + public Adapter createMetadataAdapter() { + if (metadataItemProvider == null) { + metadataItemProvider = new MetadataItemProvider(this); + } + + return metadataItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Class} instances. + * + * @generated + */ + protected ClassItemProvider classItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Class}. + * + * @generated + */ + @Override + public Adapter createClassAdapter() { + if (classItemProvider == null) { + classItemProvider = new ClassItemProvider(this); + } + + return classItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Variable} instances. + * + * + * @generated + */ + protected VariableItemProvider variableItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Variable}. + * + * @generated + */ + @Override + public Adapter createVariableAdapter() { + if (variableItemProvider == null) { + variableItemProvider = new VariableItemProvider(this); + } + + return variableItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Constructor} + * instances. + * + * @generated + */ + protected ConstructorItemProvider constructorItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Constructor}. + * + * + * @generated + */ + @Override + public Adapter createConstructorAdapter() { + if (constructorItemProvider == null) { + constructorItemProvider = new ConstructorItemProvider(this); + } + + return constructorItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Function} instances. + * + * + * @generated + */ + protected FunctionItemProvider functionItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Function}. + * + * @generated + */ + @Override + public Adapter createFunctionAdapter() { + if (functionItemProvider == null) { + functionItemProvider = new FunctionItemProvider(this); + } + + return functionItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.obeonetwork.dsl.dart.Parameter} instances. + * + * + * @generated + */ + protected ParameterItemProvider parameterItemProvider; + + /** + * This creates an adapter for a {@link org.obeonetwork.dsl.dart.Parameter}. + * + * @generated + */ + @Override + public Adapter createParameterAdapter() { + if (parameterItemProvider == null) { + parameterItemProvider = new ParameterItemProvider(this); + } + + return parameterItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class)type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * @generated + */ + public void dispose() { + if (projectItemProvider != null) + projectItemProvider.dispose(); + if (assetItemProvider != null) + assetItemProvider.dispose(); + if (folderItemProvider != null) + folderItemProvider.dispose(); + if (packageItemProvider != null) + packageItemProvider.dispose(); + if (importItemProvider != null) + importItemProvider.dispose(); + if (exportItemProvider != null) + exportItemProvider.dispose(); + if (libraryItemProvider != null) + libraryItemProvider.dispose(); + if (metadataItemProvider != null) + metadataItemProvider.dispose(); + if (classItemProvider != null) + classItemProvider.dispose(); + if (variableItemProvider != null) + variableItemProvider.dispose(); + if (constructorItemProvider != null) + constructorItemProvider.dispose(); + if (functionItemProvider != null) + functionItemProvider.dispose(); + if (parameterItemProvider != null) + parameterItemProvider.dispose(); + if (typedefItemProvider != null) + typedefItemProvider.dispose(); + if (htmlItemProvider != null) + htmlItemProvider.dispose(); + if (stylesheetItemProvider != null) + stylesheetItemProvider.dispose(); + if (moduleItemProvider != null) + moduleItemProvider.dispose(); + if (controllerItemProvider != null) + controllerItemProvider.dispose(); + if (componentItemProvider != null) + componentItemProvider.dispose(); + if (decoratorItemProvider != null) + decoratorItemProvider.dispose(); + if (formatterItemProvider != null) + formatterItemProvider.dispose(); + if (routeItemProvider != null) + routeItemProvider.dispose(); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartResourceItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartResourceItemProvider.java new file mode 100644 index 0000000..1bc1f41 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DartResourceItemProvider.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.DartResource} object. + * + * @generated + */ +public class DartResourceItemProvider extends AssetItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public DartResourceItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addDocumentationPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Documentation feature. + * + * @generated + */ + protected void addDocumentationPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_DartResource_documentation_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_DartResource_documentation_feature", + "_UI_DartResource_type"), DartPackage.Literals.DART_RESOURCE__DOCUMENTATION, true, + false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.DART_RESOURCE__IMPORTS); + childrenFeatures.add(DartPackage.Literals.DART_RESOURCE__EXPORTS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((DartResource)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_DartResource_type") + : getString("_UI_DartResource_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(DartResource.class)) { + case DartPackage.DART_RESOURCE__DOCUMENTATION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + case DartPackage.DART_RESOURCE__IMPORTS: + case DartPackage.DART_RESOURCE__EXPORTS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.DART_RESOURCE__IMPORTS, + DartFactory.eINSTANCE.createImport())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.DART_RESOURCE__EXPORTS, + DartFactory.eINSTANCE.createExport())); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DecoratorItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DecoratorItemProvider.java new file mode 100644 index 0000000..cc19342 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/DecoratorItemProvider.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Decorator; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Decorator} object. + * + * @generated + */ +public class DecoratorItemProvider extends ClassItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public DecoratorItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addSelectorPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Selector feature. + * + * @generated + */ + protected void addSelectorPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Decorator_selector_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Decorator_selector_feature", + "_UI_Decorator_type"), DartPackage.Literals.DECORATOR__SELECTOR, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns Decorator.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Decorator")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Decorator)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Decorator_type") + : getString("_UI_Decorator_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Decorator.class)) { + case DartPackage.DECORATOR__SELECTOR: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ExportItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ExportItemProvider.java new file mode 100644 index 0000000..b377491 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ExportItemProvider.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Export} object. + * + * @generated + */ +public class ExportItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ExportItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addDartResourcePropertyDescriptor(object); + addShowPropertyDescriptor(object); + addHidePropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Dart Resource feature. + * + * @generated + */ + protected void addDartResourcePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Export_dartResource_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Export_dartResource_feature", + "_UI_Export_type"), DartPackage.Literals.EXPORT__DART_RESOURCE, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Show feature. + * + * @generated + */ + protected void addShowPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Export_show_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Export_show_feature", + "_UI_Export_type"), DartPackage.Literals.EXPORT__SHOW, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Hide feature. + * + * @generated + */ + protected void addHidePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Export_hide_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Export_hide_feature", + "_UI_Export_type"), DartPackage.Literals.EXPORT__HIDE, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Export_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Export_metadata_feature", + "_UI_Export_type"), DartPackage.Literals.EXPORT__METADATA, true, false, true, null, + null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Export.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Export")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_Export_type"); + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FolderItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FolderItemProvider.java new file mode 100644 index 0000000..2597c71 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FolderItemProvider.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Folder; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Folder} object. + * + * @generated + */ +public class FolderItemProvider extends ContainerItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public FolderItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Asset_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Asset_name_feature", "_UI_Asset_type"), + DartPackage.Literals.ASSET__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns Folder.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Folder")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Folder)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Folder_type") + : getString("_UI_Folder_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Folder.class)) { + case DartPackage.FOLDER__NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FormatterItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FormatterItemProvider.java new file mode 100644 index 0000000..1c539c0 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FormatterItemProvider.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Formatter; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Formatter} object. + * + * @generated + */ +public class FormatterItemProvider extends ClassItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public FormatterItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addFormatterNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Formatter Name feature. + * + * @generated + */ + protected void addFormatterNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Formatter_formatterName_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Formatter_formatterName_feature", + "_UI_Formatter_type"), DartPackage.Literals.FORMATTER__FORMATTER_NAME, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns Formatter.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Formatter")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Formatter)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Formatter_type") + : getString("_UI_Formatter_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Formatter.class)) { + case DartPackage.FORMATTER__FORMATTER_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FunctionItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FunctionItemProvider.java new file mode 100644 index 0000000..935962a --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/FunctionItemProvider.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Function; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Function} object. + * + * @generated + */ +public class FunctionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public FunctionItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addDocumentationPropertyDescriptor(object); + addTypePropertyDescriptor(object); + addAbstractPropertyDescriptor(object); + addStaticPropertyDescriptor(object); + addBodyPropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Function_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Function_name_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Documentation feature. + * + * @generated + */ + protected void addDocumentationPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Function_documentation_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Function_documentation_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__DOCUMENTATION, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Type feature. + * + * @generated + */ + protected void addTypePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Function_type_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Function_type_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__TYPE, true, false, true, null, + null, null)); + } + + /** + * This adds a property descriptor for the Abstract feature. + * + * @generated + */ + protected void addAbstractPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Function_abstract_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Function_abstract_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__ABSTRACT, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Static feature. + * + * @generated + */ + protected void addStaticPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Function_static_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Function_static_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__STATIC, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Body feature. + * + * @generated + */ + protected void addBodyPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Function_body_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Function_body_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__BODY, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Function_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Function_metadata_feature", + "_UI_Function_type"), DartPackage.Literals.FUNCTION__METADATA, true, false, true, + null, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.FUNCTION__PARAMETERS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Function.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Function")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Function)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Function_type") + : getString("_UI_Function_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Function.class)) { + case DartPackage.FUNCTION__NAME: + case DartPackage.FUNCTION__DOCUMENTATION: + case DartPackage.FUNCTION__ABSTRACT: + case DartPackage.FUNCTION__STATIC: + case DartPackage.FUNCTION__BODY: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + case DartPackage.FUNCTION__PARAMETERS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.FUNCTION__PARAMETERS, + DartFactory.eINSTANCE.createParameter())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/HTMLItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/HTMLItemProvider.java new file mode 100644 index 0000000..f21a0d6 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/HTMLItemProvider.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.HTML; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.HTML} object. + * + * @generated + */ +public class HTMLItemProvider extends AssetItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public HTMLItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addUsesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Uses feature. + * + * @generated + */ + protected void addUsesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_HTML_uses_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_HTML_uses_feature", "_UI_HTML_type"), + DartPackage.Literals.HTML__USES, true, false, true, null, null, null)); + } + + /** + * This returns HTML.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/HTML")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((HTML)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_HTML_type") : getString("_UI_HTML_type") + + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ImportItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ImportItemProvider.java new file mode 100644 index 0000000..53483b8 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ImportItemProvider.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Import; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Import} object. + * + * @generated + */ +public class ImportItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ImportItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addDartResourcePropertyDescriptor(object); + addAsPropertyDescriptor(object); + addShowPropertyDescriptor(object); + addHidePropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Dart Resource feature. + * + * @generated + */ + protected void addDartResourcePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Import_dartResource_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Import_dartResource_feature", + "_UI_Import_type"), DartPackage.Literals.IMPORT__DART_RESOURCE, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the As feature. + * + * @generated + */ + protected void addAsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Import_as_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Import_as_feature", "_UI_Import_type"), + DartPackage.Literals.IMPORT__AS, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Show feature. + * + * @generated + */ + protected void addShowPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Import_show_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Import_show_feature", + "_UI_Import_type"), DartPackage.Literals.IMPORT__SHOW, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Hide feature. + * + * @generated + */ + protected void addHidePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Import_hide_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Import_hide_feature", + "_UI_Import_type"), DartPackage.Literals.IMPORT__HIDE, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Import_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Import_metadata_feature", + "_UI_Import_type"), DartPackage.Literals.IMPORT__METADATA, true, false, true, null, + null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Import.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Import")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Import)object).getAs(); + return label == null || label.length() == 0 ? getString("_UI_Import_type") + : getString("_UI_Import_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Import.class)) { + case DartPackage.IMPORT__AS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/LibraryItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/LibraryItemProvider.java new file mode 100644 index 0000000..3f930fe --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/LibraryItemProvider.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Library; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Library} object. + * + * @generated + */ +public class LibraryItemProvider extends DartResourceItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public LibraryItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addPartsPropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Parts feature. + * + * @generated + */ + protected void addPartsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Library_parts_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Library_parts_feature", + "_UI_Library_type"), DartPackage.Literals.LIBRARY__PARTS, true, false, true, null, + null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Library_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Library_metadata_feature", + "_UI_Library_type"), DartPackage.Literals.LIBRARY__METADATA, true, false, true, null, + null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.LIBRARY__TYPEDEFS); + childrenFeatures.add(DartPackage.Literals.LIBRARY__VARIABLES); + childrenFeatures.add(DartPackage.Literals.LIBRARY__FUNCTIONS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns Library.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Library")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Library)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Library_type") + : getString("_UI_Library_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Library.class)) { + case DartPackage.LIBRARY__TYPEDEFS: + case DartPackage.LIBRARY__VARIABLES: + case DartPackage.LIBRARY__FUNCTIONS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.LIBRARY__TYPEDEFS, + DartFactory.eINSTANCE.createTypedef())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.LIBRARY__VARIABLES, + DartFactory.eINSTANCE.createVariable())); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.LIBRARY__FUNCTIONS, + DartFactory.eINSTANCE.createFunction())); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/MetadataItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/MetadataItemProvider.java new file mode 100644 index 0000000..1ecb5cb --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/MetadataItemProvider.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.obeonetwork.dsl.dart.Metadata; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Metadata} object. + * + * @generated + */ +public class MetadataItemProvider extends ClassifierItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public MetadataItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns Metadata.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Metadata")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Metadata)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Metadata_type") + : getString("_UI_Metadata_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ModuleItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ModuleItemProvider.java new file mode 100644 index 0000000..3702a00 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ModuleItemProvider.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Module; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Module} object. + * + * @generated + */ +public class ModuleItemProvider extends PartItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ModuleItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addTypesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Types feature. + * + * @generated + */ + protected void addTypesPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Module_types_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Module_types_feature", + "_UI_Module_type"), DartPackage.Literals.MODULE__TYPES, true, false, true, + null, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.MODULE__ROUTES); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns Module.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Module")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Module)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Module_type") + : getString("_UI_Module_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Module.class)) { + case DartPackage.MODULE__ROUTES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.MODULE__ROUTES, + DartFactory.eINSTANCE.createRoute())); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/PackageItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/PackageItemProvider.java new file mode 100644 index 0000000..03cd1f1 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/PackageItemProvider.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Package} object. + * + * @generated + */ +public class PackageItemProvider extends ContainerItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public PackageItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addLicensePropertyDescriptor(object); + addDependenciesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Package_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Package_name_feature", + "_UI_Package_type"), DartPackage.Literals.PACKAGE__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the License feature. + * + * @generated + */ + protected void addLicensePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Package_license_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Package_license_feature", + "_UI_Package_type"), DartPackage.Literals.PACKAGE__LICENSE, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Dependencies feature. + * + * @generated + */ + protected void addDependenciesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Package_dependencies_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Package_dependencies_feature", + "_UI_Package_type"), DartPackage.Literals.PACKAGE__DEPENDENCIES, true, false, true, + null, null, null)); + } + + /** + * This returns Package.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Package")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((org.obeonetwork.dsl.dart.Package)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Package_type") + : getString("_UI_Package_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(org.obeonetwork.dsl.dart.Package.class)) { + case DartPackage.PACKAGE__NAME: + case DartPackage.PACKAGE__LICENSE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ParameterItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ParameterItemProvider.java new file mode 100644 index 0000000..600c01a --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ParameterItemProvider.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Parameter; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Parameter} object. + * + * @generated + */ +public class ParameterItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ParameterItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addValuePropertyDescriptor(object); + addOptionalPropertyDescriptor(object); + addTypePropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Parameter_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Parameter_name_feature", + "_UI_Parameter_type"), DartPackage.Literals.PARAMETER__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Value feature. + * + * @generated + */ + protected void addValuePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Parameter_value_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Parameter_value_feature", + "_UI_Parameter_type"), DartPackage.Literals.PARAMETER__VALUE, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Optional feature. + * + * @generated + */ + protected void addOptionalPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Parameter_optional_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Parameter_optional_feature", + "_UI_Parameter_type"), DartPackage.Literals.PARAMETER__OPTIONAL, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Type feature. + * + * @generated + */ + protected void addTypePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Parameter_type_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Parameter_type_feature", + "_UI_Parameter_type"), DartPackage.Literals.PARAMETER__TYPE, true, false, true, null, + null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Parameter_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Parameter_metadata_feature", + "_UI_Parameter_type"), DartPackage.Literals.PARAMETER__METADATA, true, false, true, + null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Parameter.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Parameter")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Parameter)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Parameter_type") + : getString("_UI_Parameter_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Parameter.class)) { + case DartPackage.PARAMETER__NAME: + case DartPackage.PARAMETER__VALUE: + case DartPackage.PARAMETER__OPTIONAL: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/PartItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/PartItemProvider.java new file mode 100644 index 0000000..19efb06 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/PartItemProvider.java @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Part; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Part} object. + * + * @generated + */ +public class PartItemProvider extends DartResourceItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public PartItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addPartOfPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Part Of feature. + * + * @generated + */ + protected void addPartOfPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Part_partOf_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Part_partOf_feature", "_UI_Part_type"), + DartPackage.Literals.PART__PART_OF, true, false, true, null, null, null)); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Part)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Part_type") : getString("_UI_Part_type") + + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ProjectItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ProjectItemProvider.java new file mode 100644 index 0000000..b86cda6 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/ProjectItemProvider.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Project; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Project} object. + * + * @generated + */ +public class ProjectItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ProjectItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Project_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_name_feature", + "_UI_Project_type"), DartPackage.Literals.PROJECT__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.PROJECT__PACKAGES); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Project.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Project")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Project)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Project_type") + : getString("_UI_Project_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Project.class)) { + case DartPackage.PROJECT__NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + case DartPackage.PROJECT__PACKAGES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.PROJECT__PACKAGES, + DartFactory.eINSTANCE.createPackage())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/RouteItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/RouteItemProvider.java new file mode 100644 index 0000000..ac1944a --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/RouteItemProvider.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Route; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Route} object. + * + * @generated + */ +public class RouteItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public RouteItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addPathPropertyDescriptor(object); + addViewPropertyDescriptor(object); + addExtendsPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Route_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Route_name_feature", "_UI_Route_type"), + DartPackage.Literals.ROUTE__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Path feature. + * + * @generated + */ + protected void addPathPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Route_path_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Route_path_feature", "_UI_Route_type"), + DartPackage.Literals.ROUTE__PATH, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the View feature. + * + * @generated + */ + protected void addViewPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Route_view_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Route_view_feature", "_UI_Route_type"), + DartPackage.Literals.ROUTE__VIEW, true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Extends feature. + * + * @generated + */ + protected void addExtendsPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Route_extends_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Route_extends_feature", + "_UI_Route_type"), DartPackage.Literals.ROUTE__EXTENDS, true, false, true, + null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Route.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Route")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Route)object).getPath(); + return label == null || label.length() == 0 ? getString("_UI_Route_type") + : getString("_UI_Route_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Route.class)) { + case DartPackage.ROUTE__NAME: + case DartPackage.ROUTE__PATH: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/StylesheetItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/StylesheetItemProvider.java new file mode 100644 index 0000000..29e203d --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/StylesheetItemProvider.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Stylesheet; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Stylesheet} object. + * + * @generated + */ +public class StylesheetItemProvider extends AssetItemProvider { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public StylesheetItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addImportsPropertyDescriptor(object); + addPartialPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Imports feature. + * + * @generated + */ + protected void addImportsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Stylesheet_imports_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Stylesheet_imports_feature", + "_UI_Stylesheet_type"), DartPackage.Literals.STYLESHEET__IMPORTS, true, false, true, + null, null, null)); + } + + /** + * This adds a property descriptor for the Partial feature. + * + * @generated + */ + protected void addPartialPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Stylesheet_partial_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Stylesheet_partial_feature", + "_UI_Stylesheet_type"), DartPackage.Literals.STYLESHEET__PARTIAL, false, false, + false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This returns Stylesheet.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Stylesheet")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Stylesheet)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Stylesheet_type") + : getString("_UI_Stylesheet_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Stylesheet.class)) { + case DartPackage.STYLESHEET__PARTIAL: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/TypedefItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/TypedefItemProvider.java new file mode 100644 index 0000000..3c6a81a --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/TypedefItemProvider.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EStructuralFeature; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Typedef; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Typedef} object. + * + * @generated + */ +public class TypedefItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public TypedefItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addDocumentationPropertyDescriptor(object); + addNamePropertyDescriptor(object); + addTypePropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Typedef_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Typedef_name_feature", + "_UI_Typedef_type"), DartPackage.Literals.TYPEDEF__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Documentation feature. + * + * @generated + */ + protected void addDocumentationPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Typedef_documentation_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Typedef_documentation_feature", + "_UI_Typedef_type"), DartPackage.Literals.TYPEDEF__DOCUMENTATION, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Type feature. + * + * @generated + */ + protected void addTypePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Typedef_type_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Typedef_type_feature", + "_UI_Typedef_type"), DartPackage.Literals.TYPEDEF__TYPE, true, false, true, null, + null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Typedef_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Typedef_metadata_feature", + "_UI_Typedef_type"), DartPackage.Literals.TYPEDEF__METADATA, true, false, true, null, + null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for + * an {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} + * or {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(DartPackage.Literals.TYPEDEF__PARAMETERS); + } + return childrenFeatures; + } + + /** + * + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Typedef.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Typedef")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Typedef)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Typedef_type") + : getString("_UI_Typedef_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Typedef.class)) { + case DartPackage.TYPEDEF__DOCUMENTATION: + case DartPackage.TYPEDEF__NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + case DartPackage.TYPEDEF__PARAMETERS: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, + false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(DartPackage.Literals.TYPEDEF__PARAMETERS, + DartFactory.eINSTANCE.createParameter())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/VariableItemProvider.java b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/VariableItemProvider.java new file mode 100644 index 0000000..958e924 --- /dev/null +++ b/org.obeonetwork.dsl.dart.edit/src-gen/org/obeonetwork/dsl/dart/edit/internal/provider/VariableItemProvider.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.edit.internal.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Variable; + +/** + * This is the item provider adapter for a {@link org.obeonetwork.dsl.dart.Variable} object. + * + * @generated + */ +public class VariableItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public VariableItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addDocumentationPropertyDescriptor(object); + addTypePropertyDescriptor(object); + addStaticPropertyDescriptor(object); + addConstantPropertyDescriptor(object); + addFinalPropertyDescriptor(object); + addValuePropertyDescriptor(object); + addMetadataPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * + * @generated + */ + protected void addNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_name_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Documentation feature. + * + * @generated + */ + protected void addDocumentationPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Variable_documentation_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_Variable_documentation_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__DOCUMENTATION, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Type feature. + * + * @generated + */ + protected void addTypePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_type_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_type_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__TYPE, true, false, true, null, + null, null)); + } + + /** + * This adds a property descriptor for the Static feature. + * + * @generated + */ + protected void addStaticPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_static_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_static_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__STATIC, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Constant feature. + * + * @generated + */ + protected void addConstantPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_constant_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_constant_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__CONSTANT, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Final feature. + * + * @generated + */ + protected void addFinalPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_final_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_final_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__FINAL, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Value feature. + * + * @generated + */ + protected void addValuePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_value_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_value_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__VALUE, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Metadata feature. + * + * @generated + */ + protected void addMetadataPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_Variable_metadata_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Variable_metadata_feature", + "_UI_Variable_type"), DartPackage.Literals.VARIABLE__METADATA, true, false, true, + null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + return hasChildren(object, true); + } + + /** + * This returns Variable.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Variable")); + } + + /** + * This returns the label text for the adapted class. + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Variable)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Variable_type") + : getString("_UI_Variable_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and + * by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Variable.class)) { + case DartPackage.VARIABLE__NAME: + case DartPackage.VARIABLE__DOCUMENTATION: + case DartPackage.VARIABLE__STATIC: + case DartPackage.VARIABLE__CONSTANT: + case DartPackage.VARIABLE__FINAL: + case DartPackage.VARIABLE__VALUE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, + true)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be + * created under this object. + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return DartEditPlugin.INSTANCE; + } + +} diff --git a/org.obeonetwork.dsl.dart.editor/.checkstyle b/org.obeonetwork.dsl.dart.editor/.checkstyle new file mode 100644 index 0000000..10403f1 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.checkstyle @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart.editor/.classpath b/org.obeonetwork.dsl.dart.editor/.classpath new file mode 100644 index 0000000..6292ea5 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart.editor/.gitignore b/org.obeonetwork.dsl.dart.editor/.gitignore new file mode 100644 index 0000000..5e56e04 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.gitignore @@ -0,0 +1 @@ +/bin diff --git a/org.obeonetwork.dsl.dart.editor/.project b/org.obeonetwork.dsl.dart.editor/.project new file mode 100644 index 0000000..2b57de3 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.project @@ -0,0 +1,34 @@ + + + org.obeonetwork.dsl.dart.editor + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + net.sf.eclipsecs.core.CheckstyleBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + net.sf.eclipsecs.core.CheckstyleNature + + diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.core.resources.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.core.runtime.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 0000000..5a0ad22 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.core.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..40cc43f --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,405 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.cleanOutputFolder=clean +org.eclipse.jdt.core.builder.duplicateResourceTask=warning +org.eclipse.jdt.core.builder.invalidClasspath=abort +org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore +org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch +org.eclipse.jdt.core.circularClasspath=error +org.eclipse.jdt.core.classpath.exclusionPatterns=enabled +org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled +org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.doc.comment.support=enabled +org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=error +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=error +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=enabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=error +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=error +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=error +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=error +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=1 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=110 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indentation.size=8 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=110 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=false +org.eclipse.jdt.core.incompatibleJDKLevel=ignore +org.eclipse.jdt.core.incompleteClasspath=error diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.launching.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.launching.prefs new file mode 100644 index 0000000..d211d32 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.launching.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.ui.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..73b5091 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,62 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Dart Designer +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=com;java;javax;org;\#org.junit; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=false +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=false +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=true +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=true +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.pde.api.tools.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000..fdcba94 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,97 @@ +ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error +ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error +API_USE_SCAN_FIELD_SEVERITY=Error +API_USE_SCAN_METHOD_SEVERITY=Error +API_USE_SCAN_TYPE_SEVERITY=Error +CLASS_ELEMENT_TYPE_ADDED_METHOD=Error +CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error +CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error +CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error +CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error +ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error +ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error +ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +FIELD_ELEMENT_TYPE_ADDED_VALUE=Error +FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error +FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error +FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error +FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error +ILLEGAL_EXTEND=Warning +ILLEGAL_IMPLEMENT=Warning +ILLEGAL_INSTANTIATE=Warning +ILLEGAL_OVERRIDE=Warning +ILLEGAL_REFERENCE=Warning +INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error +INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error +INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error +INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +INVALID_JAVADOC_TAG=Ignore +INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore +LEAK_EXTEND=Warning +LEAK_FIELD_DECL=Warning +LEAK_IMPLEMENT=Warning +LEAK_METHOD_PARAM=Warning +LEAK_METHOD_RETURN_TYPE=Warning +METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error +METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +MISSING_EE_DESCRIPTIONS=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error +UNUSED_PROBLEM_FILTERS=Warning +automatically_removed_unused_problem_filters=false +eclipse.preferences.version=1 +incompatible_api_component_version=Error +incompatible_api_component_version_include_major_without_breaking_change=Disabled +incompatible_api_component_version_include_minor_without_api_change=Disabled +invalid_since_tag_version=Error +malformed_since_tag=Error +missing_since_tag=Error +report_api_breakage_when_major_version_incremented=Disabled +report_resolution_errors_api_component=Warning diff --git a/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.pde.prefs b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000..0abdfbe --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/.settings/org.eclipse.pde.prefs @@ -0,0 +1,32 @@ +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.build.bin.includes=1 +compilers.p.build.encodings=2 +compilers.p.build.java.compiler=1 +compilers.p.build.java.compliance=1 +compilers.p.build.missing.output=2 +compilers.p.build.output.library=1 +compilers.p.build.source.library=1 +compilers.p.build.src.includes=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=2 +compilers.p.missing-version-import-package=2 +compilers.p.missing-version-require-bundle=2 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=1 +compilers.p.unknown-attribute=1 +compilers.p.unknown-class=1 +compilers.p.unknown-element=1 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=1 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +eclipse.preferences.version=1 diff --git a/org.obeonetwork.dsl.dart.editor/META-INF/MANIFEST.MF b/org.obeonetwork.dsl.dart.editor/META-INF/MANIFEST.MF new file mode 100644 index 0000000..047c8ad --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/META-INF/MANIFEST.MF @@ -0,0 +1,18 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.obeonetwork.dsl.dart.editor;singleton:=true +Bundle-Version: 0.4.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.obeonetwork.dsl.dart.editor.internal.presentation.DartEditorPlugin$Implementation +Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: bundle +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.obeonetwork.dsl.dart.editor.internal.presentation;version="0.4.0";x-internal:=true +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.core.resources;visibility:=reexport, + org.obeonetwork.dsl.dart.edit;bundle-version="0.4.0";visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.emf.edit.ui;visibility:=reexport, + org.eclipse.ui.ide;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/org.obeonetwork.dsl.dart.editor/build.properties b/org.obeonetwork.dsl.dart.editor/build.properties new file mode 100644 index 0000000..6a334a0 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/build.properties @@ -0,0 +1,19 @@ +################################################################################ +## Copyright (c) 2014 Obeo. +## 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: +## Obeo - initial API and implementation +################################################################################ +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + bundle.properties +jars.compile.order = . +source.. = src-gen/ +output.. = bin +javacProjectSettings = true diff --git a/org.obeonetwork.dsl.dart.editor/bundle.properties b/org.obeonetwork.dsl.dart.editor/bundle.properties new file mode 100644 index 0000000..cb35776 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/bundle.properties @@ -0,0 +1,61 @@ +################################################################################ +## Copyright (c) 2014 Obeo. +## 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: +## Obeo - initial API and implementation +################################################################################ +Bundle-Name=Dart Editor +Bundle-Vendor=Obeo Network + +_UI_DartEditor_menu = &Dart Editor + +_UI_CreateChild_menu_item = &New Child +_UI_CreateSibling_menu_item = N&ew Sibling + +_UI_ShowPropertiesView_menu_item = Show &Properties View +_UI_RefreshViewer_menu_item = &Refresh + +_UI_SelectionPage_label = Selection +_UI_ParentPage_label = Parent +_UI_ListPage_label = List +_UI_TreePage_label = Tree +_UI_TablePage_label = Table +_UI_TreeWithColumnsPage_label = Tree with Columns +_UI_ObjectColumn_label = Object +_UI_SelfColumn_label = Self + +_UI_NoObjectSelected = Selected Nothing +_UI_SingleObjectSelected = Selected Object: {0} +_UI_MultiObjectSelected = Selected {0} Objects + +_UI_OpenEditorError_label = Open Editor + +_UI_Wizard_category = Dart Designer + +_UI_CreateModelError_message = Problems encountered in file "{0}" + +_UI_DartModelWizard_label = Dart Specification +_UI_DartModelWizard_description = Create a new Dart specification + +_UI_DartEditor_label = Dart Specification Editor + +_UI_DartEditorFilenameDefaultBase = dart +_UI_DartEditorFilenameExtensions = dartspec + +_UI_Wizard_label = New + +_WARN_FilenameExtension = The file name must end in ''.{0}'' +_WARN_FilenameExtensions = The file name must have one of the following extensions: {0} + +_UI_ModelObject = &Model Object +_UI_XMLEncoding = &XML Encoding +_UI_XMLEncodingChoices = UTF-8 ASCII UTF-16 UTF-16BE UTF-16LE ISO-8859-1 +_UI_Wizard_initial_object_description = Select a model object to create + +_UI_FileConflict_label = File Conflict +_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes? + diff --git a/org.obeonetwork.dsl.dart.editor/icons/full/etool16/NewDartSpecification.png b/org.obeonetwork.dsl.dart.editor/icons/full/etool16/NewDartSpecification.png new file mode 100644 index 0000000..92b90fb Binary files /dev/null and b/org.obeonetwork.dsl.dart.editor/icons/full/etool16/NewDartSpecification.png differ diff --git a/org.obeonetwork.dsl.dart.editor/icons/full/obj16/DartSpecificationFile.png b/org.obeonetwork.dsl.dart.editor/icons/full/obj16/DartSpecificationFile.png new file mode 100644 index 0000000..e10c9de Binary files /dev/null and b/org.obeonetwork.dsl.dart.editor/icons/full/obj16/DartSpecificationFile.png differ diff --git a/org.obeonetwork.dsl.dart.editor/icons/full/wizban/DartSpecification.png b/org.obeonetwork.dsl.dart.editor/icons/full/wizban/DartSpecification.png new file mode 100644 index 0000000..c455f70 Binary files /dev/null and b/org.obeonetwork.dsl.dart.editor/icons/full/wizban/DartSpecification.png differ diff --git a/org.obeonetwork.dsl.dart.editor/plugin.xml b/org.obeonetwork.dsl.dart.editor/plugin.xml new file mode 100644 index 0000000..9444046 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/plugin.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + %_UI_DartModelWizard_description + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart.editor/pom.xml b/org.obeonetwork.dsl.dart.editor/pom.xml new file mode 100644 index 0000000..4d1da67 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/pom.xml @@ -0,0 +1,40 @@ + + + + 4.0.0 + + + org.obeonetwork.dsl.dart + org.obeonetwork.dsl.dart.releng.parent + 0.4.0-SNAPSHOT + ../../releng/org.obeonetwork.dsl.dart.releng/parent + + + org.obeonetwork.dsl.dart.editor + eclipse-plugin + + Dart Designer Model Editor + + + + + org.eclipse.tycho + tycho-source-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + + \ No newline at end of file diff --git a/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartActionBarContributor.java b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartActionBarContributor.java new file mode 100644 index 0000000..12e7564 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartActionBarContributor.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.editor.internal.presentation; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.common.ui.viewer.IViewerProvider; + +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.edit.domain.IEditingDomainProvider; + +import org.eclipse.emf.edit.ui.action.ControlAction; +import org.eclipse.emf.edit.ui.action.CreateChildAction; +import org.eclipse.emf.edit.ui.action.CreateSiblingAction; +import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; +import org.eclipse.emf.edit.ui.action.LoadResourceAction; +import org.eclipse.emf.edit.ui.action.ValidateAction; + +import org.eclipse.jface.action.Action; +import org.eclipse.jface.action.ActionContributionItem; +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.action.IContributionItem; +import org.eclipse.jface.action.IContributionManager; +import org.eclipse.jface.action.IMenuListener; +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.MenuManager; +import org.eclipse.jface.action.Separator; +import org.eclipse.jface.action.SubContributionItem; + +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.Viewer; + +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.PartInitException; + +/** + * This is the action bar contributor for the Dart model editor. + * + * @generated + */ +public class DartActionBarContributor extends EditingDomainActionBarContributor implements ISelectionChangedListener { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This keeps track of the active editor. + * + * @generated + */ + protected IEditorPart activeEditorPart; + + /** + * This keeps track of the current selection provider. + * + * @generated + */ + protected ISelectionProvider selectionProvider; + + /** + * This action opens the Properties view. + * + * @generated + */ + protected IAction showPropertiesViewAction = new Action(DartEditorPlugin.INSTANCE + .getString("_UI_ShowPropertiesView_menu_item")) { + @Override + public void run() { + try { + getPage().showView("org.eclipse.ui.views.PropertySheet"); + } catch (PartInitException exception) { + DartEditorPlugin.INSTANCE.log(exception); + } + } + }; + + /** + * This action refreshes the viewer of the current editor if the editor implements + * {@link org.eclipse.emf.common.ui.viewer.IViewerProvider}. + * + * @generated + */ + protected IAction refreshViewerAction = new Action(DartEditorPlugin.INSTANCE + .getString("_UI_RefreshViewer_menu_item")) { + @Override + public boolean isEnabled() { + return activeEditorPart instanceof IViewerProvider; + } + + @Override + public void run() { + if (activeEditorPart instanceof IViewerProvider) { + Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer(); + if (viewer != null) { + viewer.refresh(); + } + } + } + }; + + /** + * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateChildAction} corresponding to each + * descriptor generated for the current selection by the item provider. + * + * @generated + */ + protected Collection createChildActions; + + /** + * This is the menu manager into which menu contribution items should be added for CreateChild actions. + * + * + * @generated + */ + protected IMenuManager createChildMenuManager; + + /** + * This will contain one {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} corresponding to each + * descriptor generated for the current selection by the item provider. + * + * @generated + */ + protected Collection createSiblingActions; + + /** + * This is the menu manager into which menu contribution items should be added for CreateSibling actions. + * + * + * @generated + */ + protected IMenuManager createSiblingMenuManager; + + /** + * This creates an instance of the contributor. + * + * @generated + */ + public DartActionBarContributor() { + super(ADDITIONS_LAST_STYLE); + loadResourceAction = new LoadResourceAction(); + validateAction = new ValidateAction(); + controlAction = new ControlAction(); + } + + /** + * This adds Separators for editor additions to the tool bar. + * + * @generated + */ + @Override + public void contributeToToolBar(IToolBarManager toolBarManager) { + toolBarManager.add(new Separator("dart-settings")); + toolBarManager.add(new Separator("dart-additions")); + } + + /** + * This adds to the menu bar a menu and some separators for editor additions, as well as the sub-menus for + * object creation items. + * + * @generated + */ + @Override + public void contributeToMenu(IMenuManager menuManager) { + super.contributeToMenu(menuManager); + + IMenuManager submenuManager = new MenuManager(DartEditorPlugin.INSTANCE + .getString("_UI_DartEditor_menu"), "org.obeonetwork.dsl.dartMenuID"); + menuManager.insertAfter("additions", submenuManager); + submenuManager.add(new Separator("settings")); + submenuManager.add(new Separator("actions")); + submenuManager.add(new Separator("additions")); + submenuManager.add(new Separator("additions-end")); + + // Prepare for CreateChild item addition or removal. + // + createChildMenuManager = new MenuManager(DartEditorPlugin.INSTANCE + .getString("_UI_CreateChild_menu_item")); + submenuManager.insertBefore("additions", createChildMenuManager); + + // Prepare for CreateSibling item addition or removal. + // + createSiblingMenuManager = new MenuManager(DartEditorPlugin.INSTANCE + .getString("_UI_CreateSibling_menu_item")); + submenuManager.insertBefore("additions", createSiblingMenuManager); + + // Force an update because Eclipse hides empty menus now. + // + submenuManager.addMenuListener(new IMenuListener() { + public void menuAboutToShow(IMenuManager menuManager) { + menuManager.updateAll(true); + } + }); + + addGlobalActions(submenuManager); + } + + /** + * When the active editor changes, this remembers the change and registers with it as a selection + * provider. + * + * @generated + */ + @Override + public void setActiveEditor(IEditorPart part) { + super.setActiveEditor(part); + activeEditorPart = part; + + // Switch to the new selection provider. + // + if (selectionProvider != null) { + selectionProvider.removeSelectionChangedListener(this); + } + if (part == null) { + selectionProvider = null; + } else { + selectionProvider = part.getSite().getSelectionProvider(); + selectionProvider.addSelectionChangedListener(this); + + // Fake a selection changed event to update the menus. + // + if (selectionProvider.getSelection() != null) { + selectionChanged(new SelectionChangedEvent(selectionProvider, selectionProvider + .getSelection())); + } + } + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, handling + * {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings that + * can be added to the selected object and updating the menus accordingly. + * + * @generated + */ + public void selectionChanged(SelectionChangedEvent event) { + // Remove any menu items for old selection. + // + if (createChildMenuManager != null) { + depopulateManager(createChildMenuManager, createChildActions); + } + if (createSiblingMenuManager != null) { + depopulateManager(createSiblingMenuManager, createSiblingActions); + } + + // Query the new selection for appropriate new child/sibling descriptors + // + Collection newChildDescriptors = null; + Collection newSiblingDescriptors = null; + + ISelection selection = event.getSelection(); + if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).size() == 1) { + Object object = ((IStructuredSelection)selection).getFirstElement(); + + EditingDomain domain = ((IEditingDomainProvider)activeEditorPart).getEditingDomain(); + + newChildDescriptors = domain.getNewChildDescriptors(object, null); + newSiblingDescriptors = domain.getNewChildDescriptors(null, object); + } + + // Generate actions for selection; populate and redraw the menus. + // + createChildActions = generateCreateChildActions(newChildDescriptors, selection); + createSiblingActions = generateCreateSiblingActions(newSiblingDescriptors, selection); + + if (createChildMenuManager != null) { + populateManager(createChildMenuManager, createChildActions, null); + createChildMenuManager.update(true); + } + if (createSiblingMenuManager != null) { + populateManager(createSiblingMenuManager, createSiblingActions, null); + createSiblingMenuManager.update(true); + } + } + + /** + * This generates a {@link org.eclipse.emf.edit.ui.action.CreateChildAction} for each object in + * descriptors, and returns the collection of these actions. + * + * @generated + */ + protected Collection generateCreateChildActions(Collection descriptors, ISelection selection) { + Collection actions = new ArrayList(); + if (descriptors != null) { + for (Object descriptor : descriptors) { + actions.add(new CreateChildAction(activeEditorPart, selection, descriptor)); + } + } + return actions; + } + + /** + * This generates a {@link org.eclipse.emf.edit.ui.action.CreateSiblingAction} for each object in + * descriptors, and returns the collection of these actions. + * + * @generated + */ + protected Collection generateCreateSiblingActions(Collection descriptors, ISelection selection) { + Collection actions = new ArrayList(); + if (descriptors != null) { + for (Object descriptor : descriptors) { + actions.add(new CreateSiblingAction(activeEditorPart, selection, descriptor)); + } + } + return actions; + } + + /** + * This populates the specified manager with + * {@link org.eclipse.jface.action.ActionContributionItem}s based on the + * {@link org.eclipse.jface.action.IAction}s contained in the actions collection, by + * inserting them before the specified contribution item contributionID. If + * contributionID is null, they are simply added. + * + * @generated + */ + protected void populateManager(IContributionManager manager, Collection actions, + String contributionID) { + if (actions != null) { + for (IAction action : actions) { + if (contributionID != null) { + manager.insertBefore(contributionID, action); + } else { + manager.add(action); + } + } + } + } + + /** + * This removes from the specified manager all + * {@link org.eclipse.jface.action.ActionContributionItem}s based on the + * {@link org.eclipse.jface.action.IAction}s contained in the actions collection. + * + * @generated + */ + protected void depopulateManager(IContributionManager manager, Collection actions) { + if (actions != null) { + IContributionItem[] items = manager.getItems(); + for (int i = 0; i < items.length; i++) { + // Look into SubContributionItems + // + IContributionItem contributionItem = items[i]; + while (contributionItem instanceof SubContributionItem) { + contributionItem = ((SubContributionItem)contributionItem).getInnerItem(); + } + + // Delete the ActionContributionItems with matching action. + // + if (contributionItem instanceof ActionContributionItem) { + IAction action = ((ActionContributionItem)contributionItem).getAction(); + if (actions.contains(action)) { + manager.remove(contributionItem); + } + } + } + } + } + + /** + * This populates the pop-up menu before it appears. + * + * @generated + */ + @Override + public void menuAboutToShow(IMenuManager menuManager) { + super.menuAboutToShow(menuManager); + MenuManager submenuManager = null; + + submenuManager = new MenuManager(DartEditorPlugin.INSTANCE.getString("_UI_CreateChild_menu_item")); + populateManager(submenuManager, createChildActions, null); + menuManager.insertBefore("edit", submenuManager); + + submenuManager = new MenuManager(DartEditorPlugin.INSTANCE.getString("_UI_CreateSibling_menu_item")); + populateManager(submenuManager, createSiblingActions, null); + menuManager.insertBefore("edit", submenuManager); + } + + /** + * This inserts global actions before the "additions-end" separator. + * + * @generated + */ + @Override + protected void addGlobalActions(IMenuManager menuManager) { + menuManager.insertAfter("additions-end", new Separator("ui-actions")); + menuManager.insertAfter("ui-actions", showPropertiesViewAction); + + refreshViewerAction.setEnabled(refreshViewerAction.isEnabled()); + menuManager.insertAfter("ui-actions", refreshViewerAction); + + super.addGlobalActions(menuManager); + } + + /** + * This ensures that a delete action will clean up all references to deleted objects. + * + * @generated + */ + @Override + protected boolean removeAllReferencesOnDelete() { + return true; + } + +} diff --git a/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartEditor.java b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartEditor.java new file mode 100644 index 0000000..f8bfc8c --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartEditor.java @@ -0,0 +1,1761 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.editor.internal.presentation; + +import java.io.IOException; +import java.io.InputStream; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.EventObject; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IMarker; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.IResourceChangeEvent; +import org.eclipse.core.resources.IResourceChangeListener; +import org.eclipse.core.resources.IResourceDelta; +import org.eclipse.core.resources.IResourceDeltaVisitor; +import org.eclipse.core.resources.ResourcesPlugin; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.NullProgressMonitor; + +import org.eclipse.jface.action.IMenuListener; +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.jface.action.IStatusLineManager; +import org.eclipse.jface.action.IToolBarManager; +import org.eclipse.jface.action.MenuManager; +import org.eclipse.jface.action.Separator; + +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.dialogs.ProgressMonitorDialog; + +import org.eclipse.jface.util.LocalSelectionTransfer; + +import org.eclipse.jface.viewers.ColumnWeightData; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.ISelectionChangedListener; +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.ListViewer; +import org.eclipse.jface.viewers.SelectionChangedEvent; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.viewers.StructuredViewer; +import org.eclipse.jface.viewers.TableLayout; +import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.jface.viewers.TreeViewer; +import org.eclipse.jface.viewers.Viewer; + +import org.eclipse.swt.SWT; + +import org.eclipse.swt.custom.CTabFolder; + +import org.eclipse.swt.dnd.DND; +import org.eclipse.swt.dnd.FileTransfer; +import org.eclipse.swt.dnd.Transfer; + +import org.eclipse.swt.events.ControlAdapter; +import org.eclipse.swt.events.ControlEvent; + +import org.eclipse.swt.graphics.Point; + +import org.eclipse.swt.layout.FillLayout; + +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Menu; +import org.eclipse.swt.widgets.Table; +import org.eclipse.swt.widgets.TableColumn; +import org.eclipse.swt.widgets.Tree; +import org.eclipse.swt.widgets.TreeColumn; + +import org.eclipse.ui.IActionBars; +import org.eclipse.ui.IEditorInput; +import org.eclipse.ui.IEditorPart; +import org.eclipse.ui.IEditorSite; +import org.eclipse.ui.IPartListener; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.PartInitException; + +import org.eclipse.ui.dialogs.SaveAsDialog; + +import org.eclipse.ui.ide.IGotoMarker; + +import org.eclipse.ui.part.FileEditorInput; +import org.eclipse.ui.part.MultiPageEditorPart; + +import org.eclipse.ui.views.contentoutline.ContentOutline; +import org.eclipse.ui.views.contentoutline.ContentOutlinePage; +import org.eclipse.ui.views.contentoutline.IContentOutlinePage; + +import org.eclipse.ui.views.properties.IPropertySheetPage; +import org.eclipse.ui.views.properties.PropertySheet; +import org.eclipse.ui.views.properties.PropertySheetPage; + +import org.eclipse.emf.common.command.BasicCommandStack; +import org.eclipse.emf.common.command.Command; +import org.eclipse.emf.common.command.CommandStack; +import org.eclipse.emf.common.command.CommandStackListener; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.ui.MarkerHelper; +import org.eclipse.emf.common.ui.ViewerPane; + +import org.eclipse.emf.common.ui.editor.ProblemEditorPart; + +import org.eclipse.emf.common.ui.viewer.IViewerProvider; + +import org.eclipse.emf.common.util.BasicDiagnostic; +import org.eclipse.emf.common.util.Diagnostic; +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.ecore.resource.ResourceSet; + +import org.eclipse.emf.ecore.util.EContentAdapter; +import org.eclipse.emf.ecore.util.EcoreUtil; + +import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.edit.domain.IEditingDomainProvider; + +import org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory; + +import org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory; + +import org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor; + +import org.eclipse.emf.edit.ui.celleditor.AdapterFactoryTreeEditor; + +import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; +import org.eclipse.emf.edit.ui.dnd.LocalTransfer; +import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; + +import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; +import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; +import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; + +import org.eclipse.emf.edit.ui.util.EditUIMarkerHelper; +import org.eclipse.emf.edit.ui.util.EditUIUtil; + +import org.eclipse.emf.edit.ui.view.ExtendedPropertySheetPage; + +import org.obeonetwork.dsl.dart.edit.internal.provider.DartItemProviderAdapterFactory; + +import org.eclipse.ui.actions.WorkspaceModifyOperation; + +/** + * This is an example of a Dart model editor. + * + * @generated + */ +public class DartEditor extends MultiPageEditorPart implements IEditingDomainProvider, ISelectionProvider, IMenuListener, IViewerProvider, IGotoMarker { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * This keeps track of the editing domain that is used to track all changes to the model. + * + * @generated + */ + protected AdapterFactoryEditingDomain editingDomain; + + /** + * This is the one adapter factory used for providing views of the model. + * + * @generated + */ + protected ComposedAdapterFactory adapterFactory; + + /** + * This is the content outline page. + * + * @generated + */ + protected IContentOutlinePage contentOutlinePage; + + /** + * This is a kludge... + * + * @generated + */ + protected IStatusLineManager contentOutlineStatusLineManager; + + /** + * This is the content outline page's viewer. + * + * @generated + */ + protected TreeViewer contentOutlineViewer; + + /** + * This is the property sheet page. + * + * @generated + */ + protected List propertySheetPages = new ArrayList(); + + /** + * This is the viewer that shadows the selection in the content outline. The parent relation must be + * correctly defined for this to work. + * + * @generated + */ + protected TreeViewer selectionViewer; + + /** + * This inverts the roll of parent and child in the content provider and show parents as a tree. + * + * @generated + */ + protected TreeViewer parentViewer; + + /** + * This shows how a tree view works. + * + * @generated + */ + protected TreeViewer treeViewer; + + /** + * This shows how a list view works. A list viewer doesn't support icons. + * + * @generated + */ + protected ListViewer listViewer; + + /** + * This shows how a table view works. A table can be used as a list with icons. + * + * + * @generated + */ + protected TableViewer tableViewer; + + /** + * This shows how a tree view with columns works. + * + * @generated + */ + protected TreeViewer treeViewerWithColumns; + + /** + * This keeps track of the active viewer pane, in the book. + * + * @generated + */ + protected ViewerPane currentViewerPane; + + /** + * This keeps track of the active content viewer, which may be either one of the viewers in the pages or + * the content outline viewer. + * + * @generated + */ + protected Viewer currentViewer; + + /** + * This listens to which ever viewer is active. + * + * @generated + */ + protected ISelectionChangedListener selectionChangedListener; + + /** + * This keeps track of all the {@link org.eclipse.jface.viewers.ISelectionChangedListener}s that are + * listening to this editor. + * + * @generated + */ + protected Collection selectionChangedListeners = new ArrayList(); + + /** + * This keeps track of the selection of the editor as a whole. + * + * @generated + */ + protected ISelection editorSelection = StructuredSelection.EMPTY; + + /** + * The MarkerHelper is responsible for creating workspace resource markers presented in Eclipse's Problems + * View. + * + * @generated + */ + protected MarkerHelper markerHelper = new EditUIMarkerHelper(); + + /** + * This listens for when the outline becomes active + * + * @generated + */ + protected IPartListener partListener = new IPartListener() { + public void partActivated(IWorkbenchPart p) { + if (p instanceof ContentOutline) { + if (((ContentOutline)p).getCurrentPage() == contentOutlinePage) { + getActionBarContributor().setActiveEditor(DartEditor.this); + + setCurrentViewer(contentOutlineViewer); + } + } else if (p instanceof PropertySheet) { + if (propertySheetPages.contains(((PropertySheet)p).getCurrentPage())) { + getActionBarContributor().setActiveEditor(DartEditor.this); + handleActivate(); + } + } else if (p == DartEditor.this) { + handleActivate(); + } + } + + public void partBroughtToTop(IWorkbenchPart p) { + // Ignore. + } + + public void partClosed(IWorkbenchPart p) { + // Ignore. + } + + public void partDeactivated(IWorkbenchPart p) { + // Ignore. + } + + public void partOpened(IWorkbenchPart p) { + // Ignore. + } + }; + + /** + * Resources that have been removed since last activation. + * + * @generated + */ + protected Collection removedResources = new ArrayList(); + + /** + * Resources that have been changed since last activation. + * + * @generated + */ + protected Collection changedResources = new ArrayList(); + + /** + * Resources that have been saved. + * + * @generated + */ + protected Collection savedResources = new ArrayList(); + + /** + * Map to store the diagnostic associated with a resource. + * + * @generated + */ + protected Map resourceToDiagnosticMap = new LinkedHashMap(); + + /** + * Controls whether the problem indication should be updated. + * + * @generated + */ + protected boolean updateProblemIndication = true; + + /** + * Adapter used to update the problem indication when resources are demanded loaded. + * + * @generated + */ + protected EContentAdapter problemIndicationAdapter = new EContentAdapter() { + @Override + public void notifyChanged(Notification notification) { + if (notification.getNotifier() instanceof Resource) { + switch (notification.getFeatureID(Resource.class)) { + case Resource.RESOURCE__IS_LOADED: + case Resource.RESOURCE__ERRORS: + case Resource.RESOURCE__WARNINGS: { + Resource resource = (Resource)notification.getNotifier(); + Diagnostic diagnostic = analyzeResourceProblems(resource, null); + if (diagnostic.getSeverity() != Diagnostic.OK) { + resourceToDiagnosticMap.put(resource, diagnostic); + } else { + resourceToDiagnosticMap.remove(resource); + } + + if (updateProblemIndication) { + getSite().getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + updateProblemIndication(); + } + }); + } + break; + } + } + } else { + super.notifyChanged(notification); + } + } + + @Override + protected void setTarget(Resource target) { + basicSetTarget(target); + } + + @Override + protected void unsetTarget(Resource target) { + basicUnsetTarget(target); + resourceToDiagnosticMap.remove(target); + if (updateProblemIndication) { + getSite().getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + updateProblemIndication(); + } + }); + } + } + }; + + /** + * This listens for workspace changes. + * + * @generated + */ + protected IResourceChangeListener resourceChangeListener = new IResourceChangeListener() { + public void resourceChanged(IResourceChangeEvent event) { + IResourceDelta delta = event.getDelta(); + try { + class ResourceDeltaVisitor implements IResourceDeltaVisitor { + protected ResourceSet resourceSet = editingDomain.getResourceSet(); + + protected Collection changedResources = new ArrayList(); + + protected Collection removedResources = new ArrayList(); + + public boolean visit(IResourceDelta delta) { + if (delta.getResource().getType() == IResource.FILE) { + if (delta.getKind() == IResourceDelta.REMOVED + || delta.getKind() == IResourceDelta.CHANGED + && delta.getFlags() != IResourceDelta.MARKERS) { + Resource resource = resourceSet.getResource(URI.createPlatformResourceURI( + delta.getFullPath().toString(), true), false); + if (resource != null) { + if (delta.getKind() == IResourceDelta.REMOVED) { + removedResources.add(resource); + } else if (!savedResources.remove(resource)) { + changedResources.add(resource); + } + } + } + return false; + } + + return true; + } + + public Collection getChangedResources() { + return changedResources; + } + + public Collection getRemovedResources() { + return removedResources; + } + } + + final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(); + delta.accept(visitor); + + if (!visitor.getRemovedResources().isEmpty()) { + getSite().getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + removedResources.addAll(visitor.getRemovedResources()); + if (!isDirty()) { + getSite().getPage().closeEditor(DartEditor.this, false); + } + } + }); + } + + if (!visitor.getChangedResources().isEmpty()) { + getSite().getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + changedResources.addAll(visitor.getChangedResources()); + if (getSite().getPage().getActiveEditor() == DartEditor.this) { + handleActivate(); + } + } + }); + } + } catch (CoreException exception) { + DartEditorPlugin.INSTANCE.log(exception); + } + } + }; + + /** + * Handles activation of the editor or it's associated views. + * + * @generated + */ + protected void handleActivate() { + // Recompute the read only state. + // + if (editingDomain.getResourceToReadOnlyMap() != null) { + editingDomain.getResourceToReadOnlyMap().clear(); + + // Refresh any actions that may become enabled or disabled. + // + setSelection(getSelection()); + } + + if (!removedResources.isEmpty()) { + if (handleDirtyConflict()) { + getSite().getPage().closeEditor(DartEditor.this, false); + } else { + removedResources.clear(); + changedResources.clear(); + savedResources.clear(); + } + } else if (!changedResources.isEmpty()) { + changedResources.removeAll(savedResources); + handleChangedResources(); + changedResources.clear(); + savedResources.clear(); + } + } + + /** + * Handles what to do with changed resources on activation. + * + * @generated + */ + protected void handleChangedResources() { + if (!changedResources.isEmpty() && (!isDirty() || handleDirtyConflict())) { + if (isDirty()) { + changedResources.addAll(editingDomain.getResourceSet().getResources()); + } + editingDomain.getCommandStack().flush(); + + updateProblemIndication = false; + for (Resource resource : changedResources) { + if (resource.isLoaded()) { + resource.unload(); + try { + resource.load(Collections.EMPTY_MAP); + } catch (IOException exception) { + if (!resourceToDiagnosticMap.containsKey(resource)) { + resourceToDiagnosticMap.put(resource, + analyzeResourceProblems(resource, exception)); + } + } + } + } + + if (AdapterFactoryEditingDomain.isStale(editorSelection)) { + setSelection(StructuredSelection.EMPTY); + } + + updateProblemIndication = true; + updateProblemIndication(); + } + } + + /** + * Updates the problems indication with the information described in the specified diagnostic. + * + * @generated + */ + protected void updateProblemIndication() { + if (updateProblemIndication) { + BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, + "org.obeonetwork.dsl.dart.editor", 0, null, + new Object[] {editingDomain.getResourceSet() }); + for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) { + if (childDiagnostic.getSeverity() != Diagnostic.OK) { + diagnostic.add(childDiagnostic); + } + } + + int lastEditorPage = getPageCount() - 1; + if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) { + ((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic); + if (diagnostic.getSeverity() != Diagnostic.OK) { + setActivePage(lastEditorPage); + } + } else if (diagnostic.getSeverity() != Diagnostic.OK) { + ProblemEditorPart problemEditorPart = new ProblemEditorPart(); + problemEditorPart.setDiagnostic(diagnostic); + problemEditorPart.setMarkerHelper(markerHelper); + try { + addPage(++lastEditorPage, problemEditorPart, getEditorInput()); + setPageText(lastEditorPage, problemEditorPart.getPartName()); + setActivePage(lastEditorPage); + showTabs(); + } catch (PartInitException exception) { + DartEditorPlugin.INSTANCE.log(exception); + } + } + + if (markerHelper.hasMarkers(editingDomain.getResourceSet())) { + markerHelper.deleteMarkers(editingDomain.getResourceSet()); + if (diagnostic.getSeverity() != Diagnostic.OK) { + try { + markerHelper.createMarkers(diagnostic); + } catch (CoreException exception) { + DartEditorPlugin.INSTANCE.log(exception); + } + } + } + } + } + + /** + * Shows a dialog that asks if conflicting changes should be discarded. + * + * @generated + */ + protected boolean handleDirtyConflict() { + return MessageDialog.openQuestion(getSite().getShell(), getString("_UI_FileConflict_label"), + getString("_WARN_FileConflict")); + } + + /** + * This creates a model editor. + * + * @generated + */ + public DartEditor() { + super(); + initializeEditingDomain(); + } + + /** + * This sets up the editing domain for the model editor. + * + * @generated + */ + protected void initializeEditingDomain() { + // Create an adapter factory that yields item providers. + // + adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE); + + adapterFactory.addAdapterFactory(new ResourceItemProviderAdapterFactory()); + adapterFactory.addAdapterFactory(new DartItemProviderAdapterFactory()); + adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory()); + + // Create the command stack that will notify this editor as commands are executed. + // + BasicCommandStack commandStack = new BasicCommandStack(); + + // Add a listener to set the most recent command's affected objects to be the selection of the viewer + // with focus. + // + commandStack.addCommandStackListener(new CommandStackListener() { + public void commandStackChanged(final EventObject event) { + getContainer().getDisplay().asyncExec(new Runnable() { + public void run() { + firePropertyChange(IEditorPart.PROP_DIRTY); + + // Try to select the affected objects. + // + Command mostRecentCommand = ((CommandStack)event.getSource()).getMostRecentCommand(); + if (mostRecentCommand != null) { + setSelectionToViewer(mostRecentCommand.getAffectedObjects()); + } + for (Iterator i = propertySheetPages.iterator(); i.hasNext();) { + PropertySheetPage propertySheetPage = i.next(); + if (propertySheetPage.getControl().isDisposed()) { + i.remove(); + } else { + propertySheetPage.refresh(); + } + } + } + }); + } + }); + + // Create the editing domain with a special command stack. + // + editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, + new HashMap()); + } + + /** + * This is here for the listener to be able to call it. + * + * @generated + */ + @Override + protected void firePropertyChange(int action) { + super.firePropertyChange(action); + } + + /** + * This sets the selection into whichever viewer is active. + * + * @generated + */ + public void setSelectionToViewer(Collection collection) { + final Collection theSelection = collection; + // Make sure it's okay. + // + if (theSelection != null && !theSelection.isEmpty()) { + Runnable runnable = new Runnable() { + public void run() { + // Try to select the items in the current content viewer of the editor. + // + if (currentViewer != null) { + currentViewer.setSelection(new StructuredSelection(theSelection.toArray()), true); + } + } + }; + getSite().getShell().getDisplay().asyncExec(runnable); + } + } + + /** + * This returns the editing domain as required by the {@link IEditingDomainProvider} interface. This is + * important for implementing the static methods of {@link AdapterFactoryEditingDomain} and for supporting + * {@link org.eclipse.emf.edit.ui.action.CommandAction}. + * + * @generated + */ + public EditingDomain getEditingDomain() { + return editingDomain; + } + + /** + * + * + * @generated + */ + public class ReverseAdapterFactoryContentProvider extends AdapterFactoryContentProvider { + /** + * + * + * @generated + */ + public ReverseAdapterFactoryContentProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * + * + * @generated + */ + @Override + public Object[] getElements(Object object) { + Object parent = super.getParent(object); + return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); + } + + /** + * + * + * @generated + */ + @Override + public Object[] getChildren(Object object) { + Object parent = super.getParent(object); + return (parent == null ? Collections.EMPTY_SET : Collections.singleton(parent)).toArray(); + } + + /** + * + * + * @generated + */ + @Override + public boolean hasChildren(Object object) { + Object parent = super.getParent(object); + return parent != null; + } + + /** + * + * + * @generated + */ + @Override + public Object getParent(Object object) { + return null; + } + } + + /** + * + * + * @generated + */ + public void setCurrentViewerPane(ViewerPane viewerPane) { + if (currentViewerPane != viewerPane) { + if (currentViewerPane != null) { + currentViewerPane.showFocus(false); + } + currentViewerPane = viewerPane; + } + setCurrentViewer(currentViewerPane.getViewer()); + } + + /** + * This makes sure that one content viewer, either for the current page or the outline view, if it has + * focus, is the current one. + * + * @generated + */ + public void setCurrentViewer(Viewer viewer) { + // If it is changing... + // + if (currentViewer != viewer) { + if (selectionChangedListener == null) { + // Create the listener on demand. + // + selectionChangedListener = new ISelectionChangedListener() { + // This just notifies those things that are affected by the section. + // + public void selectionChanged(SelectionChangedEvent selectionChangedEvent) { + setSelection(selectionChangedEvent.getSelection()); + } + }; + } + + // Stop listening to the old one. + // + if (currentViewer != null) { + currentViewer.removeSelectionChangedListener(selectionChangedListener); + } + + // Start listening to the new one. + // + if (viewer != null) { + viewer.addSelectionChangedListener(selectionChangedListener); + } + + // Remember it. + // + currentViewer = viewer; + + // Set the editors selection based on the current viewer's selection. + // + setSelection(currentViewer == null ? StructuredSelection.EMPTY : currentViewer.getSelection()); + } + } + + /** + * This returns the viewer as required by the {@link IViewerProvider} interface. + * + * + * @generated + */ + public Viewer getViewer() { + return currentViewer; + } + + /** + * This creates a context menu for the viewer and adds a listener as well registering the menu for + * extension. + * + * @generated + */ + protected void createContextMenuFor(StructuredViewer viewer) { + MenuManager contextMenu = new MenuManager("#PopUp"); + contextMenu.add(new Separator("additions")); + contextMenu.setRemoveAllWhenShown(true); + contextMenu.addMenuListener(this); + Menu menu = contextMenu.createContextMenu(viewer.getControl()); + viewer.getControl().setMenu(menu); + getSite().registerContextMenu(contextMenu, new UnwrappingSelectionProvider(viewer)); + + int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK; + Transfer[] transfers = new Transfer[] {LocalTransfer.getInstance(), + LocalSelectionTransfer.getTransfer(), FileTransfer.getInstance() }; + viewer.addDragSupport(dndOperations, transfers, new ViewerDragAdapter(viewer)); + viewer.addDropSupport(dndOperations, transfers, new EditingDomainViewerDropAdapter(editingDomain, + viewer)); + } + + /** + * This is the method called to load a resource into the editing domain's resource set based on the + * editor's input. + * + * @generated + */ + public void createModel() { + URI resourceURI = EditUIUtil.getURI(getEditorInput()); + Exception exception = null; + Resource resource = null; + try { + // Load the resource through the editing domain. + // + resource = editingDomain.getResourceSet().getResource(resourceURI, true); + } catch (Exception e) { + exception = e; + resource = editingDomain.getResourceSet().getResource(resourceURI, false); + } + + Diagnostic diagnostic = analyzeResourceProblems(resource, exception); + if (diagnostic.getSeverity() != Diagnostic.OK) { + resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception)); + } + editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter); + } + + /** + * Returns a diagnostic describing the errors and warnings listed in the resource and the specified + * exception (if any). + * + * @generated + */ + public Diagnostic analyzeResourceProblems(Resource resource, Exception exception) { + if (!resource.getErrors().isEmpty() || !resource.getWarnings().isEmpty()) { + BasicDiagnostic basicDiagnostic = new BasicDiagnostic(Diagnostic.ERROR, + "org.obeonetwork.dsl.dart.editor", 0, getString("_UI_CreateModelError_message", resource + .getURI()), new Object[] {exception == null ? (Object)resource : exception }); + basicDiagnostic.merge(EcoreUtil.computeDiagnostic(resource, true)); + return basicDiagnostic; + } else if (exception != null) { + return new BasicDiagnostic(Diagnostic.ERROR, "org.obeonetwork.dsl.dart.editor", 0, getString( + "_UI_CreateModelError_message", resource.getURI()), new Object[] {exception }); + } else { + return Diagnostic.OK_INSTANCE; + } + } + + /** + * This is the method used by the framework to install your own controls. + * + * @generated + */ + @Override + public void createPages() { + // Creates the model from the editor input + // + createModel(); + + // Only creates the other pages if there is something that can be edited + // + if (!getEditingDomain().getResourceSet().getResources().isEmpty()) { + // Create a page for the selection tree view. + // + { + ViewerPane viewerPane = new ViewerPane(getSite().getPage(), DartEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + Tree tree = new Tree(composite, SWT.MULTI); + TreeViewer newTreeViewer = new TreeViewer(tree); + return newTreeViewer; + } + + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + + selectionViewer = (TreeViewer)viewerPane.getViewer(); + selectionViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + + selectionViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + selectionViewer.setInput(editingDomain.getResourceSet()); + selectionViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet() + .getResources().get(0)), true); + viewerPane.setTitle(editingDomain.getResourceSet()); + + new AdapterFactoryTreeEditor(selectionViewer.getTree(), adapterFactory); + + createContextMenuFor(selectionViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_SelectionPage_label")); + } + + // Create a page for the parent tree view. + // + { + ViewerPane viewerPane = new ViewerPane(getSite().getPage(), DartEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + Tree tree = new Tree(composite, SWT.MULTI); + TreeViewer newTreeViewer = new TreeViewer(tree); + return newTreeViewer; + } + + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + + parentViewer = (TreeViewer)viewerPane.getViewer(); + parentViewer.setAutoExpandLevel(30); + parentViewer.setContentProvider(new ReverseAdapterFactoryContentProvider(adapterFactory)); + parentViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(parentViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_ParentPage_label")); + } + + // This is the page for the list viewer + // + { + ViewerPane viewerPane = new ViewerPane(getSite().getPage(), DartEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new ListViewer(composite); + } + + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + listViewer = (ListViewer)viewerPane.getViewer(); + listViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + listViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(listViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_ListPage_label")); + } + + // This is the page for the tree viewer + // + { + ViewerPane viewerPane = new ViewerPane(getSite().getPage(), DartEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new TreeViewer(composite); + } + + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + treeViewer = (TreeViewer)viewerPane.getViewer(); + treeViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + treeViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + new AdapterFactoryTreeEditor(treeViewer.getTree(), adapterFactory); + + createContextMenuFor(treeViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_TreePage_label")); + } + + // This is the page for the table viewer. + // + { + ViewerPane viewerPane = new ViewerPane(getSite().getPage(), DartEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new TableViewer(composite); + } + + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + tableViewer = (TableViewer)viewerPane.getViewer(); + + Table table = tableViewer.getTable(); + TableLayout layout = new TableLayout(); + table.setLayout(layout); + table.setHeaderVisible(true); + table.setLinesVisible(true); + + TableColumn objectColumn = new TableColumn(table, SWT.NONE); + layout.addColumnData(new ColumnWeightData(3, 100, true)); + objectColumn.setText(getString("_UI_ObjectColumn_label")); + objectColumn.setResizable(true); + + TableColumn selfColumn = new TableColumn(table, SWT.NONE); + layout.addColumnData(new ColumnWeightData(2, 100, true)); + selfColumn.setText(getString("_UI_SelfColumn_label")); + selfColumn.setResizable(true); + + tableViewer.setColumnProperties(new String[] {"a", "b" }); + tableViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + tableViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(tableViewer); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_TablePage_label")); + } + + // This is the page for the table tree viewer. + // + { + ViewerPane viewerPane = new ViewerPane(getSite().getPage(), DartEditor.this) { + @Override + public Viewer createViewer(Composite composite) { + return new TreeViewer(composite); + } + + @Override + public void requestActivation() { + super.requestActivation(); + setCurrentViewerPane(this); + } + }; + viewerPane.createControl(getContainer()); + + treeViewerWithColumns = (TreeViewer)viewerPane.getViewer(); + + Tree tree = treeViewerWithColumns.getTree(); + tree.setLayoutData(new FillLayout()); + tree.setHeaderVisible(true); + tree.setLinesVisible(true); + + TreeColumn objectColumn = new TreeColumn(tree, SWT.NONE); + objectColumn.setText(getString("_UI_ObjectColumn_label")); + objectColumn.setResizable(true); + objectColumn.setWidth(250); + + TreeColumn selfColumn = new TreeColumn(tree, SWT.NONE); + selfColumn.setText(getString("_UI_SelfColumn_label")); + selfColumn.setResizable(true); + selfColumn.setWidth(200); + + treeViewerWithColumns.setColumnProperties(new String[] {"a", "b" }); + treeViewerWithColumns.setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + treeViewerWithColumns.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + + createContextMenuFor(treeViewerWithColumns); + int pageIndex = addPage(viewerPane.getControl()); + setPageText(pageIndex, getString("_UI_TreeWithColumnsPage_label")); + } + + getSite().getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + setActivePage(0); + } + }); + } + + // Ensures that this editor will only display the page's tab + // area if there are more than one page + // + getContainer().addControlListener(new ControlAdapter() { + boolean guard = false; + + @Override + public void controlResized(ControlEvent event) { + if (!guard) { + guard = true; + hideTabs(); + guard = false; + } + } + }); + + getSite().getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + updateProblemIndication(); + } + }); + } + + /** + * If there is just one page in the multi-page editor part, this hides the single tab at the bottom. + * + * @generated + */ + protected void hideTabs() { + if (getPageCount() <= 1) { + setPageText(0, ""); + if (getContainer() instanceof CTabFolder) { + ((CTabFolder)getContainer()).setTabHeight(1); + Point point = getContainer().getSize(); + getContainer().setSize(point.x, point.y + 6); + } + } + } + + /** + * If there is more than one page in the multi-page editor part, this shows the tabs at the bottom. + * + * @generated + */ + protected void showTabs() { + if (getPageCount() > 1) { + setPageText(0, getString("_UI_SelectionPage_label")); + if (getContainer() instanceof CTabFolder) { + ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT); + Point point = getContainer().getSize(); + getContainer().setSize(point.x, point.y - 6); + } + } + } + + /** + * This is used to track the active viewer. + * + * @generated + */ + @Override + protected void pageChange(int pageIndex) { + super.pageChange(pageIndex); + + if (contentOutlinePage != null) { + handleContentOutlineSelection(contentOutlinePage.getSelection()); + } + } + + /** + * This is how the framework determines which interfaces we implement. + * + * @generated + */ + @SuppressWarnings("rawtypes") + @Override + public Object getAdapter(Class key) { + if (key.equals(IContentOutlinePage.class)) { + return showOutlineView() ? getContentOutlinePage() : null; + } else if (key.equals(IPropertySheetPage.class)) { + return getPropertySheetPage(); + } else if (key.equals(IGotoMarker.class)) { + return this; + } else { + return super.getAdapter(key); + } + } + + /** + * This accesses a cached version of the content outliner. + * + * @generated + */ + public IContentOutlinePage getContentOutlinePage() { + if (contentOutlinePage == null) { + // The content outline is just a tree. + // + class MyContentOutlinePage extends ContentOutlinePage { + @Override + public void createControl(Composite parent) { + super.createControl(parent); + contentOutlineViewer = getTreeViewer(); + contentOutlineViewer.addSelectionChangedListener(this); + + // Set up the tree viewer. + // + contentOutlineViewer + .setContentProvider(new AdapterFactoryContentProvider(adapterFactory)); + contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory)); + contentOutlineViewer.setInput(editingDomain.getResourceSet()); + + // Make sure our popups work. + // + createContextMenuFor(contentOutlineViewer); + + if (!editingDomain.getResourceSet().getResources().isEmpty()) { + // Select the root object in the view. + // + contentOutlineViewer.setSelection(new StructuredSelection(editingDomain + .getResourceSet().getResources().get(0)), true); + } + } + + @Override + public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, + IStatusLineManager statusLineManager) { + super.makeContributions(menuManager, toolBarManager, statusLineManager); + contentOutlineStatusLineManager = statusLineManager; + } + + @Override + public void setActionBars(IActionBars actionBars) { + super.setActionBars(actionBars); + getActionBarContributor().shareGlobalActions(this, actionBars); + } + } + + contentOutlinePage = new MyContentOutlinePage(); + + // Listen to selection so that we can handle it is a special way. + // + contentOutlinePage.addSelectionChangedListener(new ISelectionChangedListener() { + // This ensures that we handle selections correctly. + // + public void selectionChanged(SelectionChangedEvent event) { + handleContentOutlineSelection(event.getSelection()); + } + }); + } + + return contentOutlinePage; + } + + /** + * This accesses a cached version of the property sheet. + * + * @generated + */ + public IPropertySheetPage getPropertySheetPage() { + PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage(editingDomain) { + @Override + public void setSelectionToViewer(List selection) { + DartEditor.this.setSelectionToViewer(selection); + DartEditor.this.setFocus(); + } + + @Override + public void setActionBars(IActionBars actionBars) { + super.setActionBars(actionBars); + getActionBarContributor().shareGlobalActions(this, actionBars); + } + }; + propertySheetPage.setPropertySourceProvider(new AdapterFactoryContentProvider(adapterFactory)); + propertySheetPages.add(propertySheetPage); + + return propertySheetPage; + } + + /** + * This deals with how we want selection in the outliner to affect the other views. + * + * @generated + */ + public void handleContentOutlineSelection(ISelection selection) { + if (currentViewerPane != null && !selection.isEmpty() && selection instanceof IStructuredSelection) { + Iterator selectedElements = ((IStructuredSelection)selection).iterator(); + if (selectedElements.hasNext()) { + // Get the first selected element. + // + Object selectedElement = selectedElements.next(); + + // If it's the selection viewer, then we want it to select the same selection as this + // selection. + // + if (currentViewerPane.getViewer() == selectionViewer) { + ArrayList selectionList = new ArrayList(); + selectionList.add(selectedElement); + while (selectedElements.hasNext()) { + selectionList.add(selectedElements.next()); + } + + // Set the selection to the widget. + // + selectionViewer.setSelection(new StructuredSelection(selectionList)); + } else { + // Set the input to the widget. + // + if (currentViewerPane.getViewer().getInput() != selectedElement) { + currentViewerPane.getViewer().setInput(selectedElement); + currentViewerPane.setTitle(selectedElement); + } + } + } + } + } + + /** + * This is for implementing {@link IEditorPart} and simply tests the command stack. + * + * @generated + */ + @Override + public boolean isDirty() { + return ((BasicCommandStack)editingDomain.getCommandStack()).isSaveNeeded(); + } + + /** + * This is for implementing {@link IEditorPart} and simply saves the model file. + * + * + * @generated + */ + @Override + public void doSave(IProgressMonitor progressMonitor) { + // Save only resources that have actually changed. + // + final Map saveOptions = new HashMap(); + saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, + Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); + saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); + + // Do the work within an operation because this is a long running activity that modifies the + // workbench. + // + WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { + // This is the method that gets invoked when the operation runs. + // + @Override + public void execute(IProgressMonitor monitor) { + // Save the resources to the file system. + // + boolean first = true; + for (Resource resource : editingDomain.getResourceSet().getResources()) { + if ((first || !resource.getContents().isEmpty() || isPersisted(resource)) + && !editingDomain.isReadOnly(resource)) { + try { + long timeStamp = resource.getTimeStamp(); + resource.save(saveOptions); + if (resource.getTimeStamp() != timeStamp) { + savedResources.add(resource); + } + } catch (Exception exception) { + resourceToDiagnosticMap.put(resource, + analyzeResourceProblems(resource, exception)); + } + first = false; + } + } + } + }; + + updateProblemIndication = false; + try { + // This runs the options, and shows progress. + // + new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation); + + // Refresh the necessary state. + // + ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone(); + firePropertyChange(IEditorPart.PROP_DIRTY); + } catch (Exception exception) { + // Something went wrong that shouldn't. + // + DartEditorPlugin.INSTANCE.log(exception); + } + updateProblemIndication = true; + updateProblemIndication(); + } + + /** + * This returns whether something has been persisted to the URI of the specified resource. The + * implementation uses the URI converter from the editor's resource set to try to open an input stream. + * + * + * @generated + */ + protected boolean isPersisted(Resource resource) { + boolean result = false; + try { + InputStream stream = editingDomain.getResourceSet().getURIConverter().createInputStream( + resource.getURI()); + if (stream != null) { + result = true; + stream.close(); + } + } catch (IOException e) { + // Ignore + } + return result; + } + + /** + * This always returns true because it is not currently supported. + * + * @generated + */ + @Override + public boolean isSaveAsAllowed() { + return true; + } + + /** + * This also changes the editor's input. + * + * @generated + */ + @Override + public void doSaveAs() { + SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell()); + saveAsDialog.open(); + IPath path = saveAsDialog.getResult(); + if (path != null) { + IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); + if (file != null) { + doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), + new FileEditorInput(file)); + } + } + } + + /** + * + * + * @generated + */ + protected void doSaveAs(URI uri, IEditorInput editorInput) { + (editingDomain.getResourceSet().getResources().get(0)).setURI(uri); + setInputWithNotify(editorInput); + setPartName(editorInput.getName()); + IProgressMonitor progressMonitor = getActionBars().getStatusLineManager() != null ? getActionBars() + .getStatusLineManager().getProgressMonitor() : new NullProgressMonitor(); + doSave(progressMonitor); + } + + /** + * + * + * @generated + */ + public void gotoMarker(IMarker marker) { + List targetObjects = markerHelper.getTargetObjects(editingDomain, marker); + if (!targetObjects.isEmpty()) { + setSelectionToViewer(targetObjects); + } + } + + /** + * This is called during startup. + * + * @generated + */ + @Override + public void init(IEditorSite site, IEditorInput editorInput) { + setSite(site); + setInputWithNotify(editorInput); + setPartName(editorInput.getName()); + site.setSelectionProvider(this); + site.getPage().addPartListener(partListener); + ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, + IResourceChangeEvent.POST_CHANGE); + } + + /** + * + * + * @generated + */ + @Override + public void setFocus() { + if (currentViewerPane != null) { + currentViewerPane.setFocus(); + } else { + getControl(getActivePage()).setFocus(); + } + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. + * + * @generated + */ + public void addSelectionChangedListener(ISelectionChangedListener listener) { + selectionChangedListeners.add(listener); + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider}. + * + * @generated + */ + public void removeSelectionChangedListener(ISelectionChangedListener listener) { + selectionChangedListeners.remove(listener); + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall + * selection. + * + * @generated + */ + public ISelection getSelection() { + return editorSelection; + } + + /** + * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall + * selection. Calling this result will notify the listeners. + * + * @generated + */ + public void setSelection(ISelection selection) { + editorSelection = selection; + + for (ISelectionChangedListener listener : selectionChangedListeners) { + listener.selectionChanged(new SelectionChangedEvent(this, selection)); + } + setStatusLineManager(selection); + } + + /** + * + * + * @generated + */ + public void setStatusLineManager(ISelection selection) { + IStatusLineManager statusLineManager = currentViewer != null && currentViewer == contentOutlineViewer ? contentOutlineStatusLineManager + : getActionBars().getStatusLineManager(); + + if (statusLineManager != null) { + if (selection instanceof IStructuredSelection) { + Collection collection = ((IStructuredSelection)selection).toList(); + switch (collection.size()) { + case 0: { + statusLineManager.setMessage(getString("_UI_NoObjectSelected")); + break; + } + case 1: { + String text = new AdapterFactoryItemDelegator(adapterFactory).getText(collection + .iterator().next()); + statusLineManager.setMessage(getString("_UI_SingleObjectSelected", text)); + break; + } + default: { + statusLineManager.setMessage(getString("_UI_MultiObjectSelected", Integer + .toString(collection.size()))); + break; + } + } + } else { + statusLineManager.setMessage(""); + } + } + } + + /** + * This looks up a string in the plugin's plugin.properties file. + * + * @generated + */ + private static String getString(String key) { + return DartEditorPlugin.INSTANCE.getString(key); + } + + /** + * This looks up a string in plugin.properties, making a substitution. + * + * @generated + */ + private static String getString(String key, Object s1) { + return DartEditorPlugin.INSTANCE.getString(key, new Object[] {s1 }); + } + + /** + * This implements {@link org.eclipse.jface.action.IMenuListener} to help fill the context menus with + * contributions from the Edit menu. + * + * @generated + */ + public void menuAboutToShow(IMenuManager menuManager) { + ((IMenuListener)getEditorSite().getActionBarContributor()).menuAboutToShow(menuManager); + } + + /** + * + * + * @generated + */ + public EditingDomainActionBarContributor getActionBarContributor() { + return (EditingDomainActionBarContributor)getEditorSite().getActionBarContributor(); + } + + /** + * + * + * @generated + */ + public IActionBars getActionBars() { + return getActionBarContributor().getActionBars(); + } + + /** + * + * + * @generated + */ + public AdapterFactory getAdapterFactory() { + return adapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public void dispose() { + updateProblemIndication = false; + + ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener); + + getSite().getPage().removePartListener(partListener); + + adapterFactory.dispose(); + + if (getActionBarContributor().getActiveEditor() == this) { + getActionBarContributor().setActiveEditor(null); + } + + for (PropertySheetPage propertySheetPage : propertySheetPages) { + propertySheetPage.dispose(); + } + + if (contentOutlinePage != null) { + contentOutlinePage.dispose(); + } + + super.dispose(); + } + + /** + * Returns whether the outline view should be presented to the user. + * + * @generated + */ + protected boolean showOutlineView() { + return true; + } +} diff --git a/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartEditorPlugin.java b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartEditorPlugin.java new file mode 100644 index 0000000..c718908 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartEditorPlugin.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.editor.internal.presentation; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.ui.EclipseUIPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the Dart editor plugin. + * + * @generated + */ +public final class DartEditorPlugin extends EMFPlugin { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Keep track of the singleton. + * + * @generated + */ + public static final DartEditorPlugin INSTANCE = new DartEditorPlugin(); + + /** + * Keep track of the singleton. + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * @generated + */ + public DartEditorPlugin() { + super(new ResourceLocator[] {}); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * @generated + */ + public static class Implementation extends EclipseUIPlugin { + /** + * Creates an instance. + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartModelWizard.java b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartModelWizard.java new file mode 100644 index 0000000..9630982 --- /dev/null +++ b/org.obeonetwork.dsl.dart.editor/src-gen/org/obeonetwork/dsl/dart/editor/internal/presentation/DartModelWizard.java @@ -0,0 +1,601 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.editor.internal.presentation; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.MissingResourceException; +import java.util.StringTokenizer; + +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.core.resources.IResource; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.Path; +import org.eclipse.emf.common.CommonPlugin; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EClassifier; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.ecore.resource.ResourceSet; +import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; +import org.eclipse.emf.ecore.xmi.XMLResource; +import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.jface.wizard.WizardPage; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.ModifyEvent; +import org.eclipse.swt.events.ModifyListener; +import org.eclipse.swt.layout.GridData; +import org.eclipse.swt.layout.GridLayout; +import org.eclipse.swt.widgets.Combo; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; +import org.eclipse.ui.INewWizard; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchPart; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PartInitException; +import org.eclipse.ui.actions.WorkspaceModifyOperation; +import org.eclipse.ui.dialogs.WizardNewFileCreationPage; +import org.eclipse.ui.part.FileEditorInput; +import org.eclipse.ui.part.ISetSelectionTarget; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.edit.internal.provider.DartEditPlugin; + +/** + * This is a simple wizard for creating a new model file. + * + * @generated + */ +public class DartModelWizard extends Wizard implements INewWizard { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The supported extensions for created files. + * + * @generated + */ + public static final List FILE_EXTENSIONS = Collections.unmodifiableList(Arrays + .asList(DartEditorPlugin.INSTANCE.getString("_UI_DartEditorFilenameExtensions") + .split("\\s*,\\s*"))); + + /** + * A formatted list of supported file extensions, suitable for display. + * + * @generated + */ + public static final String FORMATTED_FILE_EXTENSIONS = DartEditorPlugin.INSTANCE.getString( + "_UI_DartEditorFilenameExtensions").replaceAll("\\s*,\\s*", ", "); + + /** + * This caches an instance of the model package. + * + * @generated + */ + protected DartPackage dartPackage = DartPackage.eINSTANCE; + + /** + * This caches an instance of the model factory. + * + * @generated + */ + protected DartFactory dartFactory = dartPackage.getDartFactory(); + + /** + * This is the file creation page. + * + * @generated + */ + protected DartModelWizardNewFileCreationPage newFileCreationPage; + + /** + * This is the initial object creation page. + * + * @generated + */ + protected DartModelWizardInitialObjectCreationPage initialObjectCreationPage; + + /** + * Remember the selection during initialization for populating the default container. + * + * @generated + */ + protected IStructuredSelection selection; + + /** + * Remember the workbench during initialization. + * + * @generated + */ + protected IWorkbench workbench; + + /** + * Caches the names of the types that can be created as the root object. + * + * @generated + */ + protected List initialObjectNames; + + /** + * This just records the information. + * + * @generated not + */ + public void init(IWorkbench workbench, IStructuredSelection selection) { + this.workbench = workbench; + this.selection = selection; + setWindowTitle(DartEditorPlugin.INSTANCE.getString("_UI_Wizard_label")); + setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE + .getImageDescriptor(DartEditorPlugin.INSTANCE.getImage("full/wizban/DartSpecification.png"))); + } + + /** + * Returns the names of the types that can be created as the root object. + * + * @generated + */ + protected Collection getInitialObjectNames() { + if (initialObjectNames == null) { + initialObjectNames = new ArrayList(); + for (EClassifier eClassifier : dartPackage.getEClassifiers()) { + if (eClassifier instanceof EClass) { + EClass eClass = (EClass)eClassifier; + if (!eClass.isAbstract()) { + initialObjectNames.add(eClass.getName()); + } + } + } + Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator()); + } + return initialObjectNames; + } + + /** + * Create a new model. + * + * @generated + */ + protected EObject createInitialModel() { + EClass eClass = (EClass)dartPackage.getEClassifier(initialObjectCreationPage.getInitialObjectName()); + EObject rootObject = dartFactory.create(eClass); + return rootObject; + } + + /** + * Do the work after everything is specified. + * + * @generated + */ + @Override + public boolean performFinish() { + try { + // Remember the file. + // + final IFile modelFile = getModelFile(); + + // Do the work within an operation. + // + WorkspaceModifyOperation operation = new WorkspaceModifyOperation() { + @Override + protected void execute(IProgressMonitor progressMonitor) { + try { + // Create a resource set + // + ResourceSet resourceSet = new ResourceSetImpl(); + + // Get the URI of the model file. + // + URI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true); + + // Create a resource for this file. + // + Resource resource = resourceSet.createResource(fileURI); + + // Add the initial model object to the contents. + // + EObject rootObject = createInitialModel(); + if (rootObject != null) { + resource.getContents().add(rootObject); + } + + // Save the contents of the resource to the file system. + // + Map options = new HashMap(); + options.put(XMLResource.OPTION_ENCODING, initialObjectCreationPage.getEncoding()); + resource.save(options); + } catch (Exception exception) { + DartEditorPlugin.INSTANCE.log(exception); + } finally { + progressMonitor.done(); + } + } + }; + + getContainer().run(false, false, operation); + + // Select the new file resource in the current view. + // + IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow(); + IWorkbenchPage page = workbenchWindow.getActivePage(); + final IWorkbenchPart activePart = page.getActivePart(); + if (activePart instanceof ISetSelectionTarget) { + final ISelection targetSelection = new StructuredSelection(modelFile); + getShell().getDisplay().asyncExec(new Runnable() { + public void run() { + ((ISetSelectionTarget)activePart).selectReveal(targetSelection); + } + }); + } + + // Open an editor on the new file. + // + try { + page.openEditor(new FileEditorInput(modelFile), workbench.getEditorRegistry() + .getDefaultEditor(modelFile.getFullPath().toString()).getId()); + } catch (PartInitException exception) { + MessageDialog.openError(workbenchWindow.getShell(), DartEditorPlugin.INSTANCE + .getString("_UI_OpenEditorError_label"), exception.getMessage()); + return false; + } + + return true; + } catch (Exception exception) { + DartEditorPlugin.INSTANCE.log(exception); + return false; + } + } + + /** + * This is the one page of the wizard. + * + * @generated + */ + public class DartModelWizardNewFileCreationPage extends WizardNewFileCreationPage { + /** + * Pass in the selection. + * + * @generated + */ + public DartModelWizardNewFileCreationPage(String pageId, IStructuredSelection selection) { + super(pageId, selection); + } + + /** + * The framework calls this to see if the file is correct. + * + * @generated + */ + @Override + protected boolean validatePage() { + if (super.validatePage()) { + String extension = new Path(getFileName()).getFileExtension(); + if (extension == null || !FILE_EXTENSIONS.contains(extension)) { + String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" + : "_WARN_FilenameExtension"; + setErrorMessage(DartEditorPlugin.INSTANCE.getString(key, + new Object[] {FORMATTED_FILE_EXTENSIONS })); + return false; + } + return true; + } + return false; + } + + /** + * + * + * @generated + */ + public IFile getModelFile() { + return ResourcesPlugin.getWorkspace().getRoot().getFile( + getContainerFullPath().append(getFileName())); + } + } + + /** + * This is the page where the type of object to create is selected. + * + * @generated + */ + public class DartModelWizardInitialObjectCreationPage extends WizardPage { + /** + * + * + * @generated + */ + protected Combo initialObjectField; + + /** + * @generated + */ + protected List encodings; + + /** + * + * + * @generated + */ + protected Combo encodingField; + + /** + * Pass in the selection. + * + * @generated + */ + public DartModelWizardInitialObjectCreationPage(String pageId) { + super(pageId); + } + + /** + * + * + * @generated + */ + public void createControl(Composite parent) { + Composite composite = new Composite(parent, SWT.NONE); + { + GridLayout layout = new GridLayout(); + layout.numColumns = 1; + layout.verticalSpacing = 12; + composite.setLayout(layout); + + GridData data = new GridData(); + data.verticalAlignment = GridData.FILL; + data.grabExcessVerticalSpace = true; + data.horizontalAlignment = GridData.FILL; + composite.setLayoutData(data); + } + + Label containerLabel = new Label(composite, SWT.LEFT); + { + containerLabel.setText(DartEditorPlugin.INSTANCE.getString("_UI_ModelObject")); + + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + containerLabel.setLayoutData(data); + } + + initialObjectField = new Combo(composite, SWT.BORDER); + { + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + data.grabExcessHorizontalSpace = true; + initialObjectField.setLayoutData(data); + } + + for (String objectName : getInitialObjectNames()) { + initialObjectField.add(getLabel(objectName)); + } + + if (initialObjectField.getItemCount() == 1) { + initialObjectField.select(0); + } + initialObjectField.addModifyListener(validator); + + Label encodingLabel = new Label(composite, SWT.LEFT); + { + encodingLabel.setText(DartEditorPlugin.INSTANCE.getString("_UI_XMLEncoding")); + + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + encodingLabel.setLayoutData(data); + } + encodingField = new Combo(composite, SWT.BORDER); + { + GridData data = new GridData(); + data.horizontalAlignment = GridData.FILL; + data.grabExcessHorizontalSpace = true; + encodingField.setLayoutData(data); + } + + for (String encoding : getEncodings()) { + encodingField.add(encoding); + } + + encodingField.select(0); + encodingField.addModifyListener(validator); + + setPageComplete(validatePage()); + setControl(composite); + } + + /** + * + * + * @generated + */ + protected ModifyListener validator = new ModifyListener() { + public void modifyText(ModifyEvent e) { + setPageComplete(validatePage()); + } + }; + + /** + * + * + * @generated + */ + protected boolean validatePage() { + return getInitialObjectName() != null && getEncodings().contains(encodingField.getText()); + } + + /** + * + * + * @generated + */ + @Override + public void setVisible(boolean visible) { + super.setVisible(visible); + if (visible) { + if (initialObjectField.getItemCount() == 1) { + initialObjectField.clearSelection(); + encodingField.setFocus(); + } else { + encodingField.clearSelection(); + initialObjectField.setFocus(); + } + } + } + + /** + * + * + * @generated + */ + public String getInitialObjectName() { + String label = initialObjectField.getText(); + + for (String name : getInitialObjectNames()) { + if (getLabel(name).equals(label)) { + return name; + } + } + return null; + } + + /** + * + * + * @generated + */ + public String getEncoding() { + return encodingField.getText(); + } + + /** + * Returns the label for the specified type name. + * + * @generated + */ + protected String getLabel(String typeName) { + try { + return DartEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); + } catch (MissingResourceException mre) { + DartEditorPlugin.INSTANCE.log(mre); + } + return typeName; + } + + /** + * + * + * @generated + */ + protected Collection getEncodings() { + if (encodings == null) { + encodings = new ArrayList(); + for (StringTokenizer stringTokenizer = new StringTokenizer(DartEditorPlugin.INSTANCE + .getString("_UI_XMLEncodingChoices")); stringTokenizer.hasMoreTokens();) { + encodings.add(stringTokenizer.nextToken()); + } + } + return encodings; + } + } + + /** + * The framework calls this to create the contents of the wizard. + * + * @generated + */ + @Override + public void addPages() { + // Create a page, set the title, and the initial model file name. + // + newFileCreationPage = new DartModelWizardNewFileCreationPage("Whatever", selection); + newFileCreationPage.setTitle(DartEditorPlugin.INSTANCE.getString("_UI_DartModelWizard_label")); + newFileCreationPage.setDescription(DartEditorPlugin.INSTANCE + .getString("_UI_DartModelWizard_description")); + newFileCreationPage.setFileName(DartEditorPlugin.INSTANCE + .getString("_UI_DartEditorFilenameDefaultBase") + + "." + FILE_EXTENSIONS.get(0)); + addPage(newFileCreationPage); + + // Try and get the resource selection to determine a current directory for the file dialog. + // + if (selection != null && !selection.isEmpty()) { + // Get the resource... + // + Object selectedElement = selection.iterator().next(); + if (selectedElement instanceof IResource) { + // Get the resource parent, if its a file. + // + IResource selectedResource = (IResource)selectedElement; + if (selectedResource.getType() == IResource.FILE) { + selectedResource = selectedResource.getParent(); + } + + // This gives us a directory... + // + if (selectedResource instanceof IFolder || selectedResource instanceof IProject) { + // Set this for the container. + // + newFileCreationPage.setContainerFullPath(selectedResource.getFullPath()); + + // Make up a unique new name here. + // + String defaultModelBaseFilename = DartEditorPlugin.INSTANCE + .getString("_UI_DartEditorFilenameDefaultBase"); + String defaultModelFilenameExtension = FILE_EXTENSIONS.get(0); + String modelFilename = defaultModelBaseFilename + "." + defaultModelFilenameExtension; + for (int i = 1; ((IContainer)selectedResource).findMember(modelFilename) != null; ++i) { + modelFilename = defaultModelBaseFilename + i + "." + defaultModelFilenameExtension; + } + newFileCreationPage.setFileName(modelFilename); + } + } + } + initialObjectCreationPage = new DartModelWizardInitialObjectCreationPage("Whatever2"); + initialObjectCreationPage.setTitle(DartEditorPlugin.INSTANCE.getString("_UI_DartModelWizard_label")); + initialObjectCreationPage.setDescription(DartEditorPlugin.INSTANCE + .getString("_UI_Wizard_initial_object_description")); + addPage(initialObjectCreationPage); + } + + /** + * Get the file from the page. + * + * @generated + */ + public IFile getModelFile() { + return newFileCreationPage.getModelFile(); + } + +} diff --git a/org.obeonetwork.dsl.dart/.checkstyle b/org.obeonetwork.dsl.dart/.checkstyle new file mode 100644 index 0000000..10403f1 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.checkstyle @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart/.classpath b/org.obeonetwork.dsl.dart/.classpath new file mode 100644 index 0000000..42271a8 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart/.gitignore b/org.obeonetwork.dsl.dart/.gitignore new file mode 100644 index 0000000..5e56e04 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.gitignore @@ -0,0 +1 @@ +/bin diff --git a/org.obeonetwork.dsl.dart/.project b/org.obeonetwork.dsl.dart/.project new file mode 100644 index 0000000..4dd3b35 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.project @@ -0,0 +1,34 @@ + + + org.obeonetwork.dsl.dart + + + + + + org.eclipse.jdt.core.javabuilder + + + + + net.sf.eclipsecs.core.CheckstyleBuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + net.sf.eclipsecs.core.CheckstyleNature + org.eclipse.pde.PluginNature + + diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.core.resources.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.core.runtime.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 0000000..5a0ad22 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.core.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..97d2432 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,405 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.cleanOutputFolder=clean +org.eclipse.jdt.core.builder.duplicateResourceTask=warning +org.eclipse.jdt.core.builder.invalidClasspath=abort +org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore +org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch +org.eclipse.jdt.core.circularClasspath=error +org.eclipse.jdt.core.classpath.exclusionPatterns=enabled +org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled +org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=error +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.doc.comment.support=enabled +org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=error +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=error +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=enabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning +org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=error +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=error +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=error +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=error +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=error +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=1 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=110 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indentation.size=8 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=110 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=tab +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=false +org.eclipse.jdt.core.incompatibleJDKLevel=ignore +org.eclipse.jdt.core.incompleteClasspath=error diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.launching.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.launching.prefs new file mode 100644 index 0000000..d211d32 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.launching.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.ui.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..73b5091 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,62 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Dart Designer +formatter_settings_version=12 +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=com;java;javax;org;\#org.junit; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=false +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=false +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=true +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=true +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.pde.api.tools.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000..fdcba94 --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,97 @@ +ANNOTATION_ELEMENT_TYPE_ADDED_METHOD_WITHOUT_DEFAULT_VALUE=Error +ANNOTATION_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_FIELD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_METHOD=Error +ANNOTATION_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_API_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_REEXPORTED_TYPE=Error +API_COMPONENT_ELEMENT_TYPE_REMOVED_TYPE=Error +API_USE_SCAN_FIELD_SEVERITY=Error +API_USE_SCAN_METHOD_SEVERITY=Error +API_USE_SCAN_TYPE_SEVERITY=Error +CLASS_ELEMENT_TYPE_ADDED_METHOD=Error +CLASS_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +CLASS_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CLASS_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +CLASS_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +CLASS_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +CLASS_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +CLASS_ELEMENT_TYPE_REMOVED_CONSTRUCTOR=Error +CLASS_ELEMENT_TYPE_REMOVED_FIELD=Error +CLASS_ELEMENT_TYPE_REMOVED_METHOD=Error +CLASS_ELEMENT_TYPE_REMOVED_SUPERCLASS=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +CLASS_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +CONSTRUCTOR_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +CONSTRUCTOR_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +ENUM_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +ENUM_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +ENUM_ELEMENT_TYPE_REMOVED_ENUM_CONSTANT=Error +ENUM_ELEMENT_TYPE_REMOVED_FIELD=Error +ENUM_ELEMENT_TYPE_REMOVED_METHOD=Error +ENUM_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +FIELD_ELEMENT_TYPE_ADDED_VALUE=Error +FIELD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +FIELD_ELEMENT_TYPE_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +FIELD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +FIELD_ELEMENT_TYPE_CHANGED_TYPE=Error +FIELD_ELEMENT_TYPE_CHANGED_VALUE=Error +FIELD_ELEMENT_TYPE_REMOVED_TYPE_ARGUMENT=Error +FIELD_ELEMENT_TYPE_REMOVED_VALUE=Error +ILLEGAL_EXTEND=Warning +ILLEGAL_IMPLEMENT=Warning +ILLEGAL_INSTANTIATE=Warning +ILLEGAL_OVERRIDE=Warning +ILLEGAL_REFERENCE=Warning +INTERFACE_ELEMENT_TYPE_ADDED_FIELD=Error +INTERFACE_ELEMENT_TYPE_ADDED_METHOD=Error +INTERFACE_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +INTERFACE_ELEMENT_TYPE_ADDED_SUPER_INTERFACE_WITH_METHODS=Error +INTERFACE_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +INTERFACE_ELEMENT_TYPE_CHANGED_CONTRACTED_SUPERINTERFACES_SET=Error +INTERFACE_ELEMENT_TYPE_CHANGED_TYPE_CONVERSION=Error +INTERFACE_ELEMENT_TYPE_REMOVED_FIELD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error +INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +INVALID_JAVADOC_TAG=Ignore +INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore +LEAK_EXTEND=Warning +LEAK_FIELD_DECL=Warning +LEAK_IMPLEMENT=Warning +LEAK_METHOD_PARAM=Warning +LEAK_METHOD_RETURN_TYPE=Warning +METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error +METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +MISSING_EE_DESCRIPTIONS=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_ADDED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_CHANGED_INTERFACE_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_CLASS_BOUND=Error +TYPE_PARAMETER_ELEMENT_TYPE_REMOVED_INTERFACE_BOUND=Error +UNUSED_PROBLEM_FILTERS=Warning +automatically_removed_unused_problem_filters=false +eclipse.preferences.version=1 +incompatible_api_component_version=Error +incompatible_api_component_version_include_major_without_breaking_change=Disabled +incompatible_api_component_version_include_minor_without_api_change=Disabled +invalid_since_tag_version=Error +malformed_since_tag=Error +missing_since_tag=Error +report_api_breakage_when_major_version_incremented=Disabled +report_resolution_errors_api_component=Warning diff --git a/org.obeonetwork.dsl.dart/.settings/org.eclipse.pde.prefs b/org.obeonetwork.dsl.dart/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000..0abdfbe --- /dev/null +++ b/org.obeonetwork.dsl.dart/.settings/org.eclipse.pde.prefs @@ -0,0 +1,32 @@ +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.build.bin.includes=1 +compilers.p.build.encodings=2 +compilers.p.build.java.compiler=1 +compilers.p.build.java.compliance=1 +compilers.p.build.missing.output=2 +compilers.p.build.output.library=1 +compilers.p.build.source.library=1 +compilers.p.build.src.includes=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=2 +compilers.p.missing-version-import-package=2 +compilers.p.missing-version-require-bundle=2 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=1 +compilers.p.unknown-attribute=1 +compilers.p.unknown-class=1 +compilers.p.unknown-element=1 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=1 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +eclipse.preferences.version=1 diff --git a/org.obeonetwork.dsl.dart/META-INF/MANIFEST.MF b/org.obeonetwork.dsl.dart/META-INF/MANIFEST.MF new file mode 100644 index 0000000..124d87b --- /dev/null +++ b/org.obeonetwork.dsl.dart/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.obeonetwork.dsl.dart;singleton:=true +Bundle-Version: 0.4.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: bundle +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Export-Package: org.obeonetwork.dsl.dart;version="0.4.0", + org.obeonetwork.dsl.dart.impl;version="0.4.0", + org.obeonetwork.dsl.dart.util;version="0.4.0" +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/org.obeonetwork.dsl.dart/build.properties b/org.obeonetwork.dsl.dart/build.properties new file mode 100644 index 0000000..c41b1d7 --- /dev/null +++ b/org.obeonetwork.dsl.dart/build.properties @@ -0,0 +1,20 @@ +################################################################################ +## Copyright (c) 2014 Obeo. +## 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: +## Obeo - initial API and implementation +################################################################################ +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + bundle.properties +jars.compile.order = . +source.. = src-gen/,\ + src/ +output.. = bin/ +javacProjectSettings = true diff --git a/org.obeonetwork.dsl.dart/bundle.properties b/org.obeonetwork.dsl.dart/bundle.properties new file mode 100644 index 0000000..82d4023 --- /dev/null +++ b/org.obeonetwork.dsl.dart/bundle.properties @@ -0,0 +1,12 @@ +################################################################################ +## Copyright (c) 2014 Obeo. +## 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: +## Obeo - initial API and implementation +################################################################################ +Bundle-Name=Dart Model +Bundle-Vendor=Obeo Network diff --git a/org.obeonetwork.dsl.dart/model/dart.ecore b/org.obeonetwork.dsl.dart/model/dart.ecore new file mode 100644 index 0000000..6ead8b0 --- /dev/null +++ b/org.obeonetwork.dsl.dart/model/dart.ecore @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart/model/dart.genmodel b/org.obeonetwork.dsl.dart/model/dart.genmodel new file mode 100644 index 0000000..800b81c --- /dev/null +++ b/org.obeonetwork.dsl.dart/model/dart.genmodel @@ -0,0 +1,150 @@ + + + dart.ecore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart/model/dartlang.dartspec b/org.obeonetwork.dsl.dart/model/dartlang.dartspec new file mode 100644 index 0000000..542a598 --- /dev/null +++ b/org.obeonetwork.dsl.dart/model/dartlang.dartspec @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart/plugin.xml b/org.obeonetwork.dsl.dart/plugin.xml new file mode 100644 index 0000000..d5fc36a --- /dev/null +++ b/org.obeonetwork.dsl.dart/plugin.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + diff --git a/org.obeonetwork.dsl.dart/pom.xml b/org.obeonetwork.dsl.dart/pom.xml new file mode 100644 index 0000000..bb96537 --- /dev/null +++ b/org.obeonetwork.dsl.dart/pom.xml @@ -0,0 +1,40 @@ + + + + 4.0.0 + + + org.obeonetwork.dsl.dart + org.obeonetwork.dsl.dart.releng.parent + 0.4.0-SNAPSHOT + ../../releng/org.obeonetwork.dsl.dart.releng/parent + + + org.obeonetwork.dsl.dart + eclipse-plugin + + Dart Designer Model + + + + + org.eclipse.tycho + tycho-source-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + + \ No newline at end of file diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/AngularType.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/AngularType.java new file mode 100644 index 0000000..98471dd --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/AngularType.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Angular Type'. + * + * @see org.obeonetwork.dsl.dart.DartPackage#getAngularType() + * @model interface="true" abstract="true" + * @generated + */ +public interface AngularType extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + +} // AngularType diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Asset.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Asset.java new file mode 100644 index 0000000..5c84ee0 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Asset.java @@ -0,0 +1,94 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Asset'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Asset#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Asset#getContainer Container}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getAsset() + * @model + * @generated + */ +public interface Asset extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getAsset_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Asset#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Container' container reference. It is bidirectional and its + * opposite is '{@link org.obeonetwork.dsl.dart.Container#getAssets Assets}'. + *

+ * If the meaning of the 'Container' container reference isn't clear, there really should be more + * of a description here... + *

+ * + * + * @return the value of the 'Container' container reference. + * @see #setContainer(Container) + * @see org.obeonetwork.dsl.dart.DartPackage#getAsset_Container() + * @see org.obeonetwork.dsl.dart.Container#getAssets + * @model opposite="assets" transient="false" + * @generated + */ + Container getContainer(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Asset#getContainer Container}' + * container reference. + * + * @param value + * the new value of the 'Container' container reference. + * @see #getContainer() + * @generated + */ + void setContainer(Container value); + +} // Asset diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Class.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Class.java new file mode 100644 index 0000000..ff1034f --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Class.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Class'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Class#isAbstract Abstract}
  • + *
  • {@link org.obeonetwork.dsl.dart.Class#getExtends Extends}
  • + *
  • {@link org.obeonetwork.dsl.dart.Class#getImplements Implements}
  • + *
  • {@link org.obeonetwork.dsl.dart.Class#getMixins Mixins}
  • + *
  • {@link org.obeonetwork.dsl.dart.Class#getConstructors Constructors}
  • + *
  • {@link org.obeonetwork.dsl.dart.Class#getMethods Methods}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_() + * @model + * @generated + */ +public interface Class extends Classifier, Type { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Abstract' attribute. + *

+ * If the meaning of the 'Abstract' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Abstract' attribute. + * @see #setAbstract(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_Abstract() + * @model + * @generated + */ + boolean isAbstract(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Class#isAbstract Abstract}' attribute. + * + * + * @param value + * the new value of the 'Abstract' attribute. + * @see #isAbstract() + * @generated + */ + void setAbstract(boolean value); + + /** + * Returns the value of the 'Extends' reference. + *

+ * If the meaning of the 'Extends' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Extends' reference. + * @see #setExtends(Class) + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_Extends() + * @model + * @generated + */ + Class getExtends(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Class#getExtends Extends}' reference. + * + * + * @param value + * the new value of the 'Extends' reference. + * @see #getExtends() + * @generated + */ + void setExtends(Class value); + + /** + * Returns the value of the 'Implements' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Class}. + *

+ * If the meaning of the 'Implements' reference list isn't clear, there really should be more of + * a description here... + *

+ * + * + * @return the value of the 'Implements' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_Implements() + * @model + * @generated + */ + EList getImplements(); + + /** + * Returns the value of the 'Mixins' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Class}. + *

+ * If the meaning of the 'Mixins' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Mixins' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_Mixins() + * @model + * @generated + */ + EList getMixins(); + + /** + * Returns the value of the 'Constructors' containment reference list. The list contents + * are of type {@link org.obeonetwork.dsl.dart.Constructor}. + *

+ * If the meaning of the 'Constructors' containment reference list isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Constructors' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_Constructors() + * @model containment="true" + * @generated + */ + EList getConstructors(); + + /** + * Returns the value of the 'Methods' containment reference list. The list contents are of + * type {@link org.obeonetwork.dsl.dart.Function}. + *

+ * If the meaning of the 'Methods' containment reference list isn't clear, there really should be + * more of a description here... + *

+ * + * + * @return the value of the 'Methods' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getClass_Methods() + * @model containment="true" + * @generated + */ + EList getMethods(); + +} // Class diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Classifier.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Classifier.java new file mode 100644 index 0000000..577ad53 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Classifier.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Classifier'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Classifier#getFields Fields}
  • + *
  • {@link org.obeonetwork.dsl.dart.Classifier#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getClassifier() + * @model abstract="true" + * @generated + */ +public interface Classifier extends Part { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Fields' containment reference list. The list contents are of + * type {@link org.obeonetwork.dsl.dart.Variable}. + *

+ * If the meaning of the 'Fields' containment reference list isn't clear, there really should be + * more of a description here... + *

+ * + * + * @return the value of the 'Fields' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getClassifier_Fields() + * @model containment="true" + * @generated + */ + EList getFields(); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getClassifier_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Classifier diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Component.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Component.java new file mode 100644 index 0000000..6ead52d --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Component.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Component'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Component#getPublishAs Publish As}
  • + *
  • {@link org.obeonetwork.dsl.dart.Component#getStylesheet Stylesheet}
  • + *
  • {@link org.obeonetwork.dsl.dart.Component#getTemplate Template}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getComponent() + * @model + * @generated + */ +public interface Component extends org.obeonetwork.dsl.dart.Class, AngularType { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Publish As' attribute. + *

+ * If the meaning of the 'Publish As' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Publish As' attribute. + * @see #setPublishAs(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getComponent_PublishAs() + * @model + * @generated + */ + String getPublishAs(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Component#getPublishAs Publish As}' + * attribute. + * + * @param value + * the new value of the 'Publish As' attribute. + * @see #getPublishAs() + * @generated + */ + void setPublishAs(String value); + + /** + * Returns the value of the 'Stylesheet' reference. + *

+ * If the meaning of the 'Stylesheet' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Stylesheet' reference. + * @see #setStylesheet(Stylesheet) + * @see org.obeonetwork.dsl.dart.DartPackage#getComponent_Stylesheet() + * @model + * @generated + */ + Stylesheet getStylesheet(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Component#getStylesheet Stylesheet}' + * reference. + * + * @param value + * the new value of the 'Stylesheet' reference. + * @see #getStylesheet() + * @generated + */ + void setStylesheet(Stylesheet value); + + /** + * Returns the value of the 'Template' reference. + *

+ * If the meaning of the 'Template' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Template' reference. + * @see #setTemplate(HTML) + * @see org.obeonetwork.dsl.dart.DartPackage#getComponent_Template() + * @model + * @generated + */ + HTML getTemplate(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Component#getTemplate Template}' + * reference. + * + * @param value + * the new value of the 'Template' reference. + * @see #getTemplate() + * @generated + */ + void setTemplate(HTML value); + + /** + * Returns the value of the 'Selector' attribute. + *

+ * If the meaning of the 'Selector' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Selector' attribute. + * @see #setSelector(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getComponent_Selector() + * @model + * @generated + */ + String getSelector(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Component#getSelector Selector}' + * attribute. + * + * @param value + * the new value of the 'Selector' attribute. + * @see #getSelector() + * @generated + */ + void setSelector(String value); + +} // Component diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Constructor.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Constructor.java new file mode 100644 index 0000000..0e885d0 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Constructor.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Constructor'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Constructor#isConstant Constant}
  • + *
  • {@link org.obeonetwork.dsl.dart.Constructor#getBody Body}
  • + *
  • {@link org.obeonetwork.dsl.dart.Constructor#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getConstructor() + * @model + * @generated + */ +public interface Constructor extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Constant' attribute. + *

+ * If the meaning of the 'Constant' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Constant' attribute. + * @see #setConstant(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getConstructor_Constant() + * @model + * @generated + */ + boolean isConstant(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Constructor#isConstant Constant}' + * attribute. + * + * @param value + * the new value of the 'Constant' attribute. + * @see #isConstant() + * @generated + */ + void setConstant(boolean value); + + /** + * Returns the value of the 'Body' attribute. + *

+ * If the meaning of the 'Body' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Body' attribute. + * @see #setBody(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getConstructor_Body() + * @model + * @generated + */ + String getBody(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Constructor#getBody Body}' attribute. + * + * + * @param value + * the new value of the 'Body' attribute. + * @see #getBody() + * @generated + */ + void setBody(String value); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getConstructor_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Constructor diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Container.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Container.java new file mode 100644 index 0000000..3d17794 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Container.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Container'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Container#getAssets Assets}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getContainer() + * @model abstract="true" + * @generated + */ +public interface Container extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Assets' containment reference list. The list contents are of + * type {@link org.obeonetwork.dsl.dart.Asset}. It is bidirectional and its opposite is ' + * {@link org.obeonetwork.dsl.dart.Asset#getContainer Container}'. + *

+ * If the meaning of the 'Assets' containment reference list isn't clear, there really should be + * more of a description here... + *

+ * + * + * @return the value of the 'Assets' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getContainer_Assets() + * @see org.obeonetwork.dsl.dart.Asset#getContainer + * @model opposite="container" containment="true" + * @generated + */ + EList getAssets(); + +} // Container diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Controller.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Controller.java new file mode 100644 index 0000000..983f0cd --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Controller.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Controller'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Controller#getPublishAs Publish As}
  • + *
  • {@link org.obeonetwork.dsl.dart.Controller#getSelector Selector}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getController() + * @model + * @generated + */ +public interface Controller extends org.obeonetwork.dsl.dart.Class, AngularType { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Publish As' attribute. + *

+ * If the meaning of the 'Publish As' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Publish As' attribute. + * @see #setPublishAs(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getController_PublishAs() + * @model + * @generated + */ + String getPublishAs(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Controller#getPublishAs Publish As}' + * attribute. + * + * @param value + * the new value of the 'Publish As' attribute. + * @see #getPublishAs() + * @generated + */ + void setPublishAs(String value); + + /** + * Returns the value of the 'Selector' attribute. + *

+ * If the meaning of the 'Selector' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Selector' attribute. + * @see #setSelector(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getController_Selector() + * @model + * @generated + */ + String getSelector(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Controller#getSelector Selector}' + * attribute. + * + * @param value + * the new value of the 'Selector' attribute. + * @see #getSelector() + * @generated + */ + void setSelector(String value); + +} // Controller diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartFactory.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartFactory.java new file mode 100644 index 0000000..71d5dee --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartFactory.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EFactory; + +/** + * The Factory for the model. It provides a create method for each non-abstract + * class of the model. + * + * @see org.obeonetwork.dsl.dart.DartPackage + * @generated + */ +public interface DartFactory extends EFactory { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The singleton instance of the factory. + * + * @generated + */ + DartFactory eINSTANCE = org.obeonetwork.dsl.dart.impl.DartFactoryImpl.init(); + + /** + * Returns a new object of class 'Project'. + * + * @return a new object of class 'Project'. + * @generated + */ + Project createProject(); + + /** + * Returns a new object of class 'Asset'. + * + * @return a new object of class 'Asset'. + * @generated + */ + Asset createAsset(); + + /** + * Returns a new object of class 'Folder'. + * + * @return a new object of class 'Folder'. + * @generated + */ + Folder createFolder(); + + /** + * Returns a new object of class 'Package'. + * + * @return a new object of class 'Package'. + * @generated + */ + Package createPackage(); + + /** + * Returns a new object of class 'Import'. + * + * @return a new object of class 'Import'. + * @generated + */ + Import createImport(); + + /** + * Returns a new object of class 'Export'. + * + * @return a new object of class 'Export'. + * @generated + */ + Export createExport(); + + /** + * Returns a new object of class 'Typedef'. + * + * @return a new object of class 'Typedef'. + * @generated + */ + Typedef createTypedef(); + + /** + * Returns a new object of class 'HTML'. + * + * @return a new object of class 'HTML'. + * @generated + */ + HTML createHTML(); + + /** + * Returns a new object of class 'Stylesheet'. + * + * @return a new object of class 'Stylesheet'. + * @generated + */ + Stylesheet createStylesheet(); + + /** + * Returns a new object of class 'Module'. + * + * @return a new object of class 'Module'. + * @generated + */ + Module createModule(); + + /** + * Returns a new object of class 'Controller'. + * + * @return a new object of class 'Controller'. + * @generated + */ + Controller createController(); + + /** + * Returns a new object of class 'Component'. + * + * @return a new object of class 'Component'. + * @generated + */ + Component createComponent(); + + /** + * Returns a new object of class 'Decorator'. + * + * @return a new object of class 'Decorator'. + * @generated + */ + Decorator createDecorator(); + + /** + * Returns a new object of class 'Formatter'. + * + * @return a new object of class 'Formatter'. + * @generated + */ + Formatter createFormatter(); + + /** + * Returns a new object of class 'Route'. + * + * @return a new object of class 'Route'. + * @generated + */ + Route createRoute(); + + /** + * Returns a new object of class 'Library'. + * + * @return a new object of class 'Library'. + * @generated + */ + Library createLibrary(); + + /** + * Returns a new object of class 'Metadata'. + * + * @return a new object of class 'Metadata'. + * @generated + */ + Metadata createMetadata(); + + /** + * Returns a new object of class 'Class'. + * + * @return a new object of class 'Class'. + * @generated + */ + Class createClass(); + + /** + * Returns a new object of class 'Variable'. + * + * @return a new object of class 'Variable'. + * @generated + */ + Variable createVariable(); + + /** + * Returns a new object of class 'Constructor'. + * + * @return a new object of class 'Constructor'. + * @generated + */ + Constructor createConstructor(); + + /** + * Returns a new object of class 'Function'. + * + * @return a new object of class 'Function'. + * @generated + */ + Function createFunction(); + + /** + * Returns a new object of class 'Parameter'. + * + * @return a new object of class 'Parameter'. + * @generated + */ + Parameter createParameter(); + + /** + * Returns the package supported by this factory. + * + * @return the package supported by this factory. + * @generated + */ + DartPackage getDartPackage(); + +} // DartFactory diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartPackage.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartPackage.java new file mode 100644 index 0000000..9139c11 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartPackage.java @@ -0,0 +1,4613 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * The Package for the model. It contains accessors for the meta objects to + * represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @see org.obeonetwork.dsl.dart.DartFactory + * @model kind="package" + * @generated + */ +public interface DartPackage extends EPackage { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The package name. + * + * @generated + */ + String eNAME = "dart"; + + /** + * The package namespace URI. + * + * @generated + */ + String eNS_URI = "http://www.obeo.fr/dsl/2014/dart"; + + /** + * The package namespace name. + * + * @generated + */ + String eNS_PREFIX = "dart"; + + /** + * The singleton instance of the package. + * + * @generated + */ + DartPackage eINSTANCE = org.obeonetwork.dsl.dart.impl.DartPackageImpl.init(); + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ProjectImpl Project}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.ProjectImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getProject() + * @generated + */ + int PROJECT = 0; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int PROJECT__NAME = 0; + + /** + * The feature id for the 'Packages' containment reference list. + * + * + * @generated + * @ordered + */ + int PROJECT__PACKAGES = 1; + + /** + * The number of structural features of the 'Project' class. + * + * @generated + * @ordered + */ + int PROJECT_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Project' class. + * + * @generated + * @ordered + */ + int PROJECT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.Asset Asset}' class. + * + * @see org.obeonetwork.dsl.dart.Asset + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getAsset() + * @generated + */ + int ASSET = 1; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int ASSET__NAME = 0; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int ASSET__CONTAINER = 1; + + /** + * The number of structural features of the 'Asset' class. + * + * @generated + * @ordered + */ + int ASSET_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Asset' class. + * + * @generated + * @ordered + */ + int ASSET_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ContainerImpl Container}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ContainerImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getContainer() + * @generated + */ + int CONTAINER = 2; + + /** + * The feature id for the 'Assets' containment reference list. + * + * + * @generated + * @ordered + */ + int CONTAINER__ASSETS = 0; + + /** + * The number of structural features of the 'Container' class. + * + * @generated + * @ordered + */ + int CONTAINER_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Container' class. + * + * @generated + * @ordered + */ + int CONTAINER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.FolderImpl Folder}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.FolderImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getFolder() + * @generated + */ + int FOLDER = 3; + + /** + * The feature id for the 'Assets' containment reference list. + * + * + * @generated + * @ordered + */ + int FOLDER__ASSETS = CONTAINER__ASSETS; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int FOLDER__NAME = CONTAINER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int FOLDER__CONTAINER = CONTAINER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Folder' class. + * + * @generated + * @ordered + */ + int FOLDER_FEATURE_COUNT = CONTAINER_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Folder' class. + * + * @generated + * @ordered + */ + int FOLDER_OPERATION_COUNT = CONTAINER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.PackageImpl Package}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.PackageImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getPackage() + * @generated + */ + int PACKAGE = 4; + + /** + * The feature id for the 'Assets' containment reference list. + * + * + * @generated + * @ordered + */ + int PACKAGE__ASSETS = CONTAINER__ASSETS; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int PACKAGE__NAME = CONTAINER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'License' attribute. + * + * @generated + * @ordered + */ + int PACKAGE__LICENSE = CONTAINER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Dependencies' reference list. + * + * @generated + * @ordered + */ + int PACKAGE__DEPENDENCIES = CONTAINER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Project' container reference. + * + * @generated + * @ordered + */ + int PACKAGE__PROJECT = CONTAINER_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Package' class. + * + * @generated + * @ordered + */ + int PACKAGE_FEATURE_COUNT = CONTAINER_FEATURE_COUNT + 4; + + /** + * The number of operations of the 'Package' class. + * + * @generated + * @ordered + */ + int PACKAGE_OPERATION_COUNT = CONTAINER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.DartResourceImpl Resource}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.DartResourceImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getDartResource() + * @generated + */ + int DART_RESOURCE = 5; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int DART_RESOURCE__NAME = ASSET__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int DART_RESOURCE__CONTAINER = ASSET__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int DART_RESOURCE__DOCUMENTATION = ASSET_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int DART_RESOURCE__IMPORTS = ASSET_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int DART_RESOURCE__EXPORTS = ASSET_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Resource' class. + * + * @generated + * @ordered + */ + int DART_RESOURCE_FEATURE_COUNT = ASSET_FEATURE_COUNT + 3; + + /** + * The number of operations of the 'Resource' class. + * + * @generated + * @ordered + */ + int DART_RESOURCE_OPERATION_COUNT = ASSET_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ImportImpl Import}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.ImportImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getImport() + * @generated + */ + int IMPORT = 6; + + /** + * The feature id for the 'Dart Resource' reference. + * + * @generated + * @ordered + */ + int IMPORT__DART_RESOURCE = 0; + + /** + * The feature id for the 'As' attribute. + * + * @generated + * @ordered + */ + int IMPORT__AS = 1; + + /** + * The feature id for the 'Show' reference list. + * + * @generated + * @ordered + */ + int IMPORT__SHOW = 2; + + /** + * The feature id for the 'Hide' reference list. + * + * @generated + * @ordered + */ + int IMPORT__HIDE = 3; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int IMPORT__METADATA = 4; + + /** + * The number of structural features of the 'Import' class. + * + * @generated + * @ordered + */ + int IMPORT_FEATURE_COUNT = 5; + + /** + * The number of operations of the 'Import' class. + * + * @generated + * @ordered + */ + int IMPORT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ExportImpl Export}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.ExportImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getExport() + * @generated + */ + int EXPORT = 7; + + /** + * The feature id for the 'Dart Resource' reference. + * + * @generated + * @ordered + */ + int EXPORT__DART_RESOURCE = 0; + + /** + * The feature id for the 'Show' reference list. + * + * @generated + * @ordered + */ + int EXPORT__SHOW = 1; + + /** + * The feature id for the 'Hide' reference list. + * + * @generated + * @ordered + */ + int EXPORT__HIDE = 2; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int EXPORT__METADATA = 3; + + /** + * The number of structural features of the 'Export' class. + * + * @generated + * @ordered + */ + int EXPORT_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'Export' class. + * + * @generated + * @ordered + */ + int EXPORT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.Type Type}' class. + * + * @see org.obeonetwork.dsl.dart.Type + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getType() + * @generated + */ + int TYPE = 8; + + /** + * The number of structural features of the 'Type' class. + * + * @generated + * @ordered + */ + int TYPE_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Type' class. + * + * @generated + * @ordered + */ + int TYPE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.TypedefImpl Typedef}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.TypedefImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getTypedef() + * @generated + */ + int TYPEDEF = 18; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.LibraryImpl Library}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.LibraryImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getLibrary() + * @generated + */ + int LIBRARY = 9; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int LIBRARY__NAME = DART_RESOURCE__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int LIBRARY__CONTAINER = DART_RESOURCE__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int LIBRARY__DOCUMENTATION = DART_RESOURCE__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int LIBRARY__IMPORTS = DART_RESOURCE__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int LIBRARY__EXPORTS = DART_RESOURCE__EXPORTS; + + /** + * The feature id for the 'Parts' reference list. + * + * @generated + * @ordered + */ + int LIBRARY__PARTS = DART_RESOURCE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Typedefs' containment reference list. + * + * + * @generated + * @ordered + */ + int LIBRARY__TYPEDEFS = DART_RESOURCE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int LIBRARY__METADATA = DART_RESOURCE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Variables' containment reference list. + * + * + * @generated + * @ordered + */ + int LIBRARY__VARIABLES = DART_RESOURCE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Functions' containment reference list. + * + * + * @generated + * @ordered + */ + int LIBRARY__FUNCTIONS = DART_RESOURCE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Library' class. + * + * @generated + * @ordered + */ + int LIBRARY_FEATURE_COUNT = DART_RESOURCE_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Library' class. + * + * @generated + * @ordered + */ + int LIBRARY_OPERATION_COUNT = DART_RESOURCE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.PartImpl Part}' class. + * + * @see org.obeonetwork.dsl.dart.impl.PartImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getPart() + * @generated + */ + int PART = 10; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int PART__NAME = DART_RESOURCE__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int PART__CONTAINER = DART_RESOURCE__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int PART__DOCUMENTATION = DART_RESOURCE__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int PART__IMPORTS = DART_RESOURCE__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int PART__EXPORTS = DART_RESOURCE__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int PART__PART_OF = DART_RESOURCE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Part' class. + * + * @generated + * @ordered + */ + int PART_FEATURE_COUNT = DART_RESOURCE_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Part' class. + * + * @generated + * @ordered + */ + int PART_OPERATION_COUNT = DART_RESOURCE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ClassifierImpl Classifier}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ClassifierImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getClassifier() + * @generated + */ + int CLASSIFIER = 11; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int CLASSIFIER__NAME = PART__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int CLASSIFIER__CONTAINER = PART__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int CLASSIFIER__DOCUMENTATION = PART__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASSIFIER__IMPORTS = PART__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASSIFIER__EXPORTS = PART__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int CLASSIFIER__PART_OF = PART__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASSIFIER__FIELDS = PART_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int CLASSIFIER__METADATA = PART_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Classifier' class. + * + * @generated + * @ordered + */ + int CLASSIFIER_FEATURE_COUNT = PART_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Classifier' class. + * + * @generated + * @ordered + */ + int CLASSIFIER_OPERATION_COUNT = PART_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.MetadataImpl Metadata}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.MetadataImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getMetadata() + * @generated + */ + int METADATA = 12; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int METADATA__NAME = CLASSIFIER__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int METADATA__CONTAINER = CLASSIFIER__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int METADATA__DOCUMENTATION = CLASSIFIER__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int METADATA__IMPORTS = CLASSIFIER__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int METADATA__EXPORTS = CLASSIFIER__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int METADATA__PART_OF = CLASSIFIER__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int METADATA__FIELDS = CLASSIFIER__FIELDS; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int METADATA__METADATA = CLASSIFIER__METADATA; + + /** + * The number of structural features of the 'Metadata' class. + * + * @generated + * @ordered + */ + int METADATA_FEATURE_COUNT = CLASSIFIER_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Metadata' class. + * + * @generated + * @ordered + */ + int METADATA_OPERATION_COUNT = CLASSIFIER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ClassImpl Class}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ClassImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getClass_() + * @generated + */ + int CLASS = 13; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int CLASS__NAME = CLASSIFIER__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int CLASS__CONTAINER = CLASSIFIER__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int CLASS__DOCUMENTATION = CLASSIFIER__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASS__IMPORTS = CLASSIFIER__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASS__EXPORTS = CLASSIFIER__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int CLASS__PART_OF = CLASSIFIER__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASS__FIELDS = CLASSIFIER__FIELDS; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int CLASS__METADATA = CLASSIFIER__METADATA; + + /** + * The feature id for the 'Abstract' attribute. + * + * @generated + * @ordered + */ + int CLASS__ABSTRACT = CLASSIFIER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Extends' reference. + * + * @generated + * @ordered + */ + int CLASS__EXTENDS = CLASSIFIER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Implements' reference list. + * + * @generated + * @ordered + */ + int CLASS__IMPLEMENTS = CLASSIFIER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Mixins' reference list. + * + * @generated + * @ordered + */ + int CLASS__MIXINS = CLASSIFIER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Constructors' containment reference list. + * + * @generated + * @ordered + */ + int CLASS__CONSTRUCTORS = CLASSIFIER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Methods' containment reference list. + * + * + * @generated + * @ordered + */ + int CLASS__METHODS = CLASSIFIER_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Class' class. + * + * @generated + * @ordered + */ + int CLASS_FEATURE_COUNT = CLASSIFIER_FEATURE_COUNT + 6; + + /** + * The number of operations of the 'Class' class. + * + * @generated + * @ordered + */ + int CLASS_OPERATION_COUNT = CLASSIFIER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.VariableImpl Variable}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.VariableImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getVariable() + * @generated + */ + int VARIABLE = 14; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int VARIABLE__NAME = 0; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int VARIABLE__DOCUMENTATION = 1; + + /** + * The feature id for the 'Type' reference. + * + * @generated + * @ordered + */ + int VARIABLE__TYPE = 2; + + /** + * The feature id for the 'Static' attribute. + * + * @generated + * @ordered + */ + int VARIABLE__STATIC = 3; + + /** + * The feature id for the 'Constant' attribute. + * + * @generated + * @ordered + */ + int VARIABLE__CONSTANT = 4; + + /** + * The feature id for the 'Final' attribute. + * + * @generated + * @ordered + */ + int VARIABLE__FINAL = 5; + + /** + * The feature id for the 'Value' attribute. + * + * @generated + * @ordered + */ + int VARIABLE__VALUE = 6; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int VARIABLE__METADATA = 7; + + /** + * The number of structural features of the 'Variable' class. + * + * @generated + * @ordered + */ + int VARIABLE_FEATURE_COUNT = 8; + + /** + * The number of operations of the 'Variable' class. + * + * @generated + * @ordered + */ + int VARIABLE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ConstructorImpl Constructor}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ConstructorImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getConstructor() + * @generated + */ + int CONSTRUCTOR = 15; + + /** + * The feature id for the 'Constant' attribute. + * + * @generated + * @ordered + */ + int CONSTRUCTOR__CONSTANT = 0; + + /** + * The feature id for the 'Body' attribute. + * + * @generated + * @ordered + */ + int CONSTRUCTOR__BODY = 1; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int CONSTRUCTOR__METADATA = 2; + + /** + * The number of structural features of the 'Constructor' class. + * + * @generated + * @ordered + */ + int CONSTRUCTOR_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Constructor' class. + * + * @generated + * @ordered + */ + int CONSTRUCTOR_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.FunctionImpl Function}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.FunctionImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getFunction() + * @generated + */ + int FUNCTION = 16; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int FUNCTION__NAME = 0; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int FUNCTION__DOCUMENTATION = 1; + + /** + * The feature id for the 'Type' reference. + * + * @generated + * @ordered + */ + int FUNCTION__TYPE = 2; + + /** + * The feature id for the 'Abstract' attribute. + * + * @generated + * @ordered + */ + int FUNCTION__ABSTRACT = 3; + + /** + * The feature id for the 'Static' attribute. + * + * @generated + * @ordered + */ + int FUNCTION__STATIC = 4; + + /** + * The feature id for the 'Body' attribute. + * + * @generated + * @ordered + */ + int FUNCTION__BODY = 5; + + /** + * The feature id for the 'Parameters' containment reference list. + * + * + * @generated + * @ordered + */ + int FUNCTION__PARAMETERS = 6; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int FUNCTION__METADATA = 7; + + /** + * The number of structural features of the 'Function' class. + * + * @generated + * @ordered + */ + int FUNCTION_FEATURE_COUNT = 8; + + /** + * The number of operations of the 'Function' class. + * + * @generated + * @ordered + */ + int FUNCTION_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ParameterImpl Parameter}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ParameterImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getParameter() + * @generated + */ + int PARAMETER = 17; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int PARAMETER__NAME = 0; + + /** + * The feature id for the 'Value' attribute. + * + * @generated + * @ordered + */ + int PARAMETER__VALUE = 1; + + /** + * The feature id for the 'Optional' attribute. + * + * @generated + * @ordered + */ + int PARAMETER__OPTIONAL = 2; + + /** + * The feature id for the 'Type' reference. + * + * @generated + * @ordered + */ + int PARAMETER__TYPE = 3; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int PARAMETER__METADATA = 4; + + /** + * The number of structural features of the 'Parameter' class. + * + * @generated + * @ordered + */ + int PARAMETER_FEATURE_COUNT = 5; + + /** + * The number of operations of the 'Parameter' class. + * + * @generated + * @ordered + */ + int PARAMETER_OPERATION_COUNT = 0; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int TYPEDEF__DOCUMENTATION = TYPE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int TYPEDEF__NAME = TYPE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Type' reference. + * + * @generated + * @ordered + */ + int TYPEDEF__TYPE = TYPE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Parameters' containment reference list. + * + * + * @generated + * @ordered + */ + int TYPEDEF__PARAMETERS = TYPE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int TYPEDEF__METADATA = TYPE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Typedef' class. + * + * @generated + * @ordered + */ + int TYPEDEF_FEATURE_COUNT = TYPE_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Typedef' class. + * + * @generated + * @ordered + */ + int TYPEDEF_OPERATION_COUNT = TYPE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.HTMLImpl HTML}' class. + * + * @see org.obeonetwork.dsl.dart.impl.HTMLImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getHTML() + * @generated + */ + int HTML = 19; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int HTML__NAME = ASSET__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int HTML__CONTAINER = ASSET__CONTAINER; + + /** + * The feature id for the 'Uses' reference list. + * + * @generated + * @ordered + */ + int HTML__USES = ASSET_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'HTML' class. + * + * @generated + * @ordered + */ + int HTML_FEATURE_COUNT = ASSET_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'HTML' class. + * + * @generated + * @ordered + */ + int HTML_OPERATION_COUNT = ASSET_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.StylesheetImpl Stylesheet}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.StylesheetImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getStylesheet() + * @generated + */ + int STYLESHEET = 20; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int STYLESHEET__NAME = ASSET__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int STYLESHEET__CONTAINER = ASSET__CONTAINER; + + /** + * The feature id for the 'Imports' reference list. + * + * @generated + * @ordered + */ + int STYLESHEET__IMPORTS = ASSET_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Partial' attribute. + * + * @generated + * @ordered + */ + int STYLESHEET__PARTIAL = ASSET_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Stylesheet' class. + * + * @generated + * @ordered + */ + int STYLESHEET_FEATURE_COUNT = ASSET_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Stylesheet' class. + * + * @generated + * @ordered + */ + int STYLESHEET_OPERATION_COUNT = ASSET_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ModuleImpl Module}' class. + * + * + * @see org.obeonetwork.dsl.dart.impl.ModuleImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getModule() + * @generated + */ + int MODULE = 21; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int MODULE__NAME = PART__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int MODULE__CONTAINER = PART__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int MODULE__DOCUMENTATION = PART__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int MODULE__IMPORTS = PART__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int MODULE__EXPORTS = PART__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int MODULE__PART_OF = PART__PART_OF; + + /** + * The feature id for the 'Types' reference list. + * + * @generated + * @ordered + */ + int MODULE__TYPES = PART_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Routes' containment reference list. + * + * + * @generated + * @ordered + */ + int MODULE__ROUTES = PART_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Module' class. + * + * @generated + * @ordered + */ + int MODULE_FEATURE_COUNT = PART_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Module' class. + * + * @generated + * @ordered + */ + int MODULE_OPERATION_COUNT = PART_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.AngularType Angular Type}' class. + * + * + * @see org.obeonetwork.dsl.dart.AngularType + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getAngularType() + * @generated + */ + int ANGULAR_TYPE = 22; + + /** + * The number of structural features of the 'Angular Type' class. + * + * @generated + * @ordered + */ + int ANGULAR_TYPE_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Angular Type' class. + * + * @generated + * @ordered + */ + int ANGULAR_TYPE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ControllerImpl Controller}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ControllerImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getController() + * @generated + */ + int CONTROLLER = 23; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int CONTROLLER__NAME = CLASS__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int CONTROLLER__CONTAINER = CLASS__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int CONTROLLER__DOCUMENTATION = CLASS__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int CONTROLLER__IMPORTS = CLASS__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int CONTROLLER__EXPORTS = CLASS__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int CONTROLLER__PART_OF = CLASS__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int CONTROLLER__FIELDS = CLASS__FIELDS; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int CONTROLLER__METADATA = CLASS__METADATA; + + /** + * The feature id for the 'Abstract' attribute. + * + * @generated + * @ordered + */ + int CONTROLLER__ABSTRACT = CLASS__ABSTRACT; + + /** + * The feature id for the 'Extends' reference. + * + * @generated + * @ordered + */ + int CONTROLLER__EXTENDS = CLASS__EXTENDS; + + /** + * The feature id for the 'Implements' reference list. + * + * @generated + * @ordered + */ + int CONTROLLER__IMPLEMENTS = CLASS__IMPLEMENTS; + + /** + * The feature id for the 'Mixins' reference list. + * + * @generated + * @ordered + */ + int CONTROLLER__MIXINS = CLASS__MIXINS; + + /** + * The feature id for the 'Constructors' containment reference list. + * + * @generated + * @ordered + */ + int CONTROLLER__CONSTRUCTORS = CLASS__CONSTRUCTORS; + + /** + * The feature id for the 'Methods' containment reference list. + * + * + * @generated + * @ordered + */ + int CONTROLLER__METHODS = CLASS__METHODS; + + /** + * The feature id for the 'Publish As' attribute. + * + * @generated + * @ordered + */ + int CONTROLLER__PUBLISH_AS = CLASS_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Selector' attribute. + * + * @generated + * @ordered + */ + int CONTROLLER__SELECTOR = CLASS_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Controller' class. + * + * @generated + * @ordered + */ + int CONTROLLER_FEATURE_COUNT = CLASS_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Controller' class. + * + * @generated + * @ordered + */ + int CONTROLLER_OPERATION_COUNT = CLASS_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.ComponentImpl Component}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ComponentImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getComponent() + * @generated + */ + int COMPONENT = 24; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int COMPONENT__NAME = CLASS__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int COMPONENT__CONTAINER = CLASS__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int COMPONENT__DOCUMENTATION = CLASS__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT__IMPORTS = CLASS__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT__EXPORTS = CLASS__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int COMPONENT__PART_OF = CLASS__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT__FIELDS = CLASS__FIELDS; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int COMPONENT__METADATA = CLASS__METADATA; + + /** + * The feature id for the 'Abstract' attribute. + * + * @generated + * @ordered + */ + int COMPONENT__ABSTRACT = CLASS__ABSTRACT; + + /** + * The feature id for the 'Extends' reference. + * + * @generated + * @ordered + */ + int COMPONENT__EXTENDS = CLASS__EXTENDS; + + /** + * The feature id for the 'Implements' reference list. + * + * @generated + * @ordered + */ + int COMPONENT__IMPLEMENTS = CLASS__IMPLEMENTS; + + /** + * The feature id for the 'Mixins' reference list. + * + * @generated + * @ordered + */ + int COMPONENT__MIXINS = CLASS__MIXINS; + + /** + * The feature id for the 'Constructors' containment reference list. + * + * @generated + * @ordered + */ + int COMPONENT__CONSTRUCTORS = CLASS__CONSTRUCTORS; + + /** + * The feature id for the 'Methods' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT__METHODS = CLASS__METHODS; + + /** + * The feature id for the 'Publish As' attribute. + * + * @generated + * @ordered + */ + int COMPONENT__PUBLISH_AS = CLASS_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Stylesheet' reference. + * + * @generated + * @ordered + */ + int COMPONENT__STYLESHEET = CLASS_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Template' reference. + * + * @generated + * @ordered + */ + int COMPONENT__TEMPLATE = CLASS_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Selector' attribute. + * + * @generated + * @ordered + */ + int COMPONENT__SELECTOR = CLASS_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Component' class. + * + * @generated + * @ordered + */ + int COMPONENT_FEATURE_COUNT = CLASS_FEATURE_COUNT + 4; + + /** + * The number of operations of the 'Component' class. + * + * @generated + * @ordered + */ + int COMPONENT_OPERATION_COUNT = CLASS_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.DecoratorImpl Decorator}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.DecoratorImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getDecorator() + * @generated + */ + int DECORATOR = 25; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int DECORATOR__NAME = CLASS__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int DECORATOR__CONTAINER = CLASS__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int DECORATOR__DOCUMENTATION = CLASS__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int DECORATOR__IMPORTS = CLASS__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int DECORATOR__EXPORTS = CLASS__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int DECORATOR__PART_OF = CLASS__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int DECORATOR__FIELDS = CLASS__FIELDS; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int DECORATOR__METADATA = CLASS__METADATA; + + /** + * The feature id for the 'Abstract' attribute. + * + * @generated + * @ordered + */ + int DECORATOR__ABSTRACT = CLASS__ABSTRACT; + + /** + * The feature id for the 'Extends' reference. + * + * @generated + * @ordered + */ + int DECORATOR__EXTENDS = CLASS__EXTENDS; + + /** + * The feature id for the 'Implements' reference list. + * + * @generated + * @ordered + */ + int DECORATOR__IMPLEMENTS = CLASS__IMPLEMENTS; + + /** + * The feature id for the 'Mixins' reference list. + * + * @generated + * @ordered + */ + int DECORATOR__MIXINS = CLASS__MIXINS; + + /** + * The feature id for the 'Constructors' containment reference list. + * + * @generated + * @ordered + */ + int DECORATOR__CONSTRUCTORS = CLASS__CONSTRUCTORS; + + /** + * The feature id for the 'Methods' containment reference list. + * + * + * @generated + * @ordered + */ + int DECORATOR__METHODS = CLASS__METHODS; + + /** + * The feature id for the 'Selector' attribute. + * + * @generated + * @ordered + */ + int DECORATOR__SELECTOR = CLASS_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Decorator' class. + * + * @generated + * @ordered + */ + int DECORATOR_FEATURE_COUNT = CLASS_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Decorator' class. + * + * @generated + * @ordered + */ + int DECORATOR_OPERATION_COUNT = CLASS_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.FormatterImpl Formatter}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.FormatterImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getFormatter() + * @generated + */ + int FORMATTER = 26; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int FORMATTER__NAME = CLASS__NAME; + + /** + * The feature id for the 'Container' container reference. + * + * @generated + * @ordered + */ + int FORMATTER__CONTAINER = CLASS__CONTAINER; + + /** + * The feature id for the 'Documentation' attribute. + * + * @generated + * @ordered + */ + int FORMATTER__DOCUMENTATION = CLASS__DOCUMENTATION; + + /** + * The feature id for the 'Imports' containment reference list. + * + * + * @generated + * @ordered + */ + int FORMATTER__IMPORTS = CLASS__IMPORTS; + + /** + * The feature id for the 'Exports' containment reference list. + * + * + * @generated + * @ordered + */ + int FORMATTER__EXPORTS = CLASS__EXPORTS; + + /** + * The feature id for the 'Part Of' reference. + * + * @generated + * @ordered + */ + int FORMATTER__PART_OF = CLASS__PART_OF; + + /** + * The feature id for the 'Fields' containment reference list. + * + * + * @generated + * @ordered + */ + int FORMATTER__FIELDS = CLASS__FIELDS; + + /** + * The feature id for the 'Metadata' reference list. + * + * @generated + * @ordered + */ + int FORMATTER__METADATA = CLASS__METADATA; + + /** + * The feature id for the 'Abstract' attribute. + * + * @generated + * @ordered + */ + int FORMATTER__ABSTRACT = CLASS__ABSTRACT; + + /** + * The feature id for the 'Extends' reference. + * + * @generated + * @ordered + */ + int FORMATTER__EXTENDS = CLASS__EXTENDS; + + /** + * The feature id for the 'Implements' reference list. + * + * @generated + * @ordered + */ + int FORMATTER__IMPLEMENTS = CLASS__IMPLEMENTS; + + /** + * The feature id for the 'Mixins' reference list. + * + * @generated + * @ordered + */ + int FORMATTER__MIXINS = CLASS__MIXINS; + + /** + * The feature id for the 'Constructors' containment reference list. + * + * @generated + * @ordered + */ + int FORMATTER__CONSTRUCTORS = CLASS__CONSTRUCTORS; + + /** + * The feature id for the 'Methods' containment reference list. + * + * + * @generated + * @ordered + */ + int FORMATTER__METHODS = CLASS__METHODS; + + /** + * The feature id for the 'Formatter Name' attribute. + * + * @generated + * @ordered + */ + int FORMATTER__FORMATTER_NAME = CLASS_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Formatter' class. + * + * @generated + * @ordered + */ + int FORMATTER_FEATURE_COUNT = CLASS_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Formatter' class. + * + * @generated + * @ordered + */ + int FORMATTER_OPERATION_COUNT = CLASS_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.obeonetwork.dsl.dart.impl.RouteImpl Route}' class. + * + * @see org.obeonetwork.dsl.dart.impl.RouteImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getRoute() + * @generated + */ + int ROUTE = 27; + + /** + * The feature id for the 'Name' attribute. + * + * @generated + * @ordered + */ + int ROUTE__NAME = 0; + + /** + * The feature id for the 'Path' attribute. + * + * @generated + * @ordered + */ + int ROUTE__PATH = 1; + + /** + * The feature id for the 'View' reference. + * + * @generated + * @ordered + */ + int ROUTE__VIEW = 2; + + /** + * The feature id for the 'Extends' reference. + * + * @generated + * @ordered + */ + int ROUTE__EXTENDS = 3; + + /** + * The number of structural features of the 'Route' class. + * + * @generated + * @ordered + */ + int ROUTE_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'Route' class. + * + * @generated + * @ordered + */ + int ROUTE_OPERATION_COUNT = 0; + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Project Project}'. + * + * @return the meta object for class 'Project'. + * @see org.obeonetwork.dsl.dart.Project + * @generated + */ + EClass getProject(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Project#getName + * Name}'. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Project#getName() + * @see #getProject() + * @generated + */ + EAttribute getProject_Name(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Project#getPackages Packages}'. + * + * @return the meta object for the containment reference list 'Packages'. + * @see org.obeonetwork.dsl.dart.Project#getPackages() + * @see #getProject() + * @generated + */ + EReference getProject_Packages(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Asset Asset}'. + * + * @return the meta object for class 'Asset'. + * @see org.obeonetwork.dsl.dart.Asset + * @generated + */ + EClass getAsset(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Asset#getName Name} + * '. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Asset#getName() + * @see #getAsset() + * @generated + */ + EAttribute getAsset_Name(); + + /** + * Returns the meta object for the container reference ' + * {@link org.obeonetwork.dsl.dart.Asset#getContainer Container}'. + * + * @return the meta object for the container reference 'Container'. + * @see org.obeonetwork.dsl.dart.Asset#getContainer() + * @see #getAsset() + * @generated + */ + EReference getAsset_Container(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Container Container}'. + * + * @return the meta object for class 'Container'. + * @see org.obeonetwork.dsl.dart.Container + * @generated + */ + EClass getContainer(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Container#getAssets Assets}'. + * + * @return the meta object for the containment reference list 'Assets'. + * @see org.obeonetwork.dsl.dart.Container#getAssets() + * @see #getContainer() + * @generated + */ + EReference getContainer_Assets(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Folder Folder}'. + * + * @return the meta object for class 'Folder'. + * @see org.obeonetwork.dsl.dart.Folder + * @generated + */ + EClass getFolder(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Package Package}'. + * + * @return the meta object for class 'Package'. + * @see org.obeonetwork.dsl.dart.Package + * @generated + */ + EClass getPackage(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Package#getName + * Name}'. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Package#getName() + * @see #getPackage() + * @generated + */ + EAttribute getPackage_Name(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Package#getLicense + * License}'. + * + * @return the meta object for the attribute 'License'. + * @see org.obeonetwork.dsl.dart.Package#getLicense() + * @see #getPackage() + * @generated + */ + EAttribute getPackage_License(); + + /** + * Returns the meta object for the reference list ' + * {@link org.obeonetwork.dsl.dart.Package#getDependencies Dependencies}'. + * + * @return the meta object for the reference list 'Dependencies'. + * @see org.obeonetwork.dsl.dart.Package#getDependencies() + * @see #getPackage() + * @generated + */ + EReference getPackage_Dependencies(); + + /** + * Returns the meta object for the container reference ' + * {@link org.obeonetwork.dsl.dart.Package#getProject Project}'. + * + * @return the meta object for the container reference 'Project'. + * @see org.obeonetwork.dsl.dart.Package#getProject() + * @see #getPackage() + * @generated + */ + EReference getPackage_Project(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.DartResource Resource}'. + * + * + * @return the meta object for class 'Resource'. + * @see org.obeonetwork.dsl.dart.DartResource + * @generated + */ + EClass getDartResource(); + + /** + * Returns the meta object for the attribute ' + * {@link org.obeonetwork.dsl.dart.DartResource#getDocumentation Documentation}'. + * + * @return the meta object for the attribute 'Documentation'. + * @see org.obeonetwork.dsl.dart.DartResource#getDocumentation() + * @see #getDartResource() + * @generated + */ + EAttribute getDartResource_Documentation(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.DartResource#getImports Imports}'. + * + * + * @return the meta object for the containment reference list 'Imports'. + * @see org.obeonetwork.dsl.dart.DartResource#getImports() + * @see #getDartResource() + * @generated + */ + EReference getDartResource_Imports(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.DartResource#getExports Exports}'. + * + * + * @return the meta object for the containment reference list 'Exports'. + * @see org.obeonetwork.dsl.dart.DartResource#getExports() + * @see #getDartResource() + * @generated + */ + EReference getDartResource_Exports(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Import Import}'. + * + * @return the meta object for class 'Import'. + * @see org.obeonetwork.dsl.dart.Import + * @generated + */ + EClass getImport(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Import#getDartResource + * Dart Resource}'. + * + * @return the meta object for the reference 'Dart Resource'. + * @see org.obeonetwork.dsl.dart.Import#getDartResource() + * @see #getImport() + * @generated + */ + EReference getImport_DartResource(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Import#getAs As}'. + * + * + * @return the meta object for the attribute 'As'. + * @see org.obeonetwork.dsl.dart.Import#getAs() + * @see #getImport() + * @generated + */ + EAttribute getImport_As(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Import#getShow + * Show}'. + * + * @return the meta object for the reference list 'Show'. + * @see org.obeonetwork.dsl.dart.Import#getShow() + * @see #getImport() + * @generated + */ + EReference getImport_Show(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Import#getHide + * Hide}'. + * + * @return the meta object for the reference list 'Hide'. + * @see org.obeonetwork.dsl.dart.Import#getHide() + * @see #getImport() + * @generated + */ + EReference getImport_Hide(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Import#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Import#getMetadata() + * @see #getImport() + * @generated + */ + EReference getImport_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Export Export}'. + * + * @return the meta object for class 'Export'. + * @see org.obeonetwork.dsl.dart.Export + * @generated + */ + EClass getExport(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Export#getDartResource + * Dart Resource}'. + * + * @return the meta object for the reference 'Dart Resource'. + * @see org.obeonetwork.dsl.dart.Export#getDartResource() + * @see #getExport() + * @generated + */ + EReference getExport_DartResource(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Export#getShow + * Show}'. + * + * @return the meta object for the reference list 'Show'. + * @see org.obeonetwork.dsl.dart.Export#getShow() + * @see #getExport() + * @generated + */ + EReference getExport_Show(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Export#getHide + * Hide}'. + * + * @return the meta object for the reference list 'Hide'. + * @see org.obeonetwork.dsl.dart.Export#getHide() + * @see #getExport() + * @generated + */ + EReference getExport_Hide(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Export#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Export#getMetadata() + * @see #getExport() + * @generated + */ + EReference getExport_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Typedef Typedef}'. + * + * @return the meta object for class 'Typedef'. + * @see org.obeonetwork.dsl.dart.Typedef + * @generated + */ + EClass getTypedef(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Typedef#getName + * Name}'. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Typedef#getName() + * @see #getTypedef() + * @generated + */ + EAttribute getTypedef_Name(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Typedef#getDocumentation + * Documentation}'. + * + * @return the meta object for the attribute 'Documentation'. + * @see org.obeonetwork.dsl.dart.Typedef#getDocumentation() + * @see #getTypedef() + * @generated + */ + EAttribute getTypedef_Documentation(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Typedef#getType + * Type}'. + * + * @return the meta object for the reference 'Type'. + * @see org.obeonetwork.dsl.dart.Typedef#getType() + * @see #getTypedef() + * @generated + */ + EReference getTypedef_Type(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Typedef#getParameters Parameters}'. + * + * + * @return the meta object for the containment reference list 'Parameters'. + * @see org.obeonetwork.dsl.dart.Typedef#getParameters() + * @see #getTypedef() + * @generated + */ + EReference getTypedef_Parameters(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Typedef#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Typedef#getMetadata() + * @see #getTypedef() + * @generated + */ + EReference getTypedef_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.HTML HTML}'. + * + * @return the meta object for class 'HTML'. + * @see org.obeonetwork.dsl.dart.HTML + * @generated + */ + EClass getHTML(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.HTML#getUses + * Uses}'. + * + * @return the meta object for the reference list 'Uses'. + * @see org.obeonetwork.dsl.dart.HTML#getUses() + * @see #getHTML() + * @generated + */ + EReference getHTML_Uses(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Stylesheet Stylesheet}'. + * + * + * @return the meta object for class 'Stylesheet'. + * @see org.obeonetwork.dsl.dart.Stylesheet + * @generated + */ + EClass getStylesheet(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Stylesheet#getImports + * Imports}'. + * + * @return the meta object for the reference list 'Imports'. + * @see org.obeonetwork.dsl.dart.Stylesheet#getImports() + * @see #getStylesheet() + * @generated + */ + EReference getStylesheet_Imports(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Stylesheet#isPartial + * Partial}'. + * + * @return the meta object for the attribute 'Partial'. + * @see org.obeonetwork.dsl.dart.Stylesheet#isPartial() + * @see #getStylesheet() + * @generated + */ + EAttribute getStylesheet_Partial(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Module Module}'. + * + * @return the meta object for class 'Module'. + * @see org.obeonetwork.dsl.dart.Module + * @generated + */ + EClass getModule(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Module#getTypes + * Types}'. + * + * @return the meta object for the reference list 'Types'. + * @see org.obeonetwork.dsl.dart.Module#getTypes() + * @see #getModule() + * @generated + */ + EReference getModule_Types(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Module#getRoutes Routes}'. + * + * @return the meta object for the containment reference list 'Routes'. + * @see org.obeonetwork.dsl.dart.Module#getRoutes() + * @see #getModule() + * @generated + */ + EReference getModule_Routes(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.AngularType Angular Type}'. + * + * + * @return the meta object for class 'Angular Type'. + * @see org.obeonetwork.dsl.dart.AngularType + * @generated + */ + EClass getAngularType(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Controller Controller}'. + * + * + * @return the meta object for class 'Controller'. + * @see org.obeonetwork.dsl.dart.Controller + * @generated + */ + EClass getController(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Controller#getPublishAs + * Publish As}'. + * + * @return the meta object for the attribute 'Publish As'. + * @see org.obeonetwork.dsl.dart.Controller#getPublishAs() + * @see #getController() + * @generated + */ + EAttribute getController_PublishAs(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Controller#getSelector + * Selector}'. + * + * @return the meta object for the attribute 'Selector'. + * @see org.obeonetwork.dsl.dart.Controller#getSelector() + * @see #getController() + * @generated + */ + EAttribute getController_Selector(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Component Component}'. + * + * @return the meta object for class 'Component'. + * @see org.obeonetwork.dsl.dart.Component + * @generated + */ + EClass getComponent(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Component#getPublishAs + * Publish As}'. + * + * @return the meta object for the attribute 'Publish As'. + * @see org.obeonetwork.dsl.dart.Component#getPublishAs() + * @see #getComponent() + * @generated + */ + EAttribute getComponent_PublishAs(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Component#getStylesheet + * Stylesheet}'. + * + * @return the meta object for the reference 'Stylesheet'. + * @see org.obeonetwork.dsl.dart.Component#getStylesheet() + * @see #getComponent() + * @generated + */ + EReference getComponent_Stylesheet(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Component#getTemplate + * Template}'. + * + * @return the meta object for the reference 'Template'. + * @see org.obeonetwork.dsl.dart.Component#getTemplate() + * @see #getComponent() + * @generated + */ + EReference getComponent_Template(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Component#getSelector + * Selector}'. + * + * @return the meta object for the attribute 'Selector'. + * @see org.obeonetwork.dsl.dart.Component#getSelector() + * @see #getComponent() + * @generated + */ + EAttribute getComponent_Selector(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Decorator Decorator}'. + * + * @return the meta object for class 'Decorator'. + * @see org.obeonetwork.dsl.dart.Decorator + * @generated + */ + EClass getDecorator(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Decorator#getSelector + * Selector}'. + * + * @return the meta object for the attribute 'Selector'. + * @see org.obeonetwork.dsl.dart.Decorator#getSelector() + * @see #getDecorator() + * @generated + */ + EAttribute getDecorator_Selector(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Formatter Formatter}'. + * + * @return the meta object for class 'Formatter'. + * @see org.obeonetwork.dsl.dart.Formatter + * @generated + */ + EClass getFormatter(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Formatter#getFormatterName + * Formatter Name}'. + * + * @return the meta object for the attribute 'Formatter Name'. + * @see org.obeonetwork.dsl.dart.Formatter#getFormatterName() + * @see #getFormatter() + * @generated + */ + EAttribute getFormatter_FormatterName(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Route Route}'. + * + * @return the meta object for class 'Route'. + * @see org.obeonetwork.dsl.dart.Route + * @generated + */ + EClass getRoute(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Route#getName Name} + * '. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Route#getName() + * @see #getRoute() + * @generated + */ + EAttribute getRoute_Name(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Route#getPath Path} + * '. + * + * @return the meta object for the attribute 'Path'. + * @see org.obeonetwork.dsl.dart.Route#getPath() + * @see #getRoute() + * @generated + */ + EAttribute getRoute_Path(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Route#getView View} + * '. + * + * @return the meta object for the reference 'View'. + * @see org.obeonetwork.dsl.dart.Route#getView() + * @see #getRoute() + * @generated + */ + EReference getRoute_View(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Route#getExtends + * Extends}'. + * + * @return the meta object for the reference 'Extends'. + * @see org.obeonetwork.dsl.dart.Route#getExtends() + * @see #getRoute() + * @generated + */ + EReference getRoute_Extends(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Type Type}'. + * + * @return the meta object for class 'Type'. + * @see org.obeonetwork.dsl.dart.Type + * @generated + */ + EClass getType(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Library Library}'. + * + * @return the meta object for class 'Library'. + * @see org.obeonetwork.dsl.dart.Library + * @generated + */ + EClass getLibrary(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Library#getParts + * Parts}'. + * + * @return the meta object for the reference list 'Parts'. + * @see org.obeonetwork.dsl.dart.Library#getParts() + * @see #getLibrary() + * @generated + */ + EReference getLibrary_Parts(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Library#getTypedefs Typedefs}'. + * + * @return the meta object for the containment reference list 'Typedefs'. + * @see org.obeonetwork.dsl.dart.Library#getTypedefs() + * @see #getLibrary() + * @generated + */ + EReference getLibrary_Typedefs(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Library#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Library#getMetadata() + * @see #getLibrary() + * @generated + */ + EReference getLibrary_Metadata(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Library#getVariables Variables}'. + * + * @return the meta object for the containment reference list 'Variables'. + * @see org.obeonetwork.dsl.dart.Library#getVariables() + * @see #getLibrary() + * @generated + */ + EReference getLibrary_Variables(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Library#getFunctions Functions}'. + * + * @return the meta object for the containment reference list 'Functions'. + * @see org.obeonetwork.dsl.dart.Library#getFunctions() + * @see #getLibrary() + * @generated + */ + EReference getLibrary_Functions(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Part Part}'. + * + * @return the meta object for class 'Part'. + * @see org.obeonetwork.dsl.dart.Part + * @generated + */ + EClass getPart(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Part#getPartOf + * Part Of}'. + * + * @return the meta object for the reference 'Part Of'. + * @see org.obeonetwork.dsl.dart.Part#getPartOf() + * @see #getPart() + * @generated + */ + EReference getPart_PartOf(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Classifier Classifier}'. + * + * + * @return the meta object for class 'Classifier'. + * @see org.obeonetwork.dsl.dart.Classifier + * @generated + */ + EClass getClassifier(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Classifier#getFields Fields}'. + * + * @return the meta object for the containment reference list 'Fields'. + * @see org.obeonetwork.dsl.dart.Classifier#getFields() + * @see #getClassifier() + * @generated + */ + EReference getClassifier_Fields(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Classifier#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Classifier#getMetadata() + * @see #getClassifier() + * @generated + */ + EReference getClassifier_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Metadata Metadata}'. + * + * @return the meta object for class 'Metadata'. + * @see org.obeonetwork.dsl.dart.Metadata + * @generated + */ + EClass getMetadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Class Class}'. + * + * @return the meta object for class 'Class'. + * @see org.obeonetwork.dsl.dart.Class + * @generated + */ + EClass getClass_(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Class#isAbstract + * Abstract}'. + * + * @return the meta object for the attribute 'Abstract'. + * @see org.obeonetwork.dsl.dart.Class#isAbstract() + * @see #getClass_() + * @generated + */ + EAttribute getClass_Abstract(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Class#getExtends + * Extends}'. + * + * @return the meta object for the reference 'Extends'. + * @see org.obeonetwork.dsl.dart.Class#getExtends() + * @see #getClass_() + * @generated + */ + EReference getClass_Extends(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Class#getImplements + * Implements}'. + * + * @return the meta object for the reference list 'Implements'. + * @see org.obeonetwork.dsl.dart.Class#getImplements() + * @see #getClass_() + * @generated + */ + EReference getClass_Implements(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Class#getMixins + * Mixins}'. + * + * @return the meta object for the reference list 'Mixins'. + * @see org.obeonetwork.dsl.dart.Class#getMixins() + * @see #getClass_() + * @generated + */ + EReference getClass_Mixins(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Class#getConstructors Constructors}'. + * + * + * @return the meta object for the containment reference list 'Constructors'. + * @see org.obeonetwork.dsl.dart.Class#getConstructors() + * @see #getClass_() + * @generated + */ + EReference getClass_Constructors(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Class#getMethods Methods}'. + * + * @return the meta object for the containment reference list 'Methods'. + * @see org.obeonetwork.dsl.dart.Class#getMethods() + * @see #getClass_() + * @generated + */ + EReference getClass_Methods(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Variable Variable}'. + * + * @return the meta object for class 'Variable'. + * @see org.obeonetwork.dsl.dart.Variable + * @generated + */ + EClass getVariable(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Variable#getName + * Name}'. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Variable#getName() + * @see #getVariable() + * @generated + */ + EAttribute getVariable_Name(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Variable#getDocumentation + * Documentation}'. + * + * @return the meta object for the attribute 'Documentation'. + * @see org.obeonetwork.dsl.dart.Variable#getDocumentation() + * @see #getVariable() + * @generated + */ + EAttribute getVariable_Documentation(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Variable#getType + * Type}'. + * + * @return the meta object for the reference 'Type'. + * @see org.obeonetwork.dsl.dart.Variable#getType() + * @see #getVariable() + * @generated + */ + EReference getVariable_Type(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Variable#isStatic + * Static}'. + * + * @return the meta object for the attribute 'Static'. + * @see org.obeonetwork.dsl.dart.Variable#isStatic() + * @see #getVariable() + * @generated + */ + EAttribute getVariable_Static(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Variable#isConstant + * Constant}'. + * + * @return the meta object for the attribute 'Constant'. + * @see org.obeonetwork.dsl.dart.Variable#isConstant() + * @see #getVariable() + * @generated + */ + EAttribute getVariable_Constant(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Variable#isFinal + * Final}'. + * + * @return the meta object for the attribute 'Final'. + * @see org.obeonetwork.dsl.dart.Variable#isFinal() + * @see #getVariable() + * @generated + */ + EAttribute getVariable_Final(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Variable#getValue + * Value}'. + * + * @return the meta object for the attribute 'Value'. + * @see org.obeonetwork.dsl.dart.Variable#getValue() + * @see #getVariable() + * @generated + */ + EAttribute getVariable_Value(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Variable#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Variable#getMetadata() + * @see #getVariable() + * @generated + */ + EReference getVariable_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Constructor Constructor}'. + * + * + * @return the meta object for class 'Constructor'. + * @see org.obeonetwork.dsl.dart.Constructor + * @generated + */ + EClass getConstructor(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Constructor#isConstant + * Constant}'. + * + * @return the meta object for the attribute 'Constant'. + * @see org.obeonetwork.dsl.dart.Constructor#isConstant() + * @see #getConstructor() + * @generated + */ + EAttribute getConstructor_Constant(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Constructor#getBody + * Body}'. + * + * @return the meta object for the attribute 'Body'. + * @see org.obeonetwork.dsl.dart.Constructor#getBody() + * @see #getConstructor() + * @generated + */ + EAttribute getConstructor_Body(); + + /** + * Returns the meta object for the reference list ' + * {@link org.obeonetwork.dsl.dart.Constructor#getMetadata Metadata}'. + * + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Constructor#getMetadata() + * @see #getConstructor() + * @generated + */ + EReference getConstructor_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Function Function}'. + * + * @return the meta object for class 'Function'. + * @see org.obeonetwork.dsl.dart.Function + * @generated + */ + EClass getFunction(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Function#getName + * Name}'. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Function#getName() + * @see #getFunction() + * @generated + */ + EAttribute getFunction_Name(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Function#getDocumentation + * Documentation}'. + * + * @return the meta object for the attribute 'Documentation'. + * @see org.obeonetwork.dsl.dart.Function#getDocumentation() + * @see #getFunction() + * @generated + */ + EAttribute getFunction_Documentation(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Function#getType + * Type}'. + * + * @return the meta object for the reference 'Type'. + * @see org.obeonetwork.dsl.dart.Function#getType() + * @see #getFunction() + * @generated + */ + EReference getFunction_Type(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Function#isAbstract + * Abstract}'. + * + * @return the meta object for the attribute 'Abstract'. + * @see org.obeonetwork.dsl.dart.Function#isAbstract() + * @see #getFunction() + * @generated + */ + EAttribute getFunction_Abstract(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Function#isStatic + * Static}'. + * + * @return the meta object for the attribute 'Static'. + * @see org.obeonetwork.dsl.dart.Function#isStatic() + * @see #getFunction() + * @generated + */ + EAttribute getFunction_Static(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Function#getBody + * Body}'. + * + * @return the meta object for the attribute 'Body'. + * @see org.obeonetwork.dsl.dart.Function#getBody() + * @see #getFunction() + * @generated + */ + EAttribute getFunction_Body(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.obeonetwork.dsl.dart.Function#getParameters Parameters}'. + * + * + * @return the meta object for the containment reference list 'Parameters'. + * @see org.obeonetwork.dsl.dart.Function#getParameters() + * @see #getFunction() + * @generated + */ + EReference getFunction_Parameters(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Function#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Function#getMetadata() + * @see #getFunction() + * @generated + */ + EReference getFunction_Metadata(); + + /** + * Returns the meta object for class '{@link org.obeonetwork.dsl.dart.Parameter Parameter}'. + * + * @return the meta object for class 'Parameter'. + * @see org.obeonetwork.dsl.dart.Parameter + * @generated + */ + EClass getParameter(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Parameter#getName + * Name}'. + * + * @return the meta object for the attribute 'Name'. + * @see org.obeonetwork.dsl.dart.Parameter#getName() + * @see #getParameter() + * @generated + */ + EAttribute getParameter_Name(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Parameter#getValue + * Value}'. + * + * @return the meta object for the attribute 'Value'. + * @see org.obeonetwork.dsl.dart.Parameter#getValue() + * @see #getParameter() + * @generated + */ + EAttribute getParameter_Value(); + + /** + * Returns the meta object for the attribute '{@link org.obeonetwork.dsl.dart.Parameter#isOptional + * Optional}'. + * + * @return the meta object for the attribute 'Optional'. + * @see org.obeonetwork.dsl.dart.Parameter#isOptional() + * @see #getParameter() + * @generated + */ + EAttribute getParameter_Optional(); + + /** + * Returns the meta object for the reference '{@link org.obeonetwork.dsl.dart.Parameter#getType + * Type}'. + * + * @return the meta object for the reference 'Type'. + * @see org.obeonetwork.dsl.dart.Parameter#getType() + * @see #getParameter() + * @generated + */ + EReference getParameter_Type(); + + /** + * Returns the meta object for the reference list '{@link org.obeonetwork.dsl.dart.Parameter#getMetadata + * Metadata}'. + * + * @return the meta object for the reference list 'Metadata'. + * @see org.obeonetwork.dsl.dart.Parameter#getMetadata() + * @see #getParameter() + * @generated + */ + EReference getParameter_Metadata(); + + /** + * Returns the factory that creates the instances of the model. + * + * @return the factory that creates the instances of the model. + * @generated + */ + DartFactory getDartFactory(); + + /** + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ProjectImpl Project} + * ' class. + * + * @see org.obeonetwork.dsl.dart.impl.ProjectImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getProject() + * @generated + */ + EClass PROJECT = eINSTANCE.getProject(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute PROJECT__NAME = eINSTANCE.getProject_Name(); + + /** + * The meta object literal for the 'Packages' containment reference list feature. + * + * @generated + */ + EReference PROJECT__PACKAGES = eINSTANCE.getProject_Packages(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.Asset Asset}' class. + * + * @see org.obeonetwork.dsl.dart.Asset + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getAsset() + * @generated + */ + EClass ASSET = eINSTANCE.getAsset(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute ASSET__NAME = eINSTANCE.getAsset_Name(); + + /** + * The meta object literal for the 'Container' container reference feature. + * + * @generated + */ + EReference ASSET__CONTAINER = eINSTANCE.getAsset_Container(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ContainerImpl + * Container}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ContainerImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getContainer() + * @generated + */ + EClass CONTAINER = eINSTANCE.getContainer(); + + /** + * The meta object literal for the 'Assets' containment reference list feature. + * + * @generated + */ + EReference CONTAINER__ASSETS = eINSTANCE.getContainer_Assets(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.FolderImpl Folder}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.FolderImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getFolder() + * @generated + */ + EClass FOLDER = eINSTANCE.getFolder(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.PackageImpl Package} + * ' class. + * + * @see org.obeonetwork.dsl.dart.impl.PackageImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getPackage() + * @generated + */ + EClass PACKAGE = eINSTANCE.getPackage(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute PACKAGE__NAME = eINSTANCE.getPackage_Name(); + + /** + * The meta object literal for the 'License' attribute feature. + * + * @generated + */ + EAttribute PACKAGE__LICENSE = eINSTANCE.getPackage_License(); + + /** + * The meta object literal for the 'Dependencies' reference list feature. + * + * @generated + */ + EReference PACKAGE__DEPENDENCIES = eINSTANCE.getPackage_Dependencies(); + + /** + * The meta object literal for the 'Project' container reference feature. + * + * @generated + */ + EReference PACKAGE__PROJECT = eINSTANCE.getPackage_Project(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.DartResourceImpl + * Resource}' class. + * + * @see org.obeonetwork.dsl.dart.impl.DartResourceImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getDartResource() + * @generated + */ + EClass DART_RESOURCE = eINSTANCE.getDartResource(); + + /** + * The meta object literal for the 'Documentation' attribute feature. + * + * @generated + */ + EAttribute DART_RESOURCE__DOCUMENTATION = eINSTANCE.getDartResource_Documentation(); + + /** + * The meta object literal for the 'Imports' containment reference list feature. + * + * @generated + */ + EReference DART_RESOURCE__IMPORTS = eINSTANCE.getDartResource_Imports(); + + /** + * The meta object literal for the 'Exports' containment reference list feature. + * + * @generated + */ + EReference DART_RESOURCE__EXPORTS = eINSTANCE.getDartResource_Exports(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ImportImpl Import}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ImportImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getImport() + * @generated + */ + EClass IMPORT = eINSTANCE.getImport(); + + /** + * The meta object literal for the 'Dart Resource' reference feature. + * + * @generated + */ + EReference IMPORT__DART_RESOURCE = eINSTANCE.getImport_DartResource(); + + /** + * The meta object literal for the 'As' attribute feature. + * + * + * @generated + */ + EAttribute IMPORT__AS = eINSTANCE.getImport_As(); + + /** + * The meta object literal for the 'Show' reference list feature. + * + * @generated + */ + EReference IMPORT__SHOW = eINSTANCE.getImport_Show(); + + /** + * The meta object literal for the 'Hide' reference list feature. + * + * @generated + */ + EReference IMPORT__HIDE = eINSTANCE.getImport_Hide(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference IMPORT__METADATA = eINSTANCE.getImport_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ExportImpl Export}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ExportImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getExport() + * @generated + */ + EClass EXPORT = eINSTANCE.getExport(); + + /** + * The meta object literal for the 'Dart Resource' reference feature. + * + * @generated + */ + EReference EXPORT__DART_RESOURCE = eINSTANCE.getExport_DartResource(); + + /** + * The meta object literal for the 'Show' reference list feature. + * + * @generated + */ + EReference EXPORT__SHOW = eINSTANCE.getExport_Show(); + + /** + * The meta object literal for the 'Hide' reference list feature. + * + * @generated + */ + EReference EXPORT__HIDE = eINSTANCE.getExport_Hide(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference EXPORT__METADATA = eINSTANCE.getExport_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.TypedefImpl Typedef} + * ' class. + * + * @see org.obeonetwork.dsl.dart.impl.TypedefImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getTypedef() + * @generated + */ + EClass TYPEDEF = eINSTANCE.getTypedef(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute TYPEDEF__NAME = eINSTANCE.getTypedef_Name(); + + /** + * The meta object literal for the 'Documentation' attribute feature. + * + * @generated + */ + EAttribute TYPEDEF__DOCUMENTATION = eINSTANCE.getTypedef_Documentation(); + + /** + * The meta object literal for the 'Type' reference feature. + * + * + * @generated + */ + EReference TYPEDEF__TYPE = eINSTANCE.getTypedef_Type(); + + /** + * The meta object literal for the 'Parameters' containment reference list feature. + * + * + * @generated + */ + EReference TYPEDEF__PARAMETERS = eINSTANCE.getTypedef_Parameters(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference TYPEDEF__METADATA = eINSTANCE.getTypedef_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.HTMLImpl HTML}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.HTMLImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getHTML() + * @generated + */ + EClass HTML = eINSTANCE.getHTML(); + + /** + * The meta object literal for the 'Uses' reference list feature. + * + * @generated + */ + EReference HTML__USES = eINSTANCE.getHTML_Uses(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.StylesheetImpl + * Stylesheet}' class. + * + * @see org.obeonetwork.dsl.dart.impl.StylesheetImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getStylesheet() + * @generated + */ + EClass STYLESHEET = eINSTANCE.getStylesheet(); + + /** + * The meta object literal for the 'Imports' reference list feature. + * + * @generated + */ + EReference STYLESHEET__IMPORTS = eINSTANCE.getStylesheet_Imports(); + + /** + * The meta object literal for the 'Partial' attribute feature. + * + * @generated + */ + EAttribute STYLESHEET__PARTIAL = eINSTANCE.getStylesheet_Partial(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ModuleImpl Module}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ModuleImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getModule() + * @generated + */ + EClass MODULE = eINSTANCE.getModule(); + + /** + * The meta object literal for the 'Types' containment reference feature. + * + * @generated + */ + EReference MODULE__TYPES = eINSTANCE.getModule_Types(); + + /** + * The meta object literal for the 'Routes' containment reference list feature. + * + * @generated + */ + EReference MODULE__ROUTES = eINSTANCE.getModule_Routes(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.AngularType Angular Type} + * ' class. + * + * @see org.obeonetwork.dsl.dart.AngularType + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getAngularType() + * @generated + */ + EClass ANGULAR_TYPE = eINSTANCE.getAngularType(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ControllerImpl + * Controller}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ControllerImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getController() + * @generated + */ + EClass CONTROLLER = eINSTANCE.getController(); + + /** + * The meta object literal for the 'Publish As' attribute feature. + * + * @generated + */ + EAttribute CONTROLLER__PUBLISH_AS = eINSTANCE.getController_PublishAs(); + + /** + * The meta object literal for the 'Selector' attribute feature. + * + * @generated + */ + EAttribute CONTROLLER__SELECTOR = eINSTANCE.getController_Selector(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ComponentImpl + * Component}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ComponentImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getComponent() + * @generated + */ + EClass COMPONENT = eINSTANCE.getComponent(); + + /** + * The meta object literal for the 'Publish As' attribute feature. + * + * @generated + */ + EAttribute COMPONENT__PUBLISH_AS = eINSTANCE.getComponent_PublishAs(); + + /** + * The meta object literal for the 'Stylesheet' reference feature. + * + * @generated + */ + EReference COMPONENT__STYLESHEET = eINSTANCE.getComponent_Stylesheet(); + + /** + * The meta object literal for the 'Template' reference feature. + * + * @generated + */ + EReference COMPONENT__TEMPLATE = eINSTANCE.getComponent_Template(); + + /** + * The meta object literal for the 'Selector' attribute feature. + * + * @generated + */ + EAttribute COMPONENT__SELECTOR = eINSTANCE.getComponent_Selector(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.DecoratorImpl + * Decorator}' class. + * + * @see org.obeonetwork.dsl.dart.impl.DecoratorImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getDecorator() + * @generated + */ + EClass DECORATOR = eINSTANCE.getDecorator(); + + /** + * The meta object literal for the 'Selector' attribute feature. + * + * @generated + */ + EAttribute DECORATOR__SELECTOR = eINSTANCE.getDecorator_Selector(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.FormatterImpl + * Formatter}' class. + * + * @see org.obeonetwork.dsl.dart.impl.FormatterImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getFormatter() + * @generated + */ + EClass FORMATTER = eINSTANCE.getFormatter(); + + /** + * The meta object literal for the 'Formatter Name' attribute feature. + * + * @generated + */ + EAttribute FORMATTER__FORMATTER_NAME = eINSTANCE.getFormatter_FormatterName(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.RouteImpl Route}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.RouteImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getRoute() + * @generated + */ + EClass ROUTE = eINSTANCE.getRoute(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute ROUTE__NAME = eINSTANCE.getRoute_Name(); + + /** + * The meta object literal for the 'Path' attribute feature. + * + * + * @generated + */ + EAttribute ROUTE__PATH = eINSTANCE.getRoute_Path(); + + /** + * The meta object literal for the 'View' reference feature. + * + * + * @generated + */ + EReference ROUTE__VIEW = eINSTANCE.getRoute_View(); + + /** + * The meta object literal for the 'Extends' reference feature. + * + * @generated + */ + EReference ROUTE__EXTENDS = eINSTANCE.getRoute_Extends(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.Type Type}' class. + * + * @see org.obeonetwork.dsl.dart.Type + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getType() + * @generated + */ + EClass TYPE = eINSTANCE.getType(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.LibraryImpl Library} + * ' class. + * + * @see org.obeonetwork.dsl.dart.impl.LibraryImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getLibrary() + * @generated + */ + EClass LIBRARY = eINSTANCE.getLibrary(); + + /** + * The meta object literal for the 'Parts' reference list feature. + * + * @generated + */ + EReference LIBRARY__PARTS = eINSTANCE.getLibrary_Parts(); + + /** + * The meta object literal for the 'Typedefs' containment reference list feature. + * + * @generated + */ + EReference LIBRARY__TYPEDEFS = eINSTANCE.getLibrary_Typedefs(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference LIBRARY__METADATA = eINSTANCE.getLibrary_Metadata(); + + /** + * The meta object literal for the 'Variables' containment reference list feature. + * + * + * @generated + */ + EReference LIBRARY__VARIABLES = eINSTANCE.getLibrary_Variables(); + + /** + * The meta object literal for the 'Functions' containment reference list feature. + * + * + * @generated + */ + EReference LIBRARY__FUNCTIONS = eINSTANCE.getLibrary_Functions(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.PartImpl Part}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.PartImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getPart() + * @generated + */ + EClass PART = eINSTANCE.getPart(); + + /** + * The meta object literal for the 'Part Of' reference feature. + * + * @generated + */ + EReference PART__PART_OF = eINSTANCE.getPart_PartOf(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ClassifierImpl + * Classifier}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ClassifierImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getClassifier() + * @generated + */ + EClass CLASSIFIER = eINSTANCE.getClassifier(); + + /** + * The meta object literal for the 'Fields' containment reference list feature. + * + * @generated + */ + EReference CLASSIFIER__FIELDS = eINSTANCE.getClassifier_Fields(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference CLASSIFIER__METADATA = eINSTANCE.getClassifier_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.MetadataImpl + * Metadata}' class. + * + * @see org.obeonetwork.dsl.dart.impl.MetadataImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getMetadata() + * @generated + */ + EClass METADATA = eINSTANCE.getMetadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ClassImpl Class}' + * class. + * + * @see org.obeonetwork.dsl.dart.impl.ClassImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getClass_() + * @generated + */ + EClass CLASS = eINSTANCE.getClass_(); + + /** + * The meta object literal for the 'Abstract' attribute feature. + * + * @generated + */ + EAttribute CLASS__ABSTRACT = eINSTANCE.getClass_Abstract(); + + /** + * The meta object literal for the 'Extends' reference feature. + * + * @generated + */ + EReference CLASS__EXTENDS = eINSTANCE.getClass_Extends(); + + /** + * The meta object literal for the 'Implements' reference list feature. + * + * @generated + */ + EReference CLASS__IMPLEMENTS = eINSTANCE.getClass_Implements(); + + /** + * The meta object literal for the 'Mixins' reference list feature. + * + * @generated + */ + EReference CLASS__MIXINS = eINSTANCE.getClass_Mixins(); + + /** + * The meta object literal for the 'Constructors' containment reference list feature. + * + * + * @generated + */ + EReference CLASS__CONSTRUCTORS = eINSTANCE.getClass_Constructors(); + + /** + * The meta object literal for the 'Methods' containment reference list feature. + * + * @generated + */ + EReference CLASS__METHODS = eINSTANCE.getClass_Methods(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.VariableImpl + * Variable}' class. + * + * @see org.obeonetwork.dsl.dart.impl.VariableImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getVariable() + * @generated + */ + EClass VARIABLE = eINSTANCE.getVariable(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute VARIABLE__NAME = eINSTANCE.getVariable_Name(); + + /** + * The meta object literal for the 'Documentation' attribute feature. + * + * @generated + */ + EAttribute VARIABLE__DOCUMENTATION = eINSTANCE.getVariable_Documentation(); + + /** + * The meta object literal for the 'Type' reference feature. + * + * + * @generated + */ + EReference VARIABLE__TYPE = eINSTANCE.getVariable_Type(); + + /** + * The meta object literal for the 'Static' attribute feature. + * + * + * @generated + */ + EAttribute VARIABLE__STATIC = eINSTANCE.getVariable_Static(); + + /** + * The meta object literal for the 'Constant' attribute feature. + * + * @generated + */ + EAttribute VARIABLE__CONSTANT = eINSTANCE.getVariable_Constant(); + + /** + * The meta object literal for the 'Final' attribute feature. + * + * + * @generated + */ + EAttribute VARIABLE__FINAL = eINSTANCE.getVariable_Final(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + EAttribute VARIABLE__VALUE = eINSTANCE.getVariable_Value(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference VARIABLE__METADATA = eINSTANCE.getVariable_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ConstructorImpl + * Constructor}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ConstructorImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getConstructor() + * @generated + */ + EClass CONSTRUCTOR = eINSTANCE.getConstructor(); + + /** + * The meta object literal for the 'Constant' attribute feature. + * + * @generated + */ + EAttribute CONSTRUCTOR__CONSTANT = eINSTANCE.getConstructor_Constant(); + + /** + * The meta object literal for the 'Body' attribute feature. + * + * + * @generated + */ + EAttribute CONSTRUCTOR__BODY = eINSTANCE.getConstructor_Body(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference CONSTRUCTOR__METADATA = eINSTANCE.getConstructor_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.FunctionImpl + * Function}' class. + * + * @see org.obeonetwork.dsl.dart.impl.FunctionImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getFunction() + * @generated + */ + EClass FUNCTION = eINSTANCE.getFunction(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute FUNCTION__NAME = eINSTANCE.getFunction_Name(); + + /** + * The meta object literal for the 'Documentation' attribute feature. + * + * @generated + */ + EAttribute FUNCTION__DOCUMENTATION = eINSTANCE.getFunction_Documentation(); + + /** + * The meta object literal for the 'Type' reference feature. + * + * + * @generated + */ + EReference FUNCTION__TYPE = eINSTANCE.getFunction_Type(); + + /** + * The meta object literal for the 'Abstract' attribute feature. + * + * @generated + */ + EAttribute FUNCTION__ABSTRACT = eINSTANCE.getFunction_Abstract(); + + /** + * The meta object literal for the 'Static' attribute feature. + * + * + * @generated + */ + EAttribute FUNCTION__STATIC = eINSTANCE.getFunction_Static(); + + /** + * The meta object literal for the 'Body' attribute feature. + * + * + * @generated + */ + EAttribute FUNCTION__BODY = eINSTANCE.getFunction_Body(); + + /** + * The meta object literal for the 'Parameters' containment reference list feature. + * + * + * @generated + */ + EReference FUNCTION__PARAMETERS = eINSTANCE.getFunction_Parameters(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference FUNCTION__METADATA = eINSTANCE.getFunction_Metadata(); + + /** + * The meta object literal for the '{@link org.obeonetwork.dsl.dart.impl.ParameterImpl + * Parameter}' class. + * + * @see org.obeonetwork.dsl.dart.impl.ParameterImpl + * @see org.obeonetwork.dsl.dart.impl.DartPackageImpl#getParameter() + * @generated + */ + EClass PARAMETER = eINSTANCE.getParameter(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value(); + + /** + * The meta object literal for the 'Optional' attribute feature. + * + * @generated + */ + EAttribute PARAMETER__OPTIONAL = eINSTANCE.getParameter_Optional(); + + /** + * The meta object literal for the 'Type' reference feature. + * + * + * @generated + */ + EReference PARAMETER__TYPE = eINSTANCE.getParameter_Type(); + + /** + * The meta object literal for the 'Metadata' reference list feature. + * + * @generated + */ + EReference PARAMETER__METADATA = eINSTANCE.getParameter_Metadata(); + + } + +} // DartPackage diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartResource.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartResource.java new file mode 100644 index 0000000..09fb10a --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/DartResource.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Resource'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.DartResource#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.DartResource#getImports Imports}
  • + *
  • {@link org.obeonetwork.dsl.dart.DartResource#getExports Exports}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getDartResource() + * @model abstract="true" + * @generated + */ +public interface DartResource extends Asset { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Documentation' attribute. + *

+ * If the meaning of the 'Documentation' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Documentation' attribute. + * @see #setDocumentation(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getDartResource_Documentation() + * @model + * @generated + */ + String getDocumentation(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.DartResource#getDocumentation + * Documentation}' attribute. + * + * @param value + * the new value of the 'Documentation' attribute. + * @see #getDocumentation() + * @generated + */ + void setDocumentation(String value); + + /** + * Returns the value of the 'Imports' containment reference list. The list contents are of + * type {@link org.obeonetwork.dsl.dart.Import}. + *

+ * If the meaning of the 'Imports' containment reference list isn't clear, there really should be + * more of a description here... + *

+ * + * + * @return the value of the 'Imports' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getDartResource_Imports() + * @model containment="true" + * @generated + */ + EList getImports(); + + /** + * Returns the value of the 'Exports' containment reference list. The list contents are of + * type {@link org.obeonetwork.dsl.dart.Export}. + *

+ * If the meaning of the 'Exports' containment reference list isn't clear, there really should be + * more of a description here... + *

+ * + * + * @return the value of the 'Exports' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getDartResource_Exports() + * @model containment="true" + * @generated + */ + EList getExports(); + +} // DartResource diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Decorator.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Decorator.java new file mode 100644 index 0000000..0ec5d98 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Decorator.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Decorator'. + * + * @see org.obeonetwork.dsl.dart.DartPackage#getDecorator() + * @model + * @generated + */ +public interface Decorator extends org.obeonetwork.dsl.dart.Class, AngularType { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Selector' attribute. + *

+ * If the meaning of the 'Selector' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Selector' attribute. + * @see #setSelector(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getDecorator_Selector() + * @model + * @generated + */ + String getSelector(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Decorator#getSelector Selector}' + * attribute. + * + * @param value + * the new value of the 'Selector' attribute. + * @see #getSelector() + * @generated + */ + void setSelector(String value); + +} // Decorator diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Directive.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Directive.java new file mode 100644 index 0000000..52488c9 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Directive.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Directive'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Directive#getSelector Selector}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getDirective() + * @model abstract="true" + * @generated + */ +public interface Directive extends AngularType { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Selector' attribute. + *

+ * If the meaning of the 'Selector' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Selector' attribute. + * @see #setSelector(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getDirective_Selector() + * @model + * @generated + */ + String getSelector(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Directive#getSelector Selector}' + * attribute. + * + * @param value + * the new value of the 'Selector' attribute. + * @see #getSelector() + * @generated + */ + void setSelector(String value); + +} // Directive diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Element.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Element.java new file mode 100644 index 0000000..823f40d --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Element.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Element'. + * + * @see org.obeonetwork.dsl.dart.DartPackage#getElement() + * @model abstract="true" + * @generated + */ +public interface Element extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + +} // Element diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Export.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Export.java new file mode 100644 index 0000000..d754f27 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Export.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Export'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Export#getDartResources Dart Resources}
  • + *
  • {@link org.obeonetwork.dsl.dart.Export#getShow Show}
  • + *
  • {@link org.obeonetwork.dsl.dart.Export#getHide Hide}
  • + *
  • {@link org.obeonetwork.dsl.dart.Export#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getExport() + * @model + * @generated + */ +public interface Export extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Dart Resource' reference. + *

+ * If the meaning of the 'Dart Resource' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Dart Resource' reference. + * @see #setDartResource(DartResource) + * @see org.obeonetwork.dsl.dart.DartPackage#getExport_DartResource() + * @model + * @generated + */ + DartResource getDartResource(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Export#getDartResource Dart Resource}' + * reference. + * + * @param value + * the new value of the 'Dart Resource' reference. + * @see #getDartResource() + * @generated + */ + void setDartResource(DartResource value); + + /** + * Returns the value of the 'Show' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.DartResource}. + *

+ * If the meaning of the 'Show' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Show' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getExport_Show() + * @model + * @generated + */ + EList getShow(); + + /** + * Returns the value of the 'Hide' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.DartResource}. + *

+ * If the meaning of the 'Hide' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Hide' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getExport_Hide() + * @model + * @generated + */ + EList getHide(); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getExport_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Export diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Folder.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Folder.java new file mode 100644 index 0000000..1621c71 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Folder.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Folder'. + * + * @see org.obeonetwork.dsl.dart.DartPackage#getFolder() + * @model + * @generated + */ +public interface Folder extends Container, Asset { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + +} // Folder diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Formatter.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Formatter.java new file mode 100644 index 0000000..056ff39 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Formatter.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Formatter'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Formatter#getName Name}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getFormatter() + * @model + * @generated + */ +public interface Formatter extends org.obeonetwork.dsl.dart.Class, AngularType { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Formatter Name' attribute. + *

+ * If the meaning of the 'Formatter Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Formatter Name' attribute. + * @see #setFormatterName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getFormatter_FormatterName() + * @model + * @generated + */ + String getFormatterName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Formatter#getFormatterName + * Formatter Name}' attribute. + * + * @param value + * the new value of the 'Formatter Name' attribute. + * @see #getFormatterName() + * @generated + */ + void setFormatterName(String value); + +} // Formatter diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Function.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Function.java new file mode 100644 index 0000000..98e9ded --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Function.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Function'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Function#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#isAbstract Abstract}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#isStatic Static}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#getBody Body}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#getParameters Parameters}
  • + *
  • {@link org.obeonetwork.dsl.dart.Function#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction() + * @model + * @generated + */ +public interface Function extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Function#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Documentation' attribute. + *

+ * If the meaning of the 'Documentation' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Documentation' attribute. + * @see #setDocumentation(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Documentation() + * @model + * @generated + */ + String getDocumentation(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Function#getDocumentation + * Documentation}' attribute. + * + * @param value + * the new value of the 'Documentation' attribute. + * @see #getDocumentation() + * @generated + */ + void setDocumentation(String value); + + /** + * Returns the value of the 'Type' reference. + *

+ * If the meaning of the 'Type' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Type' reference. + * @see #setType(Type) + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Type() + * @model + * @generated + */ + Type getType(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Function#getType Type}' reference. + * + * @param value + * the new value of the 'Type' reference. + * @see #getType() + * @generated + */ + void setType(Type value); + + /** + * Returns the value of the 'Abstract' attribute. + *

+ * If the meaning of the 'Abstract' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Abstract' attribute. + * @see #setAbstract(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Abstract() + * @model + * @generated + */ + boolean isAbstract(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Function#isAbstract Abstract}' + * attribute. + * + * @param value + * the new value of the 'Abstract' attribute. + * @see #isAbstract() + * @generated + */ + void setAbstract(boolean value); + + /** + * Returns the value of the 'Static' attribute. + *

+ * If the meaning of the 'Static' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Static' attribute. + * @see #setStatic(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Static() + * @model + * @generated + */ + boolean isStatic(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Function#isStatic Static}' attribute. + * + * + * @param value + * the new value of the 'Static' attribute. + * @see #isStatic() + * @generated + */ + void setStatic(boolean value); + + /** + * Returns the value of the 'Body' attribute. + *

+ * If the meaning of the 'Body' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Body' attribute. + * @see #setBody(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Body() + * @model + * @generated + */ + String getBody(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Function#getBody Body}' attribute. + * + * @param value + * the new value of the 'Body' attribute. + * @see #getBody() + * @generated + */ + void setBody(String value); + + /** + * Returns the value of the 'Parameters' containment reference list. The list contents are + * of type {@link org.obeonetwork.dsl.dart.Parameter}. + *

+ * If the meaning of the 'Parameters' containment reference list isn't clear, there really should + * be more of a description here... + *

+ * + * + * @return the value of the 'Parameters' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Parameters() + * @model containment="true" + * @generated + */ + EList getParameters(); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getFunction_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Function diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/HTML.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/HTML.java new file mode 100644 index 0000000..56c5217 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/HTML.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'HTML'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.HTML#getUses Uses}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getHTML() + * @model + * @generated + */ +public interface HTML extends Asset { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Uses' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Asset}. + *

+ * If the meaning of the 'Uses' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Uses' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getHTML_Uses() + * @model + * @generated + */ + EList getUses(); + +} // HTML diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Import.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Import.java new file mode 100644 index 0000000..cc9ca01 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Import.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Import'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Import#getDartResources Dart Resources}
  • + *
  • {@link org.obeonetwork.dsl.dart.Import#getAs As}
  • + *
  • {@link org.obeonetwork.dsl.dart.Import#getShow Show}
  • + *
  • {@link org.obeonetwork.dsl.dart.Import#getHide Hide}
  • + *
  • {@link org.obeonetwork.dsl.dart.Import#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getImport() + * @model + * @generated + */ +public interface Import extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Dart Resource' reference. + *

+ * If the meaning of the 'Dart Resource' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Dart Resource' reference. + * @see #setDartResource(DartResource) + * @see org.obeonetwork.dsl.dart.DartPackage#getImport_DartResource() + * @model + * @generated + */ + DartResource getDartResource(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Import#getDartResource Dart Resource}' + * reference. + * + * @param value + * the new value of the 'Dart Resource' reference. + * @see #getDartResource() + * @generated + */ + void setDartResource(DartResource value); + + /** + * Returns the value of the 'As' attribute. + *

+ * If the meaning of the 'As' attribute isn't clear, there really should be more of a description + * here... + *

+ * + * + * @return the value of the 'As' attribute. + * @see #setAs(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getImport_As() + * @model + * @generated + */ + String getAs(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Import#getAs As}' attribute. + * + * @param value + * the new value of the 'As' attribute. + * @see #getAs() + * @generated + */ + void setAs(String value); + + /** + * Returns the value of the 'Show' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.DartResource}. + *

+ * If the meaning of the 'Show' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Show' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getImport_Show() + * @model + * @generated + */ + EList getShow(); + + /** + * Returns the value of the 'Hide' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.DartResource}. + *

+ * If the meaning of the 'Hide' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Hide' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getImport_Hide() + * @model + * @generated + */ + EList getHide(); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getImport_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Import diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Library.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Library.java new file mode 100644 index 0000000..f4c400e --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Library.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Library'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Library#getParts Parts}
  • + *
  • {@link org.obeonetwork.dsl.dart.Library#getTypedefs Typedefs}
  • + *
  • {@link org.obeonetwork.dsl.dart.Library#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getLibrary() + * @model + * @generated + */ +public interface Library extends DartResource { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Parts' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Part}. It is bidirectional and its opposite is ' + * {@link org.obeonetwork.dsl.dart.Part#getPartOf Part Of}'. + *

+ * If the meaning of the 'Parts' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Parts' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getLibrary_Parts() + * @see org.obeonetwork.dsl.dart.Part#getPartOf + * @model opposite="partOf" + * @generated + */ + EList getParts(); + + /** + * Returns the value of the 'Typedefs' containment reference list. The list contents are + * of type {@link org.obeonetwork.dsl.dart.Typedef}. + *

+ * If the meaning of the 'Typedefs' containment reference list isn't clear, there really should + * be more of a description here... + *

+ * + * + * @return the value of the 'Typedefs' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getLibrary_Typedefs() + * @model containment="true" + * @generated + */ + EList getTypedefs(); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getLibrary_Metadata() + * @model + * @generated + */ + EList getMetadata(); + + /** + * Returns the value of the 'Variables' containment reference list. The list contents are + * of type {@link org.obeonetwork.dsl.dart.Variable}. + *

+ * If the meaning of the 'Variables' containment reference list isn't clear, there really should + * be more of a description here... + *

+ * + * + * @return the value of the 'Variables' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getLibrary_Variables() + * @model containment="true" + * @generated + */ + EList getVariables(); + + /** + * Returns the value of the 'Functions' containment reference list. The list contents are + * of type {@link org.obeonetwork.dsl.dart.Function}. + *

+ * If the meaning of the 'Functions' containment reference list isn't clear, there really should + * be more of a description here... + *

+ * + * + * @return the value of the 'Functions' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getLibrary_Functions() + * @model containment="true" + * @generated + */ + EList getFunctions(); + +} // Library diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Metadata.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Metadata.java new file mode 100644 index 0000000..585a02f --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Metadata.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Metadata'. + * + * @see org.obeonetwork.dsl.dart.DartPackage#getMetadata() + * @model + * @generated + */ +public interface Metadata extends Classifier { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + +} // Metadata diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Module.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Module.java new file mode 100644 index 0000000..93c6d17 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Module.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Module'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Module#getTypes Types}
  • + *
  • {@link org.obeonetwork.dsl.dart.Module#getRoutes Routes}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getModule() + * @model + * @generated + */ +public interface Module extends Part { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Types' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.AngularType}. + *

+ * If the meaning of the 'Types' containment reference isn't clear, there really should be more + * of a description here... + *

+ * + * + * @return the value of the 'Types' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getModule_Types() + * @model + * @generated + */ + EList getTypes(); + + /** + * Returns the value of the 'Routes' containment reference list. The list contents are of + * type {@link org.obeonetwork.dsl.dart.Route}. + *

+ * If the meaning of the 'Routes' containment reference list isn't clear, there really should be + * more of a description here... + *

+ * + * + * @return the value of the 'Routes' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getModule_Routes() + * @model containment="true" + * @generated + */ + EList getRoutes(); + +} // Module diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Package.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Package.java new file mode 100644 index 0000000..6f45dd7 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Package.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Package'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Package#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Package#getLicense License}
  • + *
  • {@link org.obeonetwork.dsl.dart.Package#getCopyright Copyright}
  • + *
  • {@link org.obeonetwork.dsl.dart.Package#getDependencies Dependencies}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getPackage() + * @model + * @generated + */ +public interface Package extends Container { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getPackage_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Package#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'License' attribute. + *

+ * If the meaning of the 'License' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'License' attribute. + * @see #setLicense(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getPackage_License() + * @model + * @generated + */ + String getLicense(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Package#getLicense License}' attribute. + * + * + * @param value + * the new value of the 'License' attribute. + * @see #getLicense() + * @generated + */ + void setLicense(String value); + + /** + * Returns the value of the 'Dependencies' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Package}. + *

+ * If the meaning of the 'Dependencies' reference list isn't clear, there really should be more + * of a description here... + *

+ * + * + * @return the value of the 'Dependencies' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getPackage_Dependencies() + * @model + * @generated + */ + EList getDependencies(); + + /** + * Returns the value of the 'Project' container reference. It is bidirectional and its + * opposite is '{@link org.obeonetwork.dsl.dart.Project#getPackages Packages}'. + *

+ * If the meaning of the 'Project' container reference isn't clear, there really should be more + * of a description here... + *

+ * + * + * @return the value of the 'Project' container reference. + * @see #setProject(Project) + * @see org.obeonetwork.dsl.dart.DartPackage#getPackage_Project() + * @see org.obeonetwork.dsl.dart.Project#getPackages + * @model opposite="packages" transient="false" + * @generated + */ + Project getProject(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Package#getProject Project}' container + * reference. + * + * @param value + * the new value of the 'Project' container reference. + * @see #getProject() + * @generated + */ + void setProject(Project value); + +} // Package diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Parameter.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Parameter.java new file mode 100644 index 0000000..69a5ac0 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Parameter.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Parameter'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Parameter#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Parameter#getDefaultValue Default Value}
  • + *
  • {@link org.obeonetwork.dsl.dart.Parameter#isOptional Optional}
  • + *
  • {@link org.obeonetwork.dsl.dart.Parameter#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.Parameter#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getParameter() + * @model + * @generated + */ +public interface Parameter extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getParameter_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Parameter#getName Name}' attribute. + * + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Value' attribute. + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getParameter_Value() + * @model + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Parameter#getValue Value}' attribute. + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + + /** + * Returns the value of the 'Optional' attribute. + *

+ * If the meaning of the 'Optional' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Optional' attribute. + * @see #setOptional(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getParameter_Optional() + * @model + * @generated + */ + boolean isOptional(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Parameter#isOptional Optional}' + * attribute. + * + * @param value + * the new value of the 'Optional' attribute. + * @see #isOptional() + * @generated + */ + void setOptional(boolean value); + + /** + * Returns the value of the 'Type' reference. + *

+ * If the meaning of the 'Type' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Type' reference. + * @see #setType(Type) + * @see org.obeonetwork.dsl.dart.DartPackage#getParameter_Type() + * @model + * @generated + */ + Type getType(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Parameter#getType Type}' reference. + * + * + * @param value + * the new value of the 'Type' reference. + * @see #getType() + * @generated + */ + void setType(Type value); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getParameter_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Parameter diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Part.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Part.java new file mode 100644 index 0000000..aacb319 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Part.java @@ -0,0 +1,63 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +/** + * A representation of the model object 'Part'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Part#getPartOf Part Of}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getPart() + * @model abstract="true" + * @generated + */ +public interface Part extends DartResource { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Part Of' reference. It is bidirectional and its opposite is ' + * {@link org.obeonetwork.dsl.dart.Library#getParts Parts}'. + *

+ * If the meaning of the 'Part Of' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Part Of' reference. + * @see #setPartOf(Library) + * @see org.obeonetwork.dsl.dart.DartPackage#getPart_PartOf() + * @see org.obeonetwork.dsl.dart.Library#getParts + * @model opposite="parts" + * @generated + */ + Library getPartOf(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Part#getPartOf Part Of}' reference. + * + * + * @param value + * the new value of the 'Part Of' reference. + * @see #getPartOf() + * @generated + */ + void setPartOf(Library value); + +} // Part diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Project.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Project.java new file mode 100644 index 0000000..9160cff --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Project.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Project'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Project#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Project#getPackages Packages}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getProject() + * @model + * @generated + */ +public interface Project extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getProject_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Project#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Packages' containment reference list. The list contents are + * of type {@link org.obeonetwork.dsl.dart.Package}. It is bidirectional and its opposite is ' + * {@link org.obeonetwork.dsl.dart.Package#getProject Project}'. + *

+ * If the meaning of the 'Packages' containment reference list isn't clear, there really should + * be more of a description here... + *

+ * + * + * @return the value of the 'Packages' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getProject_Packages() + * @see org.obeonetwork.dsl.dart.Package#getProject + * @model opposite="project" containment="true" + * @generated + */ + EList getPackages(); + +} // Project diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Route.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Route.java new file mode 100644 index 0000000..8bbbe73 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Route.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Route'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Route#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Route#getPath Path}
  • + *
  • {@link org.obeonetwork.dsl.dart.Route#getView View}
  • + *
  • {@link org.obeonetwork.dsl.dart.Route#getExtends Extends}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getRoute() + * @model + * @generated + */ +public interface Route extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getRoute_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Route#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Path' attribute. + *

+ * If the meaning of the 'Path' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getRoute_Path() + * @model + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Route#getPath Path}' attribute. + * + * @param value + * the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the 'View' reference. + *

+ * If the meaning of the 'View' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'View' reference. + * @see #setView(HTML) + * @see org.obeonetwork.dsl.dart.DartPackage#getRoute_View() + * @model + * @generated + */ + HTML getView(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Route#getView View}' reference. + * + * @param value + * the new value of the 'View' reference. + * @see #getView() + * @generated + */ + void setView(HTML value); + + /** + * Returns the value of the 'Extends' reference. + *

+ * If the meaning of the 'Extends' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Extends' reference. + * @see #setExtends(Route) + * @see org.obeonetwork.dsl.dart.DartPackage#getRoute_Extends() + * @model + * @generated + */ + Route getExtends(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Route#getExtends Extends}' reference. + * + * + * @param value + * the new value of the 'Extends' reference. + * @see #getExtends() + * @generated + */ + void setExtends(Route value); + +} // Route diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Stylesheet.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Stylesheet.java new file mode 100644 index 0000000..844e1aa --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Stylesheet.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Stylesheet'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Stylesheet#getImports Imports}
  • + *
  • {@link org.obeonetwork.dsl.dart.Stylesheet#isPartial Partial}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getStylesheet() + * @model + * @generated + */ +public interface Stylesheet extends Asset { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Imports' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Stylesheet}. + *

+ * If the meaning of the 'Imports' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Imports' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getStylesheet_Imports() + * @model + * @generated + */ + EList getImports(); + + /** + * Returns the value of the 'Partial' attribute. + *

+ * If the meaning of the 'Partial' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Partial' attribute. + * @see #isSetPartial() + * @see #unsetPartial() + * @see #setPartial(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getStylesheet_Partial() + * @model unsettable="true" volatile="true" derived="true" + * @generated + */ + boolean isPartial(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Stylesheet#isPartial Partial}' + * attribute. + * + * @param value + * the new value of the 'Partial' attribute. + * @see #isSetPartial() + * @see #unsetPartial() + * @see #isPartial() + * @generated + */ + void setPartial(boolean value); + + /** + * Unsets the value of the '{@link org.obeonetwork.dsl.dart.Stylesheet#isPartial Partial}' + * attribute. + * + * @see #isSetPartial() + * @see #isPartial() + * @see #setPartial(boolean) + * @generated + */ + void unsetPartial(); + + /** + * Returns whether the value of the '{@link org.obeonetwork.dsl.dart.Stylesheet#isPartial + * Partial}' attribute is set. + * + * @return whether the value of the 'Partial' attribute is set. + * @see #unsetPartial() + * @see #isPartial() + * @see #setPartial(boolean) + * @generated + */ + boolean isSetPartial(); + +} // Stylesheet diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Type.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Type.java new file mode 100644 index 0000000..6a16c8a --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Type.java @@ -0,0 +1,30 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Type'. + * + * @see org.obeonetwork.dsl.dart.DartPackage#getType() + * @model interface="true" abstract="true" + * @generated + */ +public interface Type extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + +} // Type diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Typedef.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Typedef.java new file mode 100644 index 0000000..00b71c3 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Typedef.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +/** + * A representation of the model object 'Typedef'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Typedef#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Typedef#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.Typedef#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.Typedef#getParameters Parameters}
  • + *
  • {@link org.obeonetwork.dsl.dart.Typedef#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getTypedef() + * @model + * @generated + */ +public interface Typedef extends Type { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getTypedef_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Typedef#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Documentation' attribute. + *

+ * If the meaning of the 'Documentation' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Documentation' attribute. + * @see #setDocumentation(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getTypedef_Documentation() + * @model + * @generated + */ + String getDocumentation(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Typedef#getDocumentation Documentation} + * ' attribute. + * + * @param value + * the new value of the 'Documentation' attribute. + * @see #getDocumentation() + * @generated + */ + void setDocumentation(String value); + + /** + * Returns the value of the 'Type' reference. + *

+ * If the meaning of the 'Type' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Type' reference. + * @see #setType(Type) + * @see org.obeonetwork.dsl.dart.DartPackage#getTypedef_Type() + * @model + * @generated + */ + Type getType(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Typedef#getType Type}' reference. + * + * @param value + * the new value of the 'Type' reference. + * @see #getType() + * @generated + */ + void setType(Type value); + + /** + * Returns the value of the 'Parameters' containment reference list. The list contents are + * of type {@link org.obeonetwork.dsl.dart.Parameter}. + *

+ * If the meaning of the 'Parameters' containment reference list isn't clear, there really should + * be more of a description here... + *

+ * + * + * @return the value of the 'Parameters' containment reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getTypedef_Parameters() + * @model containment="true" + * @generated + */ + EList getParameters(); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getTypedef_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Typedef diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Variable.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Variable.java new file mode 100644 index 0000000..aad0070 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/Variable.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * A representation of the model object 'Variable'. + *

+ * The following features are supported: + *

    + *
  • {@link org.obeonetwork.dsl.dart.Variable#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#isStatic Static}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#isConstant Constant}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#isFinal Final}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#getValue Value}
  • + *
  • {@link org.obeonetwork.dsl.dart.Variable#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable() + * @model + * @generated + */ +public interface Variable extends EObject { + /** + * + * + * @generated + */ + String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Returns the value of the 'Name' attribute. + *

+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#getName Name}' attribute. + * + * @param value + * the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Documentation' attribute. + *

+ * If the meaning of the 'Documentation' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Documentation' attribute. + * @see #setDocumentation(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Documentation() + * @model + * @generated + */ + String getDocumentation(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#getDocumentation + * Documentation}' attribute. + * + * @param value + * the new value of the 'Documentation' attribute. + * @see #getDocumentation() + * @generated + */ + void setDocumentation(String value); + + /** + * Returns the value of the 'Type' reference. + *

+ * If the meaning of the 'Type' reference isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Type' reference. + * @see #setType(Type) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Type() + * @model + * @generated + */ + Type getType(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#getType Type}' reference. + * + * @param value + * the new value of the 'Type' reference. + * @see #getType() + * @generated + */ + void setType(Type value); + + /** + * Returns the value of the 'Static' attribute. + *

+ * If the meaning of the 'Static' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Static' attribute. + * @see #setStatic(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Static() + * @model + * @generated + */ + boolean isStatic(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#isStatic Static}' attribute. + * + * + * @param value + * the new value of the 'Static' attribute. + * @see #isStatic() + * @generated + */ + void setStatic(boolean value); + + /** + * Returns the value of the 'Constant' attribute. + *

+ * If the meaning of the 'Constant' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Constant' attribute. + * @see #setConstant(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Constant() + * @model + * @generated + */ + boolean isConstant(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#isConstant Constant}' + * attribute. + * + * @param value + * the new value of the 'Constant' attribute. + * @see #isConstant() + * @generated + */ + void setConstant(boolean value); + + /** + * Returns the value of the 'Final' attribute. + *

+ * If the meaning of the 'Final' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Final' attribute. + * @see #setFinal(boolean) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Final() + * @model + * @generated + */ + boolean isFinal(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#isFinal Final}' attribute. + * + * + * @param value + * the new value of the 'Final' attribute. + * @see #isFinal() + * @generated + */ + void setFinal(boolean value); + + /** + * Returns the value of the 'Value' attribute. + *

+ * If the meaning of the 'Value' attribute isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Value() + * @model + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.obeonetwork.dsl.dart.Variable#getValue Value}' attribute. + * + * + * @param value + * the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + + /** + * Returns the value of the 'Metadata' reference list. The list contents are of type + * {@link org.obeonetwork.dsl.dart.Metadata}. + *

+ * If the meaning of the 'Metadata' reference list isn't clear, there really should be more of a + * description here... + *

+ * + * + * @return the value of the 'Metadata' reference list. + * @see org.obeonetwork.dsl.dart.DartPackage#getVariable_Metadata() + * @model + * @generated + */ + EList getMetadata(); + +} // Variable diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/AssetImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/AssetImpl.java new file mode 100644 index 0000000..58df076 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/AssetImpl.java @@ -0,0 +1,279 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * An implementation of the model object 'Asset'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.AssetImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class AssetImpl extends MinimalEObjectImpl.Container implements Asset { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected AssetImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.ASSET; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.ASSET__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public org.obeonetwork.dsl.dart.Container getContainer() { + if (eContainerFeatureID() != DartPackage.ASSET__CONTAINER) + return null; + return (org.obeonetwork.dsl.dart.Container)eInternalContainer(); + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetContainer(org.obeonetwork.dsl.dart.Container newContainer, + NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject)newContainer, DartPackage.ASSET__CONTAINER, msgs); + return msgs; + } + + /** + * + * + * @generated + */ + public void setContainer(org.obeonetwork.dsl.dart.Container newContainer) { + if (newContainer != eInternalContainer() + || (eContainerFeatureID() != DartPackage.ASSET__CONTAINER && newContainer != null)) { + if (EcoreUtil.isAncestor(this, newContainer)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newContainer != null) + msgs = ((InternalEObject)newContainer).eInverseAdd(this, DartPackage.CONTAINER__ASSETS, + org.obeonetwork.dsl.dart.Container.class, msgs); + msgs = basicSetContainer(newContainer, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.ASSET__CONTAINER, newContainer, + newContainer)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.ASSET__CONTAINER: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetContainer((org.obeonetwork.dsl.dart.Container)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.ASSET__CONTAINER: + return basicSetContainer(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case DartPackage.ASSET__CONTAINER: + return eInternalContainer().eInverseRemove(this, DartPackage.CONTAINER__ASSETS, + org.obeonetwork.dsl.dart.Container.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.ASSET__NAME: + return getName(); + case DartPackage.ASSET__CONTAINER: + return getContainer(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.ASSET__NAME: + setName((String)newValue); + return; + case DartPackage.ASSET__CONTAINER: + setContainer((org.obeonetwork.dsl.dart.Container)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.ASSET__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.ASSET__CONTAINER: + setContainer((org.obeonetwork.dsl.dart.Container)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.ASSET__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.ASSET__CONTAINER: + return getContainer() != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // AssetImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ClassImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ClassImpl.java new file mode 100644 index 0000000..db6ff4c --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ClassImpl.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Function; + +/** + * An implementation of the model object 'Class'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassImpl#isAbstract Abstract}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassImpl#getExtends Extends}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassImpl#getImplements Implements}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassImpl#getMixins Mixins}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassImpl#getMethods Methods}
  • + *
+ *

+ * + * @generated + */ +public class ClassImpl extends ClassifierImpl implements org.obeonetwork.dsl.dart.Class { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #isAbstract() Abstract}' attribute. + * + * + * @see #isAbstract() + * @generated + * @ordered + */ + protected static final boolean ABSTRACT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isAbstract() Abstract}' attribute. + * + * + * @see #isAbstract() + * @generated + * @ordered + */ + protected boolean abstract_ = ABSTRACT_EDEFAULT; + + /** + * The cached value of the '{@link #getExtends() Extends}' reference. + * + * + * @see #getExtends() + * @generated + * @ordered + */ + protected org.obeonetwork.dsl.dart.Class extends_; + + /** + * The cached value of the '{@link #getImplements() Implements}' reference list. + * + * @see #getImplements() + * @generated + * @ordered + */ + protected EList implements_; + + /** + * The cached value of the '{@link #getMixins() Mixins}' reference list. + * + * + * @see #getMixins() + * @generated + * @ordered + */ + protected EList mixins; + + /** + * The cached value of the '{@link #getConstructors() Constructors}' containment reference list. + * + * + * @see #getConstructors() + * @generated + * @ordered + */ + protected EList constructors; + + /** + * The cached value of the '{@link #getMethods() Methods}' containment reference list. + * + * @see #getMethods() + * @generated + * @ordered + */ + protected EList methods; + + /** + * + * + * @generated + */ + protected ClassImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.CLASS; + } + + /** + * + * + * @generated + */ + public boolean isAbstract() { + return abstract_; + } + + /** + * + * + * @generated + */ + public void setAbstract(boolean newAbstract) { + boolean oldAbstract = abstract_; + abstract_ = newAbstract; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.CLASS__ABSTRACT, oldAbstract, + abstract_)); + } + + /** + * + * + * @generated + */ + public org.obeonetwork.dsl.dart.Class getExtends() { + if (extends_ != null && extends_.eIsProxy()) { + InternalEObject oldExtends = (InternalEObject)extends_; + extends_ = (org.obeonetwork.dsl.dart.Class)eResolveProxy(oldExtends); + if (extends_ != oldExtends) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.CLASS__EXTENDS, + oldExtends, extends_)); + } + } + return extends_; + } + + /** + * + * + * @generated + */ + public org.obeonetwork.dsl.dart.Class basicGetExtends() { + return extends_; + } + + /** + * + * + * @generated + */ + public void setExtends(org.obeonetwork.dsl.dart.Class newExtends) { + org.obeonetwork.dsl.dart.Class oldExtends = extends_; + extends_ = newExtends; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.CLASS__EXTENDS, oldExtends, + extends_)); + } + + /** + * + * + * @generated + */ + public EList getImplements() { + if (implements_ == null) { + implements_ = new EObjectResolvingEList( + org.obeonetwork.dsl.dart.Class.class, this, DartPackage.CLASS__IMPLEMENTS); + } + return implements_; + } + + /** + * + * + * @generated + */ + public EList getMixins() { + if (mixins == null) { + mixins = new EObjectResolvingEList( + org.obeonetwork.dsl.dart.Class.class, this, DartPackage.CLASS__MIXINS); + } + return mixins; + } + + /** + * + * + * @generated + */ + public EList getConstructors() { + if (constructors == null) { + constructors = new EObjectContainmentEList(Constructor.class, this, + DartPackage.CLASS__CONSTRUCTORS); + } + return constructors; + } + + /** + * + * + * @generated + */ + public EList getMethods() { + if (methods == null) { + methods = new EObjectContainmentEList(Function.class, this, DartPackage.CLASS__METHODS); + } + return methods; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.CLASS__CONSTRUCTORS: + return ((InternalEList)getConstructors()).basicRemove(otherEnd, msgs); + case DartPackage.CLASS__METHODS: + return ((InternalEList)getMethods()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.CLASS__ABSTRACT: + return isAbstract(); + case DartPackage.CLASS__EXTENDS: + if (resolve) + return getExtends(); + return basicGetExtends(); + case DartPackage.CLASS__IMPLEMENTS: + return getImplements(); + case DartPackage.CLASS__MIXINS: + return getMixins(); + case DartPackage.CLASS__CONSTRUCTORS: + return getConstructors(); + case DartPackage.CLASS__METHODS: + return getMethods(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.CLASS__ABSTRACT: + setAbstract((Boolean)newValue); + return; + case DartPackage.CLASS__EXTENDS: + setExtends((org.obeonetwork.dsl.dart.Class)newValue); + return; + case DartPackage.CLASS__IMPLEMENTS: + getImplements().clear(); + getImplements().addAll((Collection)newValue); + return; + case DartPackage.CLASS__MIXINS: + getMixins().clear(); + getMixins().addAll((Collection)newValue); + return; + case DartPackage.CLASS__CONSTRUCTORS: + getConstructors().clear(); + getConstructors().addAll((Collection)newValue); + return; + case DartPackage.CLASS__METHODS: + getMethods().clear(); + getMethods().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.CLASS__ABSTRACT: + setAbstract(ABSTRACT_EDEFAULT); + return; + case DartPackage.CLASS__EXTENDS: + setExtends((org.obeonetwork.dsl.dart.Class)null); + return; + case DartPackage.CLASS__IMPLEMENTS: + getImplements().clear(); + return; + case DartPackage.CLASS__MIXINS: + getMixins().clear(); + return; + case DartPackage.CLASS__CONSTRUCTORS: + getConstructors().clear(); + return; + case DartPackage.CLASS__METHODS: + getMethods().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.CLASS__ABSTRACT: + return abstract_ != ABSTRACT_EDEFAULT; + case DartPackage.CLASS__EXTENDS: + return extends_ != null; + case DartPackage.CLASS__IMPLEMENTS: + return implements_ != null && !implements_.isEmpty(); + case DartPackage.CLASS__MIXINS: + return mixins != null && !mixins.isEmpty(); + case DartPackage.CLASS__CONSTRUCTORS: + return constructors != null && !constructors.isEmpty(); + case DartPackage.CLASS__METHODS: + return methods != null && !methods.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (abstract: "); + result.append(abstract_); + result.append(')'); + return result.toString(); + } + +} // ClassImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ClassifierImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ClassifierImpl.java new file mode 100644 index 0000000..1f76a34 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ClassifierImpl.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.Classifier; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Variable; + +/** + * An implementation of the model object 'Classifier'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassifierImpl#getFields Fields}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ClassifierImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public abstract class ClassifierImpl extends PartImpl implements Classifier { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getFields() Fields}' containment reference list. + * + * @see #getFields() + * @generated + * @ordered + */ + protected EList fields; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected ClassifierImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.CLASSIFIER; + } + + /** + * + * + * @generated + */ + public EList getFields() { + if (fields == null) { + fields = new EObjectContainmentEList(Variable.class, this, + DartPackage.CLASSIFIER__FIELDS); + } + return fields; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.CLASSIFIER__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.CLASSIFIER__FIELDS: + return ((InternalEList)getFields()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.CLASSIFIER__FIELDS: + return getFields(); + case DartPackage.CLASSIFIER__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.CLASSIFIER__FIELDS: + getFields().clear(); + getFields().addAll((Collection)newValue); + return; + case DartPackage.CLASSIFIER__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.CLASSIFIER__FIELDS: + getFields().clear(); + return; + case DartPackage.CLASSIFIER__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.CLASSIFIER__FIELDS: + return fields != null && !fields.isEmpty(); + case DartPackage.CLASSIFIER__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ClassifierImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ComponentImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ComponentImpl.java new file mode 100644 index 0000000..335b028 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ComponentImpl.java @@ -0,0 +1,363 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.obeonetwork.dsl.dart.Component; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.HTML; +import org.obeonetwork.dsl.dart.Stylesheet; + +/** + * An implementation of the model object 'Component'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ComponentImpl#getPublishAs Publish As}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ComponentImpl#getStylesheet Stylesheet}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ComponentImpl#getTemplate Template}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ComponentImpl#getSelector Selector}
  • + *
+ *

+ * + * @generated + */ +public class ComponentImpl extends ClassImpl implements Component { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getPublishAs() Publish As}' attribute. + * + * @see #getPublishAs() + * @generated + * @ordered + */ + protected static final String PUBLISH_AS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublishAs() Publish As}' attribute. + * + * @see #getPublishAs() + * @generated + * @ordered + */ + protected String publishAs = PUBLISH_AS_EDEFAULT; + + /** + * The cached value of the '{@link #getStylesheet() Stylesheet}' reference. + * + * @see #getStylesheet() + * @generated + * @ordered + */ + protected Stylesheet stylesheet; + + /** + * The cached value of the '{@link #getTemplate() Template}' reference. + * + * + * @see #getTemplate() + * @generated + * @ordered + */ + protected HTML template; + + /** + * The default value of the '{@link #getSelector() Selector}' attribute. + * + * + * @see #getSelector() + * @generated + * @ordered + */ + protected static final String SELECTOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSelector() Selector}' attribute. + * + * + * @see #getSelector() + * @generated + * @ordered + */ + protected String selector = SELECTOR_EDEFAULT; + + /** + * + * + * @generated + */ + protected ComponentImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.COMPONENT; + } + + /** + * + * + * @generated + */ + public String getPublishAs() { + return publishAs; + } + + /** + * + * + * @generated + */ + public void setPublishAs(String newPublishAs) { + String oldPublishAs = publishAs; + publishAs = newPublishAs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.COMPONENT__PUBLISH_AS, + oldPublishAs, publishAs)); + } + + /** + * + * + * @generated + */ + public Stylesheet getStylesheet() { + if (stylesheet != null && stylesheet.eIsProxy()) { + InternalEObject oldStylesheet = (InternalEObject)stylesheet; + stylesheet = (Stylesheet)eResolveProxy(oldStylesheet); + if (stylesheet != oldStylesheet) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + DartPackage.COMPONENT__STYLESHEET, oldStylesheet, stylesheet)); + } + } + return stylesheet; + } + + /** + * + * + * @generated + */ + public Stylesheet basicGetStylesheet() { + return stylesheet; + } + + /** + * + * + * @generated + */ + public void setStylesheet(Stylesheet newStylesheet) { + Stylesheet oldStylesheet = stylesheet; + stylesheet = newStylesheet; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.COMPONENT__STYLESHEET, + oldStylesheet, stylesheet)); + } + + /** + * + * + * @generated + */ + public HTML getTemplate() { + if (template != null && template.eIsProxy()) { + InternalEObject oldTemplate = (InternalEObject)template; + template = (HTML)eResolveProxy(oldTemplate); + if (template != oldTemplate) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + DartPackage.COMPONENT__TEMPLATE, oldTemplate, template)); + } + } + return template; + } + + /** + * + * + * @generated + */ + public HTML basicGetTemplate() { + return template; + } + + /** + * + * + * @generated + */ + public void setTemplate(HTML newTemplate) { + HTML oldTemplate = template; + template = newTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.COMPONENT__TEMPLATE, + oldTemplate, template)); + } + + /** + * + * + * @generated + */ + public String getSelector() { + return selector; + } + + /** + * + * + * @generated + */ + public void setSelector(String newSelector) { + String oldSelector = selector; + selector = newSelector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.COMPONENT__SELECTOR, + oldSelector, selector)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.COMPONENT__PUBLISH_AS: + return getPublishAs(); + case DartPackage.COMPONENT__STYLESHEET: + if (resolve) + return getStylesheet(); + return basicGetStylesheet(); + case DartPackage.COMPONENT__TEMPLATE: + if (resolve) + return getTemplate(); + return basicGetTemplate(); + case DartPackage.COMPONENT__SELECTOR: + return getSelector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.COMPONENT__PUBLISH_AS: + setPublishAs((String)newValue); + return; + case DartPackage.COMPONENT__STYLESHEET: + setStylesheet((Stylesheet)newValue); + return; + case DartPackage.COMPONENT__TEMPLATE: + setTemplate((HTML)newValue); + return; + case DartPackage.COMPONENT__SELECTOR: + setSelector((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.COMPONENT__PUBLISH_AS: + setPublishAs(PUBLISH_AS_EDEFAULT); + return; + case DartPackage.COMPONENT__STYLESHEET: + setStylesheet((Stylesheet)null); + return; + case DartPackage.COMPONENT__TEMPLATE: + setTemplate((HTML)null); + return; + case DartPackage.COMPONENT__SELECTOR: + setSelector(SELECTOR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.COMPONENT__PUBLISH_AS: + return PUBLISH_AS_EDEFAULT == null ? publishAs != null : !PUBLISH_AS_EDEFAULT + .equals(publishAs); + case DartPackage.COMPONENT__STYLESHEET: + return stylesheet != null; + case DartPackage.COMPONENT__TEMPLATE: + return template != null; + case DartPackage.COMPONENT__SELECTOR: + return SELECTOR_EDEFAULT == null ? selector != null : !SELECTOR_EDEFAULT.equals(selector); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (publishAs: "); + result.append(publishAs); + result.append(", selector: "); + result.append(selector); + result.append(')'); + return result.toString(); + } + +} // ComponentImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ConstructorImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ConstructorImpl.java new file mode 100644 index 0000000..2ecc632 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ConstructorImpl.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Metadata; + +/** + * An implementation of the model object 'Constructor'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ConstructorImpl#isConstant Constant}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ConstructorImpl#getBody Body}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ConstructorImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class ConstructorImpl extends MinimalEObjectImpl.Container implements Constructor { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #isConstant() Constant}' attribute. + * + * + * @see #isConstant() + * @generated + * @ordered + */ + protected static final boolean CONSTANT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isConstant() Constant}' attribute. + * + * + * @see #isConstant() + * @generated + * @ordered + */ + protected boolean constant = CONSTANT_EDEFAULT; + + /** + * The default value of the '{@link #getBody() Body}' attribute. + * + * @see #getBody() + * @generated + * @ordered + */ + protected static final String BODY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBody() Body}' attribute. + * + * @see #getBody() + * @generated + * @ordered + */ + protected String body = BODY_EDEFAULT; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected ConstructorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.CONSTRUCTOR; + } + + /** + * + * + * @generated + */ + public boolean isConstant() { + return constant; + } + + /** + * + * + * @generated + */ + public void setConstant(boolean newConstant) { + boolean oldConstant = constant; + constant = newConstant; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.CONSTRUCTOR__CONSTANT, + oldConstant, constant)); + } + + /** + * + * + * @generated + */ + public String getBody() { + return body; + } + + /** + * + * + * @generated + */ + public void setBody(String newBody) { + String oldBody = body; + body = newBody; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.CONSTRUCTOR__BODY, oldBody, + body)); + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.CONSTRUCTOR__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.CONSTRUCTOR__CONSTANT: + return isConstant(); + case DartPackage.CONSTRUCTOR__BODY: + return getBody(); + case DartPackage.CONSTRUCTOR__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.CONSTRUCTOR__CONSTANT: + setConstant((Boolean)newValue); + return; + case DartPackage.CONSTRUCTOR__BODY: + setBody((String)newValue); + return; + case DartPackage.CONSTRUCTOR__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.CONSTRUCTOR__CONSTANT: + setConstant(CONSTANT_EDEFAULT); + return; + case DartPackage.CONSTRUCTOR__BODY: + setBody(BODY_EDEFAULT); + return; + case DartPackage.CONSTRUCTOR__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.CONSTRUCTOR__CONSTANT: + return constant != CONSTANT_EDEFAULT; + case DartPackage.CONSTRUCTOR__BODY: + return BODY_EDEFAULT == null ? body != null : !BODY_EDEFAULT.equals(body); + case DartPackage.CONSTRUCTOR__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (constant: "); + result.append(constant); + result.append(", body: "); + result.append(body); + result.append(')'); + return result.toString(); + } + +} // ConstructorImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ContainerImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ContainerImpl.java new file mode 100644 index 0000000..5c3b897 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ContainerImpl.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * An implementation of the model object 'Container'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ContainerImpl#getAssets Assets}
  • + *
+ *

+ * + * @generated + */ +public abstract class ContainerImpl extends MinimalEObjectImpl.Container implements org.obeonetwork.dsl.dart.Container { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getAssets() Assets}' containment reference list. + * + * @see #getAssets() + * @generated + * @ordered + */ + protected EList assets; + + /** + * + * + * @generated + */ + protected ContainerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.CONTAINER; + } + + /** + * + * + * @generated + */ + public EList getAssets() { + if (assets == null) { + assets = new EObjectContainmentWithInverseEList(Asset.class, this, + DartPackage.CONTAINER__ASSETS, DartPackage.ASSET__CONTAINER); + } + return assets; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.CONTAINER__ASSETS: + return ((InternalEList)(InternalEList)getAssets()).basicAdd(otherEnd, + msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.CONTAINER__ASSETS: + return ((InternalEList)getAssets()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.CONTAINER__ASSETS: + return getAssets(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.CONTAINER__ASSETS: + getAssets().clear(); + getAssets().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.CONTAINER__ASSETS: + getAssets().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.CONTAINER__ASSETS: + return assets != null && !assets.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ContainerImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ControllerImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ControllerImpl.java new file mode 100644 index 0000000..469c1d9 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ControllerImpl.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.obeonetwork.dsl.dart.Controller; +import org.obeonetwork.dsl.dart.DartPackage; + +/** + * An implementation of the model object 'Controller'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ControllerImpl#getPublishAs Publish As}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ControllerImpl#getSelector Selector}
  • + *
+ *

+ * + * @generated + */ +public class ControllerImpl extends ClassImpl implements Controller { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getPublishAs() Publish As}' attribute. + * + * @see #getPublishAs() + * @generated + * @ordered + */ + protected static final String PUBLISH_AS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublishAs() Publish As}' attribute. + * + * @see #getPublishAs() + * @generated + * @ordered + */ + protected String publishAs = PUBLISH_AS_EDEFAULT; + + /** + * The default value of the '{@link #getSelector() Selector}' attribute. + * + * + * @see #getSelector() + * @generated + * @ordered + */ + protected static final String SELECTOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSelector() Selector}' attribute. + * + * + * @see #getSelector() + * @generated + * @ordered + */ + protected String selector = SELECTOR_EDEFAULT; + + /** + * + * + * @generated + */ + protected ControllerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.CONTROLLER; + } + + /** + * + * + * @generated + */ + public String getPublishAs() { + return publishAs; + } + + /** + * + * + * @generated + */ + public void setPublishAs(String newPublishAs) { + String oldPublishAs = publishAs; + publishAs = newPublishAs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.CONTROLLER__PUBLISH_AS, + oldPublishAs, publishAs)); + } + + /** + * + * + * @generated + */ + public String getSelector() { + return selector; + } + + /** + * + * + * @generated + */ + public void setSelector(String newSelector) { + String oldSelector = selector; + selector = newSelector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.CONTROLLER__SELECTOR, + oldSelector, selector)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.CONTROLLER__PUBLISH_AS: + return getPublishAs(); + case DartPackage.CONTROLLER__SELECTOR: + return getSelector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.CONTROLLER__PUBLISH_AS: + setPublishAs((String)newValue); + return; + case DartPackage.CONTROLLER__SELECTOR: + setSelector((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.CONTROLLER__PUBLISH_AS: + setPublishAs(PUBLISH_AS_EDEFAULT); + return; + case DartPackage.CONTROLLER__SELECTOR: + setSelector(SELECTOR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.CONTROLLER__PUBLISH_AS: + return PUBLISH_AS_EDEFAULT == null ? publishAs != null : !PUBLISH_AS_EDEFAULT + .equals(publishAs); + case DartPackage.CONTROLLER__SELECTOR: + return SELECTOR_EDEFAULT == null ? selector != null : !SELECTOR_EDEFAULT.equals(selector); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (publishAs: "); + result.append(publishAs); + result.append(", selector: "); + result.append(selector); + result.append(')'); + return result.toString(); + } + +} // ControllerImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartFactoryImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartFactoryImpl.java new file mode 100644 index 0000000..b77411d --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartFactoryImpl.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.Component; +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.Controller; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Decorator; +import org.obeonetwork.dsl.dart.Export; +import org.obeonetwork.dsl.dart.Folder; +import org.obeonetwork.dsl.dart.Formatter; +import org.obeonetwork.dsl.dart.Function; +import org.obeonetwork.dsl.dart.HTML; +import org.obeonetwork.dsl.dart.Import; +import org.obeonetwork.dsl.dart.Library; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Module; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Project; +import org.obeonetwork.dsl.dart.Route; +import org.obeonetwork.dsl.dart.Stylesheet; +import org.obeonetwork.dsl.dart.Typedef; +import org.obeonetwork.dsl.dart.Variable; + +/** + * An implementation of the model Factory. + * + * @generated + */ +public class DartFactoryImpl extends EFactoryImpl implements DartFactory { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * Creates the default factory implementation. + * + * @generated + */ + public static DartFactory init() { + try { + DartFactory theDartFactory = (DartFactory)EPackage.Registry.INSTANCE + .getEFactory(DartPackage.eNS_URI); + if (theDartFactory != null) { + return theDartFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new DartFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public DartFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case DartPackage.PROJECT: + return createProject(); + case DartPackage.ASSET: + return createAsset(); + case DartPackage.FOLDER: + return createFolder(); + case DartPackage.PACKAGE: + return createPackage(); + case DartPackage.IMPORT: + return createImport(); + case DartPackage.EXPORT: + return createExport(); + case DartPackage.LIBRARY: + return createLibrary(); + case DartPackage.METADATA: + return createMetadata(); + case DartPackage.CLASS: + return createClass(); + case DartPackage.VARIABLE: + return createVariable(); + case DartPackage.CONSTRUCTOR: + return createConstructor(); + case DartPackage.FUNCTION: + return createFunction(); + case DartPackage.PARAMETER: + return createParameter(); + case DartPackage.TYPEDEF: + return createTypedef(); + case DartPackage.HTML: + return createHTML(); + case DartPackage.STYLESHEET: + return createStylesheet(); + case DartPackage.MODULE: + return createModule(); + case DartPackage.CONTROLLER: + return createController(); + case DartPackage.COMPONENT: + return createComponent(); + case DartPackage.DECORATOR: + return createDecorator(); + case DartPackage.FORMATTER: + return createFormatter(); + case DartPackage.ROUTE: + return createRoute(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Project createProject() { + ProjectImpl project = new ProjectImpl(); + return project; + } + + /** + * + * + * @generated + */ + public Asset createAsset() { + AssetImpl asset = new AssetImpl(); + return asset; + } + + /** + * + * + * @generated + */ + public Folder createFolder() { + FolderImpl folder = new FolderImpl(); + return folder; + } + + /** + * + * + * @generated + */ + public org.obeonetwork.dsl.dart.Package createPackage() { + PackageImpl package_ = new PackageImpl(); + return package_; + } + + /** + * + * + * @generated + */ + public Import createImport() { + ImportImpl import_ = new ImportImpl(); + return import_; + } + + /** + * + * + * @generated + */ + public Export createExport() { + ExportImpl export = new ExportImpl(); + return export; + } + + /** + * + * + * @generated + */ + public Typedef createTypedef() { + TypedefImpl typedef = new TypedefImpl(); + return typedef; + } + + /** + * + * + * @generated + */ + public HTML createHTML() { + HTMLImpl html = new HTMLImpl(); + return html; + } + + /** + * + * + * @generated + */ + public Stylesheet createStylesheet() { + StylesheetImpl stylesheet = new StylesheetImpl(); + return stylesheet; + } + + /** + * + * + * @generated + */ + public Module createModule() { + ModuleImpl module = new ModuleImpl(); + return module; + } + + /** + * + * + * @generated + */ + public Controller createController() { + ControllerImpl controller = new ControllerImpl(); + return controller; + } + + /** + * + * + * @generated + */ + public Component createComponent() { + ComponentImpl component = new ComponentImpl(); + return component; + } + + /** + * + * + * @generated + */ + public Decorator createDecorator() { + DecoratorImpl decorator = new DecoratorImpl(); + return decorator; + } + + /** + * + * + * @generated + */ + public Formatter createFormatter() { + FormatterImpl formatter = new FormatterImpl(); + return formatter; + } + + /** + * + * + * @generated + */ + public Route createRoute() { + RouteImpl route = new RouteImpl(); + return route; + } + + /** + * + * + * @generated + */ + public Library createLibrary() { + LibraryImpl library = new LibraryImpl(); + return library; + } + + /** + * + * + * @generated + */ + public Metadata createMetadata() { + MetadataImpl metadata = new MetadataImpl(); + return metadata; + } + + /** + * + * + * @generated + */ + public org.obeonetwork.dsl.dart.Class createClass() { + ClassImpl class_ = new ClassImpl(); + return class_; + } + + /** + * + * + * @generated + */ + public Variable createVariable() { + VariableImpl variable = new VariableImpl(); + return variable; + } + + /** + * + * + * @generated + */ + public Constructor createConstructor() { + ConstructorImpl constructor = new ConstructorImpl(); + return constructor; + } + + /** + * + * + * @generated + */ + public Function createFunction() { + FunctionImpl function = new FunctionImpl(); + return function; + } + + /** + * + * + * @generated + */ + public Parameter createParameter() { + ParameterImpl parameter = new ParameterImpl(); + return parameter; + } + + /** + * + * + * @generated + */ + public DartPackage getDartPackage() { + return (DartPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static DartPackage getPackage() { + return DartPackage.eINSTANCE; + } + +} // DartFactoryImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartPackageImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartPackageImpl.java new file mode 100644 index 0000000..2026ed1 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartPackageImpl.java @@ -0,0 +1,1844 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.obeonetwork.dsl.dart.AngularType; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.Classifier; +import org.obeonetwork.dsl.dart.Component; +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.Controller; +import org.obeonetwork.dsl.dart.DartFactory; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; +import org.obeonetwork.dsl.dart.Decorator; +import org.obeonetwork.dsl.dart.Export; +import org.obeonetwork.dsl.dart.Folder; +import org.obeonetwork.dsl.dart.Formatter; +import org.obeonetwork.dsl.dart.Function; +import org.obeonetwork.dsl.dart.Import; +import org.obeonetwork.dsl.dart.Library; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Module; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Part; +import org.obeonetwork.dsl.dart.Project; +import org.obeonetwork.dsl.dart.Route; +import org.obeonetwork.dsl.dart.Stylesheet; +import org.obeonetwork.dsl.dart.Type; +import org.obeonetwork.dsl.dart.Typedef; +import org.obeonetwork.dsl.dart.Variable; + +/** + * An implementation of the model Package. + * + * @generated + */ +public class DartPackageImpl extends EPackageImpl implements DartPackage { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * + * + * @generated + */ + private EClass projectEClass = null; + + /** + * + * + * @generated + */ + private EClass assetEClass = null; + + /** + * + * + * @generated + */ + private EClass containerEClass = null; + + /** + * + * + * @generated + */ + private EClass folderEClass = null; + + /** + * + * + * @generated + */ + private EClass packageEClass = null; + + /** + * + * + * @generated + */ + private EClass dartResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass importEClass = null; + + /** + * + * + * @generated + */ + private EClass exportEClass = null; + + /** + * + * + * @generated + */ + private EClass typedefEClass = null; + + /** + * + * + * @generated + */ + private EClass htmlEClass = null; + + /** + * + * + * @generated + */ + private EClass stylesheetEClass = null; + + /** + * + * + * @generated + */ + private EClass moduleEClass = null; + + /** + * + * + * @generated + */ + private EClass angularTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass controllerEClass = null; + + /** + * + * + * @generated + */ + private EClass componentEClass = null; + + /** + * + * + * @generated + */ + private EClass decoratorEClass = null; + + /** + * + * + * @generated + */ + private EClass formatterEClass = null; + + /** + * + * + * @generated + */ + private EClass routeEClass = null; + + /** + * + * + * @generated + */ + private EClass typeEClass = null; + + /** + * + * + * @generated + */ + private EClass libraryEClass = null; + + /** + * + * + * @generated + */ + private EClass partEClass = null; + + /** + * + * + * @generated + */ + private EClass classifierEClass = null; + + /** + * + * + * @generated + */ + private EClass metadataEClass = null; + + /** + * + * + * @generated + */ + private EClass classEClass = null; + + /** + * + * + * @generated + */ + private EClass variableEClass = null; + + /** + * + * + * @generated + */ + private EClass constructorEClass = null; + + /** + * + * + * @generated + */ + private EClass functionEClass = null; + + /** + * + * + * @generated + */ + private EClass parameterEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI value. + *

+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, + * which also performs initialization of the package, or returns the registered package, if one already + * exists. + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.obeonetwork.dsl.dart.DartPackage#eNS_URI + * @see #init() + * @generated + */ + private DartPackageImpl() { + super(eNS_URI, DartFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it + * depends. + *

+ * This method is used to initialize {@link DartPackage#eINSTANCE} when that field is accessed. Clients + * should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static DartPackage init() { + if (isInited) + return (DartPackage)EPackage.Registry.INSTANCE.getEPackage(DartPackage.eNS_URI); + + // Obtain or create and register package + DartPackageImpl theDartPackage = (DartPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DartPackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) + : new DartPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theDartPackage.createPackageContents(); + + // Initialize created meta-data + theDartPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theDartPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(DartPackage.eNS_URI, theDartPackage); + return theDartPackage; + } + + /** + * + * + * @generated + */ + public EClass getProject() { + return projectEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getProject_Name() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getProject_Packages() { + return (EReference)projectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAsset() { + return assetEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAsset_Name() { + return (EAttribute)assetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAsset_Container() { + return (EReference)assetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getContainer() { + return containerEClass; + } + + /** + * + * + * @generated + */ + public EReference getContainer_Assets() { + return (EReference)containerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFolder() { + return folderEClass; + } + + /** + * + * + * @generated + */ + public EClass getPackage() { + return packageEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPackage_Name() { + return (EAttribute)packageEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPackage_License() { + return (EAttribute)packageEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPackage_Dependencies() { + return (EReference)packageEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getPackage_Project() { + return (EReference)packageEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getDartResource() { + return dartResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDartResource_Documentation() { + return (EAttribute)dartResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDartResource_Imports() { + return (EReference)dartResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDartResource_Exports() { + return (EReference)dartResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getImport() { + return importEClass; + } + + /** + * + * + * @generated + */ + public EReference getImport_DartResource() { + return (EReference)importEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getImport_As() { + return (EAttribute)importEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getImport_Show() { + return (EReference)importEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getImport_Hide() { + return (EReference)importEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getImport_Metadata() { + return (EReference)importEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getExport() { + return exportEClass; + } + + /** + * + * + * @generated + */ + public EReference getExport_DartResource() { + return (EReference)exportEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getExport_Show() { + return (EReference)exportEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getExport_Hide() { + return (EReference)exportEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getExport_Metadata() { + return (EReference)exportEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getTypedef() { + return typedefEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getTypedef_Name() { + return (EAttribute)typedefEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getTypedef_Documentation() { + return (EAttribute)typedefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getTypedef_Type() { + return (EReference)typedefEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getTypedef_Parameters() { + return (EReference)typedefEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getTypedef_Metadata() { + return (EReference)typedefEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getHTML() { + return htmlEClass; + } + + /** + * + * + * @generated + */ + public EReference getHTML_Uses() { + return (EReference)htmlEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getStylesheet() { + return stylesheetEClass; + } + + /** + * + * + * @generated + */ + public EReference getStylesheet_Imports() { + return (EReference)stylesheetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getStylesheet_Partial() { + return (EAttribute)stylesheetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getModule() { + return moduleEClass; + } + + /** + * + * + * @generated + */ + public EReference getModule_Types() { + return (EReference)moduleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getModule_Routes() { + return (EReference)moduleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAngularType() { + return angularTypeEClass; + } + + /** + * + * + * @generated + */ + public EClass getController() { + return controllerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getController_PublishAs() { + return (EAttribute)controllerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getController_Selector() { + return (EAttribute)controllerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getComponent() { + return componentEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getComponent_PublishAs() { + return (EAttribute)componentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getComponent_Stylesheet() { + return (EReference)componentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getComponent_Template() { + return (EReference)componentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getComponent_Selector() { + return (EAttribute)componentEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getDecorator() { + return decoratorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDecorator_Selector() { + return (EAttribute)decoratorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFormatter() { + return formatterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFormatter_FormatterName() { + return (EAttribute)formatterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getRoute() { + return routeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRoute_Name() { + return (EAttribute)routeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRoute_Path() { + return (EAttribute)routeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getRoute_View() { + return (EReference)routeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getRoute_Extends() { + return (EReference)routeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getType() { + return typeEClass; + } + + /** + * + * + * @generated + */ + public EClass getLibrary() { + return libraryEClass; + } + + /** + * + * + * @generated + */ + public EReference getLibrary_Parts() { + return (EReference)libraryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getLibrary_Typedefs() { + return (EReference)libraryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getLibrary_Metadata() { + return (EReference)libraryEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getLibrary_Variables() { + return (EReference)libraryEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getLibrary_Functions() { + return (EReference)libraryEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getPart() { + return partEClass; + } + + /** + * + * + * @generated + */ + public EReference getPart_PartOf() { + return (EReference)partEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getClassifier() { + return classifierEClass; + } + + /** + * + * + * @generated + */ + public EReference getClassifier_Fields() { + return (EReference)classifierEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getClassifier_Metadata() { + return (EReference)classifierEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getMetadata() { + return metadataEClass; + } + + /** + * + * + * @generated + */ + public EClass getClass_() { + return classEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getClass_Abstract() { + return (EAttribute)classEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getClass_Extends() { + return (EReference)classEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getClass_Implements() { + return (EReference)classEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getClass_Mixins() { + return (EReference)classEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getClass_Constructors() { + return (EReference)classEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getClass_Methods() { + return (EReference)classEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getVariable() { + return variableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVariable_Name() { + return (EAttribute)variableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVariable_Documentation() { + return (EAttribute)variableEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getVariable_Type() { + return (EReference)variableEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVariable_Static() { + return (EAttribute)variableEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVariable_Constant() { + return (EAttribute)variableEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVariable_Final() { + return (EAttribute)variableEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getVariable_Value() { + return (EAttribute)variableEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getVariable_Metadata() { + return (EReference)variableEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getConstructor() { + return constructorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getConstructor_Constant() { + return (EAttribute)constructorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getConstructor_Body() { + return (EAttribute)constructorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getConstructor_Metadata() { + return (EReference)constructorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getFunction() { + return functionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFunction_Name() { + return (EAttribute)functionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFunction_Documentation() { + return (EAttribute)functionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getFunction_Type() { + return (EReference)functionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getFunction_Abstract() { + return (EAttribute)functionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getFunction_Static() { + return (EAttribute)functionEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getFunction_Body() { + return (EAttribute)functionEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getFunction_Parameters() { + return (EReference)functionEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getFunction_Metadata() { + return (EReference)functionEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getParameter() { + return parameterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getParameter_Name() { + return (EAttribute)parameterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getParameter_Value() { + return (EAttribute)parameterEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getParameter_Optional() { + return (EAttribute)parameterEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getParameter_Type() { + return (EReference)parameterEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getParameter_Metadata() { + return (EReference)parameterEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public DartFactory getDartFactory() { + return (DartFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is guarded to have no affect on any + * invocation but its first. + * + * @generated + */ + public void createPackageContents() { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + projectEClass = createEClass(PROJECT); + createEAttribute(projectEClass, PROJECT__NAME); + createEReference(projectEClass, PROJECT__PACKAGES); + + assetEClass = createEClass(ASSET); + createEAttribute(assetEClass, ASSET__NAME); + createEReference(assetEClass, ASSET__CONTAINER); + + containerEClass = createEClass(CONTAINER); + createEReference(containerEClass, CONTAINER__ASSETS); + + folderEClass = createEClass(FOLDER); + + packageEClass = createEClass(PACKAGE); + createEAttribute(packageEClass, PACKAGE__NAME); + createEAttribute(packageEClass, PACKAGE__LICENSE); + createEReference(packageEClass, PACKAGE__DEPENDENCIES); + createEReference(packageEClass, PACKAGE__PROJECT); + + dartResourceEClass = createEClass(DART_RESOURCE); + createEAttribute(dartResourceEClass, DART_RESOURCE__DOCUMENTATION); + createEReference(dartResourceEClass, DART_RESOURCE__IMPORTS); + createEReference(dartResourceEClass, DART_RESOURCE__EXPORTS); + + importEClass = createEClass(IMPORT); + createEReference(importEClass, IMPORT__DART_RESOURCE); + createEAttribute(importEClass, IMPORT__AS); + createEReference(importEClass, IMPORT__SHOW); + createEReference(importEClass, IMPORT__HIDE); + createEReference(importEClass, IMPORT__METADATA); + + exportEClass = createEClass(EXPORT); + createEReference(exportEClass, EXPORT__DART_RESOURCE); + createEReference(exportEClass, EXPORT__SHOW); + createEReference(exportEClass, EXPORT__HIDE); + createEReference(exportEClass, EXPORT__METADATA); + + typeEClass = createEClass(TYPE); + + libraryEClass = createEClass(LIBRARY); + createEReference(libraryEClass, LIBRARY__PARTS); + createEReference(libraryEClass, LIBRARY__TYPEDEFS); + createEReference(libraryEClass, LIBRARY__METADATA); + createEReference(libraryEClass, LIBRARY__VARIABLES); + createEReference(libraryEClass, LIBRARY__FUNCTIONS); + + partEClass = createEClass(PART); + createEReference(partEClass, PART__PART_OF); + + classifierEClass = createEClass(CLASSIFIER); + createEReference(classifierEClass, CLASSIFIER__FIELDS); + createEReference(classifierEClass, CLASSIFIER__METADATA); + + metadataEClass = createEClass(METADATA); + + classEClass = createEClass(CLASS); + createEAttribute(classEClass, CLASS__ABSTRACT); + createEReference(classEClass, CLASS__EXTENDS); + createEReference(classEClass, CLASS__IMPLEMENTS); + createEReference(classEClass, CLASS__MIXINS); + createEReference(classEClass, CLASS__CONSTRUCTORS); + createEReference(classEClass, CLASS__METHODS); + + variableEClass = createEClass(VARIABLE); + createEAttribute(variableEClass, VARIABLE__NAME); + createEAttribute(variableEClass, VARIABLE__DOCUMENTATION); + createEReference(variableEClass, VARIABLE__TYPE); + createEAttribute(variableEClass, VARIABLE__STATIC); + createEAttribute(variableEClass, VARIABLE__CONSTANT); + createEAttribute(variableEClass, VARIABLE__FINAL); + createEAttribute(variableEClass, VARIABLE__VALUE); + createEReference(variableEClass, VARIABLE__METADATA); + + constructorEClass = createEClass(CONSTRUCTOR); + createEAttribute(constructorEClass, CONSTRUCTOR__CONSTANT); + createEAttribute(constructorEClass, CONSTRUCTOR__BODY); + createEReference(constructorEClass, CONSTRUCTOR__METADATA); + + functionEClass = createEClass(FUNCTION); + createEAttribute(functionEClass, FUNCTION__NAME); + createEAttribute(functionEClass, FUNCTION__DOCUMENTATION); + createEReference(functionEClass, FUNCTION__TYPE); + createEAttribute(functionEClass, FUNCTION__ABSTRACT); + createEAttribute(functionEClass, FUNCTION__STATIC); + createEAttribute(functionEClass, FUNCTION__BODY); + createEReference(functionEClass, FUNCTION__PARAMETERS); + createEReference(functionEClass, FUNCTION__METADATA); + + parameterEClass = createEClass(PARAMETER); + createEAttribute(parameterEClass, PARAMETER__NAME); + createEAttribute(parameterEClass, PARAMETER__VALUE); + createEAttribute(parameterEClass, PARAMETER__OPTIONAL); + createEReference(parameterEClass, PARAMETER__TYPE); + createEReference(parameterEClass, PARAMETER__METADATA); + + typedefEClass = createEClass(TYPEDEF); + createEAttribute(typedefEClass, TYPEDEF__DOCUMENTATION); + createEAttribute(typedefEClass, TYPEDEF__NAME); + createEReference(typedefEClass, TYPEDEF__TYPE); + createEReference(typedefEClass, TYPEDEF__PARAMETERS); + createEReference(typedefEClass, TYPEDEF__METADATA); + + htmlEClass = createEClass(HTML); + createEReference(htmlEClass, HTML__USES); + + stylesheetEClass = createEClass(STYLESHEET); + createEReference(stylesheetEClass, STYLESHEET__IMPORTS); + createEAttribute(stylesheetEClass, STYLESHEET__PARTIAL); + + moduleEClass = createEClass(MODULE); + createEReference(moduleEClass, MODULE__TYPES); + createEReference(moduleEClass, MODULE__ROUTES); + + angularTypeEClass = createEClass(ANGULAR_TYPE); + + controllerEClass = createEClass(CONTROLLER); + createEAttribute(controllerEClass, CONTROLLER__PUBLISH_AS); + createEAttribute(controllerEClass, CONTROLLER__SELECTOR); + + componentEClass = createEClass(COMPONENT); + createEAttribute(componentEClass, COMPONENT__PUBLISH_AS); + createEReference(componentEClass, COMPONENT__STYLESHEET); + createEReference(componentEClass, COMPONENT__TEMPLATE); + createEAttribute(componentEClass, COMPONENT__SELECTOR); + + decoratorEClass = createEClass(DECORATOR); + createEAttribute(decoratorEClass, DECORATOR__SELECTOR); + + formatterEClass = createEClass(FORMATTER); + createEAttribute(formatterEClass, FORMATTER__FORMATTER_NAME); + + routeEClass = createEClass(ROUTE); + createEAttribute(routeEClass, ROUTE__NAME); + createEAttribute(routeEClass, ROUTE__PATH); + createEReference(routeEClass, ROUTE__VIEW); + createEReference(routeEClass, ROUTE__EXTENDS); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This method is guarded to have no affect + * on any invocation but its first. + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + folderEClass.getESuperTypes().add(this.getContainer()); + folderEClass.getESuperTypes().add(this.getAsset()); + packageEClass.getESuperTypes().add(this.getContainer()); + dartResourceEClass.getESuperTypes().add(this.getAsset()); + libraryEClass.getESuperTypes().add(this.getDartResource()); + partEClass.getESuperTypes().add(this.getDartResource()); + classifierEClass.getESuperTypes().add(this.getPart()); + metadataEClass.getESuperTypes().add(this.getClassifier()); + classEClass.getESuperTypes().add(this.getClassifier()); + classEClass.getESuperTypes().add(this.getType()); + typedefEClass.getESuperTypes().add(this.getType()); + htmlEClass.getESuperTypes().add(this.getAsset()); + stylesheetEClass.getESuperTypes().add(this.getAsset()); + moduleEClass.getESuperTypes().add(this.getPart()); + controllerEClass.getESuperTypes().add(this.getClass_()); + controllerEClass.getESuperTypes().add(this.getAngularType()); + componentEClass.getESuperTypes().add(this.getClass_()); + componentEClass.getESuperTypes().add(this.getAngularType()); + decoratorEClass.getESuperTypes().add(this.getClass_()); + decoratorEClass.getESuperTypes().add(this.getAngularType()); + formatterEClass.getESuperTypes().add(this.getClass_()); + formatterEClass.getESuperTypes().add(this.getAngularType()); + + // Initialize classes, features, and operations; add parameters + initEClass(projectEClass, Project.class, "Project", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProject_Name(), ecorePackage.getEString(), "name", null, 0, 1, Project.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getProject_Packages(), this.getPackage(), this.getPackage_Project(), "packages", null, + 0, -1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(assetEClass, Asset.class, "Asset", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAsset_Name(), ecorePackage.getEString(), "name", null, 0, 1, Asset.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getAsset_Container(), this.getContainer(), this.getContainer_Assets(), "container", + null, 0, 1, Asset.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containerEClass, org.obeonetwork.dsl.dart.Container.class, "Container", IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainer_Assets(), this.getAsset(), this.getAsset_Container(), "assets", null, 0, + -1, org.obeonetwork.dsl.dart.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(folderEClass, Folder.class, "Folder", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(packageEClass, org.obeonetwork.dsl.dart.Package.class, "Package", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPackage_Name(), ecorePackage.getEString(), "name", null, 0, 1, + org.obeonetwork.dsl.dart.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPackage_License(), ecorePackage.getEString(), "license", null, 0, 1, + org.obeonetwork.dsl.dart.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPackage_Dependencies(), this.getPackage(), null, "dependencies", null, 0, -1, + org.obeonetwork.dsl.dart.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPackage_Project(), this.getProject(), this.getProject_Packages(), "project", null, + 0, 1, org.obeonetwork.dsl.dart.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dartResourceEClass, DartResource.class, "DartResource", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDartResource_Documentation(), ecorePackage.getEString(), "documentation", null, 0, + 1, DartResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDartResource_Imports(), this.getImport(), null, "imports", null, 0, -1, + DartResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDartResource_Exports(), this.getExport(), null, "exports", null, 0, -1, + DartResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getImport_DartResource(), this.getDartResource(), null, "dartResource", null, 0, 1, + Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImport_As(), ecorePackage.getEString(), "as", null, 0, 1, Import.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getImport_Show(), this.getDartResource(), null, "show", null, 0, -1, Import.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImport_Hide(), this.getDartResource(), null, "hide", null, 0, -1, Import.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImport_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Import.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(exportEClass, Export.class, "Export", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getExport_DartResource(), this.getDartResource(), null, "dartResource", null, 0, 1, + Export.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getExport_Show(), this.getDartResource(), null, "show", null, 0, -1, Export.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getExport_Hide(), this.getDartResource(), null, "hide", null, 0, -1, Export.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getExport_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Export.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(typeEClass, Type.class, "Type", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(libraryEClass, Library.class, "Library", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getLibrary_Parts(), this.getPart(), this.getPart_PartOf(), "parts", null, 0, -1, + Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLibrary_Typedefs(), this.getTypedef(), null, "typedefs", null, 0, -1, + Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLibrary_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLibrary_Variables(), this.getVariable(), null, "variables", null, 0, -1, + Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLibrary_Functions(), this.getFunction(), null, "functions", null, 0, -1, + Library.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(partEClass, Part.class, "Part", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPart_PartOf(), this.getLibrary(), this.getLibrary_Parts(), "partOf", null, 0, 1, + Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(classifierEClass, Classifier.class, "Classifier", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getClassifier_Fields(), this.getVariable(), null, "fields", null, 0, -1, + Classifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getClassifier_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Classifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metadataEClass, Metadata.class, "Metadata", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(classEClass, org.obeonetwork.dsl.dart.Class.class, "Class", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getClass_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, + org.obeonetwork.dsl.dart.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getClass_Extends(), this.getClass_(), null, "extends", null, 0, 1, + org.obeonetwork.dsl.dart.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getClass_Implements(), this.getClass_(), null, "implements", null, 0, -1, + org.obeonetwork.dsl.dart.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getClass_Mixins(), this.getClass_(), null, "mixins", null, 0, -1, + org.obeonetwork.dsl.dart.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getClass_Constructors(), this.getConstructor(), null, "constructors", null, 0, -1, + org.obeonetwork.dsl.dart.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getClass_Methods(), this.getFunction(), null, "methods", null, 0, -1, + org.obeonetwork.dsl.dart.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVariable_Name(), ecorePackage.getEString(), "name", null, 0, 1, Variable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getVariable_Documentation(), ecorePackage.getEString(), "documentation", null, 0, 1, + Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVariable_Type(), this.getType(), null, "type", null, 0, 1, Variable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVariable_Static(), ecorePackage.getEBoolean(), "static", null, 0, 1, + Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVariable_Constant(), ecorePackage.getEBoolean(), "constant", null, 0, 1, + Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVariable_Final(), ecorePackage.getEBoolean(), "final", null, 0, 1, Variable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getVariable_Value(), ecorePackage.getEString(), "value", null, 0, 1, Variable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getVariable_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(constructorEClass, Constructor.class, "Constructor", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getConstructor_Constant(), ecorePackage.getEBoolean(), "constant", null, 0, 1, + Constructor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getConstructor_Body(), ecorePackage.getEString(), "body", null, 0, 1, + Constructor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getConstructor_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Constructor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(functionEClass, Function.class, "Function", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFunction_Name(), ecorePackage.getEString(), "name", null, 0, 1, Function.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getFunction_Documentation(), ecorePackage.getEString(), "documentation", null, 0, 1, + Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFunction_Type(), this.getType(), null, "type", null, 0, 1, Function.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunction_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, + Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunction_Static(), ecorePackage.getEBoolean(), "static", null, 0, 1, + Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFunction_Body(), ecorePackage.getEString(), "body", null, 0, 1, Function.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getFunction_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, + Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFunction_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Function.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parameter.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getParameter_Value(), ecorePackage.getEString(), "value", null, 0, 1, Parameter.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getParameter_Optional(), ecorePackage.getEBoolean(), "optional", null, 0, 1, + Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getParameter_Type(), this.getType(), null, "type", null, 0, 1, Parameter.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getParameter_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(typedefEClass, Typedef.class, "Typedef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTypedef_Documentation(), ecorePackage.getEString(), "documentation", null, 0, 1, + Typedef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getTypedef_Name(), ecorePackage.getEString(), "name", null, 0, 1, Typedef.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getTypedef_Type(), this.getType(), null, "type", null, 0, 1, Typedef.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTypedef_Parameters(), this.getParameter(), null, "parameters", null, 0, -1, + Typedef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTypedef_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, + Typedef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(htmlEClass, org.obeonetwork.dsl.dart.HTML.class, "HTML", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getHTML_Uses(), this.getAsset(), null, "uses", null, 0, -1, + org.obeonetwork.dsl.dart.HTML.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stylesheetEClass, Stylesheet.class, "Stylesheet", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getStylesheet_Imports(), this.getStylesheet(), null, "imports", null, 0, -1, + Stylesheet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getStylesheet_Partial(), ecorePackage.getEBoolean(), "partial", null, 0, 1, + Stylesheet.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, IS_DERIVED, IS_ORDERED); + + initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getModule_Types(), this.getAngularType(), null, "types", null, 0, -1, Module.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getModule_Routes(), this.getRoute(), null, "routes", null, 0, -1, Module.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(angularTypeEClass, AngularType.class, "AngularType", IS_ABSTRACT, IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(controllerEClass, Controller.class, "Controller", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getController_PublishAs(), ecorePackage.getEString(), "publishAs", null, 0, 1, + Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getController_Selector(), ecorePackage.getEString(), "selector", null, 0, 1, + Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getComponent_PublishAs(), ecorePackage.getEString(), "publishAs", null, 0, 1, + Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getComponent_Stylesheet(), this.getStylesheet(), null, "stylesheet", null, 0, 1, + Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getComponent_Template(), this.getHTML(), null, "template", null, 0, 1, + Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getComponent_Selector(), ecorePackage.getEString(), "selector", null, 0, 1, + Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(decoratorEClass, Decorator.class, "Decorator", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDecorator_Selector(), ecorePackage.getEString(), "selector", null, 0, 1, + Decorator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(formatterEClass, Formatter.class, "Formatter", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFormatter_FormatterName(), ecorePackage.getEString(), "formatterName", null, 0, 1, + Formatter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(routeEClass, Route.class, "Route", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRoute_Name(), ecorePackage.getEString(), "name", null, 0, 1, Route.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getRoute_Path(), ecorePackage.getEString(), "path", null, 0, 1, Route.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoute_View(), this.getHTML(), null, "view", null, 0, 1, Route.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getRoute_Extends(), this.getRoute(), null, "extends", null, 0, 1, Route.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} // DartPackageImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartResourceImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartResourceImpl.java new file mode 100644 index 0000000..d53bd96 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DartResourceImpl.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; +import org.obeonetwork.dsl.dart.Export; +import org.obeonetwork.dsl.dart.Import; + +/** + * An implementation of the model object 'Resource'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.DartResourceImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.DartResourceImpl#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.DartResourceImpl#getImports Imports}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.DartResourceImpl#getExports Exports}
  • + *
+ *

+ * + * @generated + */ +public abstract class DartResourceImpl extends AssetImpl implements DartResource { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getImports() Imports}' containment reference list. + * + * @see #getImports() + * @generated + * @ordered + */ + protected EList imports; + + /** + * The cached value of the '{@link #getExports() Exports}' containment reference list. + * + * @see #getExports() + * @generated + * @ordered + */ + protected EList exports; + + /** + * + * + * @generated + */ + protected DartResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.DART_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.DART_RESOURCE__DOCUMENTATION, + oldDocumentation, documentation)); + } + + /** + * + * + * @generated + */ + public EList getImports() { + if (imports == null) { + imports = new EObjectContainmentEList(Import.class, this, + DartPackage.DART_RESOURCE__IMPORTS); + } + return imports; + } + + /** + * + * + * @generated + */ + public EList getExports() { + if (exports == null) { + exports = new EObjectContainmentEList(Export.class, this, + DartPackage.DART_RESOURCE__EXPORTS); + } + return exports; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.DART_RESOURCE__IMPORTS: + return ((InternalEList)getImports()).basicRemove(otherEnd, msgs); + case DartPackage.DART_RESOURCE__EXPORTS: + return ((InternalEList)getExports()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.DART_RESOURCE__DOCUMENTATION: + return getDocumentation(); + case DartPackage.DART_RESOURCE__IMPORTS: + return getImports(); + case DartPackage.DART_RESOURCE__EXPORTS: + return getExports(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.DART_RESOURCE__DOCUMENTATION: + setDocumentation((String)newValue); + return; + case DartPackage.DART_RESOURCE__IMPORTS: + getImports().clear(); + getImports().addAll((Collection)newValue); + return; + case DartPackage.DART_RESOURCE__EXPORTS: + getExports().clear(); + getExports().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.DART_RESOURCE__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case DartPackage.DART_RESOURCE__IMPORTS: + getImports().clear(); + return; + case DartPackage.DART_RESOURCE__EXPORTS: + getExports().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.DART_RESOURCE__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT + .equals(documentation); + case DartPackage.DART_RESOURCE__IMPORTS: + return imports != null && !imports.isEmpty(); + case DartPackage.DART_RESOURCE__EXPORTS: + return exports != null && !exports.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); + result.append(documentation); + result.append(')'); + return result.toString(); + } + +} // DartResourceImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DecoratorImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DecoratorImpl.java new file mode 100644 index 0000000..0b8b0e7 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/DecoratorImpl.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Decorator; + +/** + * An implementation of the model object 'Decorator'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.DecoratorImpl#getSelector Selector}
  • + *
+ *

+ * + * @generated + */ +public class DecoratorImpl extends ClassImpl implements Decorator { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getSelector() Selector}' attribute. + * + * + * @see #getSelector() + * @generated + * @ordered + */ + protected static final String SELECTOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSelector() Selector}' attribute. + * + * + * @see #getSelector() + * @generated + * @ordered + */ + protected String selector = SELECTOR_EDEFAULT; + + /** + * + * + * @generated + */ + protected DecoratorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.DECORATOR; + } + + /** + * + * + * @generated + */ + public String getSelector() { + return selector; + } + + /** + * + * + * @generated + */ + public void setSelector(String newSelector) { + String oldSelector = selector; + selector = newSelector; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.DECORATOR__SELECTOR, + oldSelector, selector)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.DECORATOR__SELECTOR: + return getSelector(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.DECORATOR__SELECTOR: + setSelector((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.DECORATOR__SELECTOR: + setSelector(SELECTOR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.DECORATOR__SELECTOR: + return SELECTOR_EDEFAULT == null ? selector != null : !SELECTOR_EDEFAULT.equals(selector); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (selector: "); + result.append(selector); + result.append(')'); + return result.toString(); + } + +} // DecoratorImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ExportImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ExportImpl.java new file mode 100644 index 0000000..3df9e27 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ExportImpl.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; +import org.obeonetwork.dsl.dart.Export; +import org.obeonetwork.dsl.dart.Metadata; + +/** + * An implementation of the model object 'Export'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ExportImpl#getDartResources Dart Resources}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ExportImpl#getShow Show}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ExportImpl#getHide Hide}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ExportImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class ExportImpl extends MinimalEObjectImpl.Container implements Export { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getDartResource() Dart Resource}' reference. + * + * @see #getDartResource() + * @generated + * @ordered + */ + protected DartResource dartResource; + + /** + * The cached value of the '{@link #getShow() Show}' reference list. + * + * @see #getShow() + * @generated + * @ordered + */ + protected EList show; + + /** + * The cached value of the '{@link #getHide() Hide}' reference list. + * + * @see #getHide() + * @generated + * @ordered + */ + protected EList hide; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected ExportImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.EXPORT; + } + + /** + * + * + * @generated + */ + public DartResource getDartResource() { + if (dartResource != null && dartResource.eIsProxy()) { + InternalEObject oldDartResource = (InternalEObject)dartResource; + dartResource = (DartResource)eResolveProxy(oldDartResource); + if (dartResource != oldDartResource) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + DartPackage.EXPORT__DART_RESOURCE, oldDartResource, dartResource)); + } + } + return dartResource; + } + + /** + * + * + * @generated + */ + public DartResource basicGetDartResource() { + return dartResource; + } + + /** + * + * + * @generated + */ + public void setDartResource(DartResource newDartResource) { + DartResource oldDartResource = dartResource; + dartResource = newDartResource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.EXPORT__DART_RESOURCE, + oldDartResource, dartResource)); + } + + /** + * + * + * @generated + */ + public EList getShow() { + if (show == null) { + show = new EObjectResolvingEList(DartResource.class, this, DartPackage.EXPORT__SHOW); + } + return show; + } + + /** + * + * + * @generated + */ + public EList getHide() { + if (hide == null) { + hide = new EObjectResolvingEList(DartResource.class, this, DartPackage.EXPORT__HIDE); + } + return hide; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, DartPackage.EXPORT__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.EXPORT__DART_RESOURCE: + if (resolve) + return getDartResource(); + return basicGetDartResource(); + case DartPackage.EXPORT__SHOW: + return getShow(); + case DartPackage.EXPORT__HIDE: + return getHide(); + case DartPackage.EXPORT__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.EXPORT__DART_RESOURCE: + setDartResource((DartResource)newValue); + return; + case DartPackage.EXPORT__SHOW: + getShow().clear(); + getShow().addAll((Collection)newValue); + return; + case DartPackage.EXPORT__HIDE: + getHide().clear(); + getHide().addAll((Collection)newValue); + return; + case DartPackage.EXPORT__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.EXPORT__DART_RESOURCE: + setDartResource((DartResource)null); + return; + case DartPackage.EXPORT__SHOW: + getShow().clear(); + return; + case DartPackage.EXPORT__HIDE: + getHide().clear(); + return; + case DartPackage.EXPORT__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.EXPORT__DART_RESOURCE: + return dartResource != null; + case DartPackage.EXPORT__SHOW: + return show != null && !show.isEmpty(); + case DartPackage.EXPORT__HIDE: + return hide != null && !hide.isEmpty(); + case DartPackage.EXPORT__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ExportImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FolderImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FolderImpl.java new file mode 100644 index 0000000..9550006 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FolderImpl.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Folder; + +/** + * An implementation of the model object 'Folder'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.FolderImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class FolderImpl extends ContainerImpl implements Folder { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected FolderImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.FOLDER; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FOLDER__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public org.obeonetwork.dsl.dart.Container getContainer() { + if (eContainerFeatureID() != DartPackage.FOLDER__CONTAINER) + return null; + return (org.obeonetwork.dsl.dart.Container)eInternalContainer(); + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetContainer(org.obeonetwork.dsl.dart.Container newContainer, + NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject)newContainer, DartPackage.FOLDER__CONTAINER, msgs); + return msgs; + } + + /** + * + * + * @generated + */ + public void setContainer(org.obeonetwork.dsl.dart.Container newContainer) { + if (newContainer != eInternalContainer() + || (eContainerFeatureID() != DartPackage.FOLDER__CONTAINER && newContainer != null)) { + if (EcoreUtil.isAncestor(this, newContainer)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newContainer != null) + msgs = ((InternalEObject)newContainer).eInverseAdd(this, DartPackage.CONTAINER__ASSETS, + org.obeonetwork.dsl.dart.Container.class, msgs); + msgs = basicSetContainer(newContainer, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FOLDER__CONTAINER, + newContainer, newContainer)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.FOLDER__CONTAINER: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetContainer((org.obeonetwork.dsl.dart.Container)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.FOLDER__CONTAINER: + return basicSetContainer(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case DartPackage.FOLDER__CONTAINER: + return eInternalContainer().eInverseRemove(this, DartPackage.CONTAINER__ASSETS, + org.obeonetwork.dsl.dart.Container.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.FOLDER__NAME: + return getName(); + case DartPackage.FOLDER__CONTAINER: + return getContainer(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.FOLDER__NAME: + setName((String)newValue); + return; + case DartPackage.FOLDER__CONTAINER: + setContainer((org.obeonetwork.dsl.dart.Container)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.FOLDER__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.FOLDER__CONTAINER: + setContainer((org.obeonetwork.dsl.dart.Container)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.FOLDER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.FOLDER__CONTAINER: + return getContainer() != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == Asset.class) { + switch (derivedFeatureID) { + case DartPackage.FOLDER__NAME: + return DartPackage.ASSET__NAME; + case DartPackage.FOLDER__CONTAINER: + return DartPackage.ASSET__CONTAINER; + default: + return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == Asset.class) { + switch (baseFeatureID) { + case DartPackage.ASSET__NAME: + return DartPackage.FOLDER__NAME; + case DartPackage.ASSET__CONTAINER: + return DartPackage.FOLDER__CONTAINER; + default: + return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // FolderImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FormatterImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FormatterImpl.java new file mode 100644 index 0000000..bfd7169 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FormatterImpl.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Formatter; + +/** + * An implementation of the model object 'Formatter'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.FormatterImpl#getFormatterName Formatter Name}
  • + *
+ *

+ * + * @generated + */ +public class FormatterImpl extends ClassImpl implements Formatter { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getFormatterName() Formatter Name}' attribute. + * + * @see #getFormatterName() + * @generated + * @ordered + */ + protected static final String FORMATTER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFormatterName() Formatter Name}' attribute. + * + * @see #getFormatterName() + * @generated + * @ordered + */ + protected String formatterName = FORMATTER_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected FormatterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.FORMATTER; + } + + /** + * + * + * @generated + */ + public String getFormatterName() { + return formatterName; + } + + /** + * + * + * @generated + */ + public void setFormatterName(String newFormatterName) { + String oldFormatterName = formatterName; + formatterName = newFormatterName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FORMATTER__FORMATTER_NAME, + oldFormatterName, formatterName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.FORMATTER__FORMATTER_NAME: + return getFormatterName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.FORMATTER__FORMATTER_NAME: + setFormatterName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.FORMATTER__FORMATTER_NAME: + setFormatterName(FORMATTER_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.FORMATTER__FORMATTER_NAME: + return FORMATTER_NAME_EDEFAULT == null ? formatterName != null : !FORMATTER_NAME_EDEFAULT + .equals(formatterName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (formatterName: "); + result.append(formatterName); + result.append(')'); + return result.toString(); + } + +} // FormatterImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FunctionImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FunctionImpl.java new file mode 100644 index 0000000..a6689cb --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/FunctionImpl.java @@ -0,0 +1,558 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Function; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Type; + +/** + * An implementation of the model object 'Function'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#isAbstract Abstract}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#isStatic Static}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#getBody Body}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#getParameters Parameters}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.FunctionImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class FunctionImpl extends MinimalEObjectImpl.Container implements Function { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getType() Type}' reference. + * + * @see #getType() + * @generated + * @ordered + */ + protected Type type; + + /** + * The default value of the '{@link #isAbstract() Abstract}' attribute. + * + * + * @see #isAbstract() + * @generated + * @ordered + */ + protected static final boolean ABSTRACT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isAbstract() Abstract}' attribute. + * + * + * @see #isAbstract() + * @generated + * @ordered + */ + protected boolean abstract_ = ABSTRACT_EDEFAULT; + + /** + * The default value of the '{@link #isStatic() Static}' attribute. + * + * @see #isStatic() + * @generated + * @ordered + */ + protected static final boolean STATIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isStatic() Static}' attribute. + * + * @see #isStatic() + * @generated + * @ordered + */ + protected boolean static_ = STATIC_EDEFAULT; + + /** + * The default value of the '{@link #getBody() Body}' attribute. + * + * @see #getBody() + * @generated + * @ordered + */ + protected static final String BODY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBody() Body}' attribute. + * + * @see #getBody() + * @generated + * @ordered + */ + protected String body = BODY_EDEFAULT; + + /** + * The cached value of the '{@link #getParameters() Parameters}' containment reference list. + * + * @see #getParameters() + * @generated + * @ordered + */ + protected EList parameters; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected FunctionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.FUNCTION; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FUNCTION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FUNCTION__DOCUMENTATION, + oldDocumentation, documentation)); + } + + /** + * + * + * @generated + */ + public Type getType() { + if (type != null && type.eIsProxy()) { + InternalEObject oldType = (InternalEObject)type; + type = (Type)eResolveProxy(oldType); + if (type != oldType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.FUNCTION__TYPE, + oldType, type)); + } + } + return type; + } + + /** + * + * + * @generated + */ + public Type basicGetType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(Type newType) { + Type oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FUNCTION__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public boolean isAbstract() { + return abstract_; + } + + /** + * + * + * @generated + */ + public void setAbstract(boolean newAbstract) { + boolean oldAbstract = abstract_; + abstract_ = newAbstract; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FUNCTION__ABSTRACT, + oldAbstract, abstract_)); + } + + /** + * + * + * @generated + */ + public boolean isStatic() { + return static_; + } + + /** + * + * + * @generated + */ + public void setStatic(boolean newStatic) { + boolean oldStatic = static_; + static_ = newStatic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FUNCTION__STATIC, oldStatic, + static_)); + } + + /** + * + * + * @generated + */ + public String getBody() { + return body; + } + + /** + * + * + * @generated + */ + public void setBody(String newBody) { + String oldBody = body; + body = newBody; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.FUNCTION__BODY, oldBody, body)); + } + + /** + * + * + * @generated + */ + public EList getParameters() { + if (parameters == null) { + parameters = new EObjectContainmentEList(Parameter.class, this, + DartPackage.FUNCTION__PARAMETERS); + } + return parameters; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.FUNCTION__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.FUNCTION__PARAMETERS: + return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.FUNCTION__NAME: + return getName(); + case DartPackage.FUNCTION__DOCUMENTATION: + return getDocumentation(); + case DartPackage.FUNCTION__TYPE: + if (resolve) + return getType(); + return basicGetType(); + case DartPackage.FUNCTION__ABSTRACT: + return isAbstract(); + case DartPackage.FUNCTION__STATIC: + return isStatic(); + case DartPackage.FUNCTION__BODY: + return getBody(); + case DartPackage.FUNCTION__PARAMETERS: + return getParameters(); + case DartPackage.FUNCTION__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.FUNCTION__NAME: + setName((String)newValue); + return; + case DartPackage.FUNCTION__DOCUMENTATION: + setDocumentation((String)newValue); + return; + case DartPackage.FUNCTION__TYPE: + setType((Type)newValue); + return; + case DartPackage.FUNCTION__ABSTRACT: + setAbstract((Boolean)newValue); + return; + case DartPackage.FUNCTION__STATIC: + setStatic((Boolean)newValue); + return; + case DartPackage.FUNCTION__BODY: + setBody((String)newValue); + return; + case DartPackage.FUNCTION__PARAMETERS: + getParameters().clear(); + getParameters().addAll((Collection)newValue); + return; + case DartPackage.FUNCTION__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.FUNCTION__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.FUNCTION__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case DartPackage.FUNCTION__TYPE: + setType((Type)null); + return; + case DartPackage.FUNCTION__ABSTRACT: + setAbstract(ABSTRACT_EDEFAULT); + return; + case DartPackage.FUNCTION__STATIC: + setStatic(STATIC_EDEFAULT); + return; + case DartPackage.FUNCTION__BODY: + setBody(BODY_EDEFAULT); + return; + case DartPackage.FUNCTION__PARAMETERS: + getParameters().clear(); + return; + case DartPackage.FUNCTION__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.FUNCTION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.FUNCTION__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT + .equals(documentation); + case DartPackage.FUNCTION__TYPE: + return type != null; + case DartPackage.FUNCTION__ABSTRACT: + return abstract_ != ABSTRACT_EDEFAULT; + case DartPackage.FUNCTION__STATIC: + return static_ != STATIC_EDEFAULT; + case DartPackage.FUNCTION__BODY: + return BODY_EDEFAULT == null ? body != null : !BODY_EDEFAULT.equals(body); + case DartPackage.FUNCTION__PARAMETERS: + return parameters != null && !parameters.isEmpty(); + case DartPackage.FUNCTION__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", documentation: "); + result.append(documentation); + result.append(", abstract: "); + result.append(abstract_); + result.append(", static: "); + result.append(static_); + result.append(", body: "); + result.append(body); + result.append(')'); + return result.toString(); + } + +} // FunctionImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/HTMLImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/HTMLImpl.java new file mode 100644 index 0000000..a57913c --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/HTMLImpl.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.HTML; + +/** + * An implementation of the model object 'HTML'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.HTMLImpl#getUses Uses}
  • + *
+ *

+ * + * @generated + */ +public class HTMLImpl extends AssetImpl implements HTML { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getUses() Uses}' reference list. + * + * @see #getUses() + * @generated + * @ordered + */ + protected EList uses; + + /** + * + * + * @generated + */ + protected HTMLImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.HTML; + } + + /** + * + * + * @generated + */ + public EList getUses() { + if (uses == null) { + uses = new EObjectResolvingEList(Asset.class, this, DartPackage.HTML__USES); + } + return uses; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.HTML__USES: + return getUses(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.HTML__USES: + getUses().clear(); + getUses().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.HTML__USES: + getUses().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.HTML__USES: + return uses != null && !uses.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // HTMLImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ImportImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ImportImpl.java new file mode 100644 index 0000000..ae03ae1 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ImportImpl.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; +import org.obeonetwork.dsl.dart.Import; +import org.obeonetwork.dsl.dart.Metadata; + +/** + * An implementation of the model object 'Import'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ImportImpl#getDartResources Dart Resources}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ImportImpl#getAs As}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ImportImpl#getShow Show}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ImportImpl#getHide Hide}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ImportImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class ImportImpl extends MinimalEObjectImpl.Container implements Import { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getDartResource() Dart Resource}' reference. + * + * @see #getDartResource() + * @generated + * @ordered + */ + protected DartResource dartResource; + + /** + * The default value of the '{@link #getAs() As}' attribute. + * + * @see #getAs() + * @generated + * @ordered + */ + protected static final String AS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAs() As}' attribute. + * + * @see #getAs() + * @generated + * @ordered + */ + protected String as = AS_EDEFAULT; + + /** + * The cached value of the '{@link #getShow() Show}' reference list. + * + * @see #getShow() + * @generated + * @ordered + */ + protected EList show; + + /** + * The cached value of the '{@link #getHide() Hide}' reference list. + * + * @see #getHide() + * @generated + * @ordered + */ + protected EList hide; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected ImportImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.IMPORT; + } + + /** + * + * + * @generated + */ + public DartResource getDartResource() { + if (dartResource != null && dartResource.eIsProxy()) { + InternalEObject oldDartResource = (InternalEObject)dartResource; + dartResource = (DartResource)eResolveProxy(oldDartResource); + if (dartResource != oldDartResource) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + DartPackage.IMPORT__DART_RESOURCE, oldDartResource, dartResource)); + } + } + return dartResource; + } + + /** + * + * + * @generated + */ + public DartResource basicGetDartResource() { + return dartResource; + } + + /** + * + * + * @generated + */ + public void setDartResource(DartResource newDartResource) { + DartResource oldDartResource = dartResource; + dartResource = newDartResource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.IMPORT__DART_RESOURCE, + oldDartResource, dartResource)); + } + + /** + * + * + * @generated + */ + public String getAs() { + return as; + } + + /** + * + * + * @generated + */ + public void setAs(String newAs) { + String oldAs = as; + as = newAs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.IMPORT__AS, oldAs, as)); + } + + /** + * + * + * @generated + */ + public EList getShow() { + if (show == null) { + show = new EObjectResolvingEList(DartResource.class, this, DartPackage.IMPORT__SHOW); + } + return show; + } + + /** + * + * + * @generated + */ + public EList getHide() { + if (hide == null) { + hide = new EObjectResolvingEList(DartResource.class, this, DartPackage.IMPORT__HIDE); + } + return hide; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, DartPackage.IMPORT__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.IMPORT__DART_RESOURCE: + if (resolve) + return getDartResource(); + return basicGetDartResource(); + case DartPackage.IMPORT__AS: + return getAs(); + case DartPackage.IMPORT__SHOW: + return getShow(); + case DartPackage.IMPORT__HIDE: + return getHide(); + case DartPackage.IMPORT__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.IMPORT__DART_RESOURCE: + setDartResource((DartResource)newValue); + return; + case DartPackage.IMPORT__AS: + setAs((String)newValue); + return; + case DartPackage.IMPORT__SHOW: + getShow().clear(); + getShow().addAll((Collection)newValue); + return; + case DartPackage.IMPORT__HIDE: + getHide().clear(); + getHide().addAll((Collection)newValue); + return; + case DartPackage.IMPORT__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.IMPORT__DART_RESOURCE: + setDartResource((DartResource)null); + return; + case DartPackage.IMPORT__AS: + setAs(AS_EDEFAULT); + return; + case DartPackage.IMPORT__SHOW: + getShow().clear(); + return; + case DartPackage.IMPORT__HIDE: + getHide().clear(); + return; + case DartPackage.IMPORT__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.IMPORT__DART_RESOURCE: + return dartResource != null; + case DartPackage.IMPORT__AS: + return AS_EDEFAULT == null ? as != null : !AS_EDEFAULT.equals(as); + case DartPackage.IMPORT__SHOW: + return show != null && !show.isEmpty(); + case DartPackage.IMPORT__HIDE: + return hide != null && !hide.isEmpty(); + case DartPackage.IMPORT__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (as: "); + result.append(as); + result.append(')'); + return result.toString(); + } + +} // ImportImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/LibraryImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/LibraryImpl.java new file mode 100644 index 0000000..1ab2c2c --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/LibraryImpl.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Function; +import org.obeonetwork.dsl.dart.Library; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Part; +import org.obeonetwork.dsl.dart.Typedef; +import org.obeonetwork.dsl.dart.Variable; + +/** + * An implementation of the model object 'Library'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.LibraryImpl#getParts Parts}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.LibraryImpl#getTypedefs Typedefs}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.LibraryImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class LibraryImpl extends DartResourceImpl implements Library { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getParts() Parts}' reference list. + * + * + * @see #getParts() + * @generated + * @ordered + */ + protected EList parts; + + /** + * The cached value of the '{@link #getTypedefs() Typedefs}' containment reference list. + * + * @see #getTypedefs() + * @generated + * @ordered + */ + protected EList typedefs; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * The cached value of the '{@link #getVariables() Variables}' containment reference list. + * + * @see #getVariables() + * @generated + * @ordered + */ + protected EList variables; + + /** + * The cached value of the '{@link #getFunctions() Functions}' containment reference list. + * + * @see #getFunctions() + * @generated + * @ordered + */ + protected EList functions; + + /** + * + * + * @generated + */ + protected LibraryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.LIBRARY; + } + + /** + * + * + * @generated + */ + public EList getParts() { + if (parts == null) { + parts = new EObjectWithInverseResolvingEList(Part.class, this, DartPackage.LIBRARY__PARTS, + DartPackage.PART__PART_OF); + } + return parts; + } + + /** + * + * + * @generated + */ + public EList getTypedefs() { + if (typedefs == null) { + typedefs = new EObjectContainmentEList(Typedef.class, this, + DartPackage.LIBRARY__TYPEDEFS); + } + return typedefs; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.LIBRARY__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + public EList getVariables() { + if (variables == null) { + variables = new EObjectContainmentEList(Variable.class, this, + DartPackage.LIBRARY__VARIABLES); + } + return variables; + } + + /** + * + * + * @generated + */ + public EList getFunctions() { + if (functions == null) { + functions = new EObjectContainmentEList(Function.class, this, + DartPackage.LIBRARY__FUNCTIONS); + } + return functions; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.LIBRARY__PARTS: + return ((InternalEList)(InternalEList)getParts()) + .basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.LIBRARY__PARTS: + return ((InternalEList)getParts()).basicRemove(otherEnd, msgs); + case DartPackage.LIBRARY__TYPEDEFS: + return ((InternalEList)getTypedefs()).basicRemove(otherEnd, msgs); + case DartPackage.LIBRARY__VARIABLES: + return ((InternalEList)getVariables()).basicRemove(otherEnd, msgs); + case DartPackage.LIBRARY__FUNCTIONS: + return ((InternalEList)getFunctions()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.LIBRARY__PARTS: + return getParts(); + case DartPackage.LIBRARY__TYPEDEFS: + return getTypedefs(); + case DartPackage.LIBRARY__METADATA: + return getMetadata(); + case DartPackage.LIBRARY__VARIABLES: + return getVariables(); + case DartPackage.LIBRARY__FUNCTIONS: + return getFunctions(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.LIBRARY__PARTS: + getParts().clear(); + getParts().addAll((Collection)newValue); + return; + case DartPackage.LIBRARY__TYPEDEFS: + getTypedefs().clear(); + getTypedefs().addAll((Collection)newValue); + return; + case DartPackage.LIBRARY__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + case DartPackage.LIBRARY__VARIABLES: + getVariables().clear(); + getVariables().addAll((Collection)newValue); + return; + case DartPackage.LIBRARY__FUNCTIONS: + getFunctions().clear(); + getFunctions().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.LIBRARY__PARTS: + getParts().clear(); + return; + case DartPackage.LIBRARY__TYPEDEFS: + getTypedefs().clear(); + return; + case DartPackage.LIBRARY__METADATA: + getMetadata().clear(); + return; + case DartPackage.LIBRARY__VARIABLES: + getVariables().clear(); + return; + case DartPackage.LIBRARY__FUNCTIONS: + getFunctions().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.LIBRARY__PARTS: + return parts != null && !parts.isEmpty(); + case DartPackage.LIBRARY__TYPEDEFS: + return typedefs != null && !typedefs.isEmpty(); + case DartPackage.LIBRARY__METADATA: + return metadata != null && !metadata.isEmpty(); + case DartPackage.LIBRARY__VARIABLES: + return variables != null && !variables.isEmpty(); + case DartPackage.LIBRARY__FUNCTIONS: + return functions != null && !functions.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // LibraryImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/MetadataImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/MetadataImpl.java new file mode 100644 index 0000000..4ff1754 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/MetadataImpl.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Metadata; + +/** + * An implementation of the model object 'Metadata'. + *

+ *

+ * + * @generated + */ +public class MetadataImpl extends ClassifierImpl implements Metadata { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * + * + * @generated + */ + protected MetadataImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.METADATA; + } + +} // MetadataImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ModuleImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ModuleImpl.java new file mode 100644 index 0000000..2ccf30a --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ModuleImpl.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.AngularType; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Module; +import org.obeonetwork.dsl.dart.Route; + +/** + * An implementation of the model object 'Module'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ModuleImpl#getTypes Types}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ModuleImpl#getRoutes Routes}
  • + *
+ *

+ * + * @generated + */ +public class ModuleImpl extends PartImpl implements Module { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getTypes() Types}' reference list. + * + * + * @see #getTypes() + * @generated + * @ordered + */ + protected EList types; + + /** + * The cached value of the '{@link #getRoutes() Routes}' containment reference list. + * + * @see #getRoutes() + * @generated + * @ordered + */ + protected EList routes; + + /** + * + * + * @generated + */ + protected ModuleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.MODULE; + } + + /** + * + * + * @generated + */ + public EList getTypes() { + if (types == null) { + types = new EObjectResolvingEList(AngularType.class, this, DartPackage.MODULE__TYPES); + } + return types; + } + + /** + * + * + * @generated + */ + public EList getRoutes() { + if (routes == null) { + routes = new EObjectContainmentEList(Route.class, this, DartPackage.MODULE__ROUTES); + } + return routes; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.MODULE__ROUTES: + return ((InternalEList)getRoutes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.MODULE__TYPES: + return getTypes(); + case DartPackage.MODULE__ROUTES: + return getRoutes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.MODULE__TYPES: + getTypes().clear(); + getTypes().addAll((Collection)newValue); + return; + case DartPackage.MODULE__ROUTES: + getRoutes().clear(); + getRoutes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.MODULE__TYPES: + getTypes().clear(); + return; + case DartPackage.MODULE__ROUTES: + getRoutes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.MODULE__TYPES: + return types != null && !types.isEmpty(); + case DartPackage.MODULE__ROUTES: + return routes != null && !routes.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ModuleImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/PackageImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/PackageImpl.java new file mode 100644 index 0000000..51b9df9 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/PackageImpl.java @@ -0,0 +1,377 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Project; + +/** + * An implementation of the model object 'Package'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.PackageImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.PackageImpl#getLicense License}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.PackageImpl#getDependencies Dependencies}
  • + *
+ *

+ * + * @generated + */ +public class PackageImpl extends ContainerImpl implements org.obeonetwork.dsl.dart.Package { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getLicense() License}' attribute. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + protected static final String LICENSE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLicense() License}' attribute. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + protected String license = LICENSE_EDEFAULT; + + /** + * The cached value of the '{@link #getDependencies() Dependencies}' reference list. + * + * @see #getDependencies() + * @generated + * @ordered + */ + protected EList dependencies; + + /** + * + * + * @generated + */ + protected PackageImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.PACKAGE; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PACKAGE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getLicense() { + return license; + } + + /** + * + * + * @generated + */ + public void setLicense(String newLicense) { + String oldLicense = license; + license = newLicense; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PACKAGE__LICENSE, oldLicense, + license)); + } + + /** + * + * + * @generated + */ + public EList getDependencies() { + if (dependencies == null) { + dependencies = new EObjectResolvingEList( + org.obeonetwork.dsl.dart.Package.class, this, DartPackage.PACKAGE__DEPENDENCIES); + } + return dependencies; + } + + /** + * + * + * @generated + */ + public Project getProject() { + if (eContainerFeatureID() != DartPackage.PACKAGE__PROJECT) + return null; + return (Project)eInternalContainer(); + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetProject(Project newProject, NotificationChain msgs) { + msgs = eBasicSetContainer((InternalEObject)newProject, DartPackage.PACKAGE__PROJECT, msgs); + return msgs; + } + + /** + * + * + * @generated + */ + public void setProject(Project newProject) { + if (newProject != eInternalContainer() + || (eContainerFeatureID() != DartPackage.PACKAGE__PROJECT && newProject != null)) { + if (EcoreUtil.isAncestor(this, newProject)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newProject != null) + msgs = ((InternalEObject)newProject).eInverseAdd(this, DartPackage.PROJECT__PACKAGES, + Project.class, msgs); + msgs = basicSetProject(newProject, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PACKAGE__PROJECT, newProject, + newProject)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.PACKAGE__PROJECT: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetProject((Project)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.PACKAGE__PROJECT: + return basicSetProject(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { + switch (eContainerFeatureID()) { + case DartPackage.PACKAGE__PROJECT: + return eInternalContainer().eInverseRemove(this, DartPackage.PROJECT__PACKAGES, + Project.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.PACKAGE__NAME: + return getName(); + case DartPackage.PACKAGE__LICENSE: + return getLicense(); + case DartPackage.PACKAGE__DEPENDENCIES: + return getDependencies(); + case DartPackage.PACKAGE__PROJECT: + return getProject(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.PACKAGE__NAME: + setName((String)newValue); + return; + case DartPackage.PACKAGE__LICENSE: + setLicense((String)newValue); + return; + case DartPackage.PACKAGE__DEPENDENCIES: + getDependencies().clear(); + getDependencies().addAll((Collection)newValue); + return; + case DartPackage.PACKAGE__PROJECT: + setProject((Project)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.PACKAGE__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.PACKAGE__LICENSE: + setLicense(LICENSE_EDEFAULT); + return; + case DartPackage.PACKAGE__DEPENDENCIES: + getDependencies().clear(); + return; + case DartPackage.PACKAGE__PROJECT: + setProject((Project)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.PACKAGE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.PACKAGE__LICENSE: + return LICENSE_EDEFAULT == null ? license != null : !LICENSE_EDEFAULT.equals(license); + case DartPackage.PACKAGE__DEPENDENCIES: + return dependencies != null && !dependencies.isEmpty(); + case DartPackage.PACKAGE__PROJECT: + return getProject() != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", license: "); + result.append(license); + result.append(')'); + return result.toString(); + } + +} // PackageImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ParameterImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ParameterImpl.java new file mode 100644 index 0000000..c3f8791 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ParameterImpl.java @@ -0,0 +1,395 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Type; + +/** + * An implementation of the model object 'Parameter'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ParameterImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ParameterImpl#getValue Value}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ParameterImpl#isOptional Optional}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ParameterImpl#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ParameterImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class ParameterImpl extends MinimalEObjectImpl.Container implements Parameter { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #isOptional() Optional}' attribute. + * + * + * @see #isOptional() + * @generated + * @ordered + */ + protected static final boolean OPTIONAL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOptional() Optional}' attribute. + * + * + * @see #isOptional() + * @generated + * @ordered + */ + protected boolean optional = OPTIONAL_EDEFAULT; + + /** + * The cached value of the '{@link #getType() Type}' reference. + * + * @see #getType() + * @generated + * @ordered + */ + protected Type type; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected ParameterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.PARAMETER; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PARAMETER__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PARAMETER__VALUE, oldValue, + value)); + } + + /** + * + * + * @generated + */ + public boolean isOptional() { + return optional; + } + + /** + * + * + * @generated + */ + public void setOptional(boolean newOptional) { + boolean oldOptional = optional; + optional = newOptional; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PARAMETER__OPTIONAL, + oldOptional, optional)); + } + + /** + * + * + * @generated + */ + public Type getType() { + if (type != null && type.eIsProxy()) { + InternalEObject oldType = (InternalEObject)type; + type = (Type)eResolveProxy(oldType); + if (type != oldType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.PARAMETER__TYPE, + oldType, type)); + } + } + return type; + } + + /** + * + * + * @generated + */ + public Type basicGetType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(Type newType) { + Type oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PARAMETER__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.PARAMETER__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.PARAMETER__NAME: + return getName(); + case DartPackage.PARAMETER__VALUE: + return getValue(); + case DartPackage.PARAMETER__OPTIONAL: + return isOptional(); + case DartPackage.PARAMETER__TYPE: + if (resolve) + return getType(); + return basicGetType(); + case DartPackage.PARAMETER__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.PARAMETER__NAME: + setName((String)newValue); + return; + case DartPackage.PARAMETER__VALUE: + setValue((String)newValue); + return; + case DartPackage.PARAMETER__OPTIONAL: + setOptional((Boolean)newValue); + return; + case DartPackage.PARAMETER__TYPE: + setType((Type)newValue); + return; + case DartPackage.PARAMETER__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.PARAMETER__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.PARAMETER__VALUE: + setValue(VALUE_EDEFAULT); + return; + case DartPackage.PARAMETER__OPTIONAL: + setOptional(OPTIONAL_EDEFAULT); + return; + case DartPackage.PARAMETER__TYPE: + setType((Type)null); + return; + case DartPackage.PARAMETER__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.PARAMETER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.PARAMETER__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case DartPackage.PARAMETER__OPTIONAL: + return optional != OPTIONAL_EDEFAULT; + case DartPackage.PARAMETER__TYPE: + return type != null; + case DartPackage.PARAMETER__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", value: "); + result.append(value); + result.append(", optional: "); + result.append(optional); + result.append(')'); + return result.toString(); + } + +} // ParameterImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/PartImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/PartImpl.java new file mode 100644 index 0000000..cdc9f0e --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/PartImpl.java @@ -0,0 +1,232 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Library; +import org.obeonetwork.dsl.dart.Part; + +/** + * An implementation of the model object 'Part'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.PartImpl#getPartOf Part Of}
  • + *
+ *

+ * + * @generated + */ +public abstract class PartImpl extends DartResourceImpl implements Part { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getPartOf() Part Of}' reference. + * + * @see #getPartOf() + * @generated + * @ordered + */ + protected Library partOf; + + /** + * + * + * @generated + */ + protected PartImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.PART; + } + + /** + * + * + * @generated + */ + public Library getPartOf() { + if (partOf != null && partOf.eIsProxy()) { + InternalEObject oldPartOf = (InternalEObject)partOf; + partOf = (Library)eResolveProxy(oldPartOf); + if (partOf != oldPartOf) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.PART__PART_OF, + oldPartOf, partOf)); + } + } + return partOf; + } + + /** + * + * + * @generated + */ + public Library basicGetPartOf() { + return partOf; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPartOf(Library newPartOf, NotificationChain msgs) { + Library oldPartOf = partOf; + partOf = newPartOf; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + DartPackage.PART__PART_OF, oldPartOf, newPartOf); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setPartOf(Library newPartOf) { + if (newPartOf != partOf) { + NotificationChain msgs = null; + if (partOf != null) + msgs = ((InternalEObject)partOf).eInverseRemove(this, DartPackage.LIBRARY__PARTS, + Library.class, msgs); + if (newPartOf != null) + msgs = ((InternalEObject)newPartOf).eInverseAdd(this, DartPackage.LIBRARY__PARTS, + Library.class, msgs); + msgs = basicSetPartOf(newPartOf, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PART__PART_OF, newPartOf, + newPartOf)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.PART__PART_OF: + if (partOf != null) + msgs = ((InternalEObject)partOf).eInverseRemove(this, DartPackage.LIBRARY__PARTS, + Library.class, msgs); + return basicSetPartOf((Library)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.PART__PART_OF: + return basicSetPartOf(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.PART__PART_OF: + if (resolve) + return getPartOf(); + return basicGetPartOf(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.PART__PART_OF: + setPartOf((Library)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.PART__PART_OF: + setPartOf((Library)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.PART__PART_OF: + return partOf != null; + } + return super.eIsSet(featureID); + } + +} // PartImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ProjectImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ProjectImpl.java new file mode 100644 index 0000000..21ab976 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/ProjectImpl.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Project; + +/** + * An implementation of the model object 'Project'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.ProjectImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.ProjectImpl#getPackages Packages}
  • + *
+ *

+ * + * @generated + */ +public class ProjectImpl extends MinimalEObjectImpl.Container implements Project { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getPackages() Packages}' containment reference list. + * + * @see #getPackages() + * @generated + * @ordered + */ + protected EList packages; + + /** + * + * + * @generated + */ + protected ProjectImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.PROJECT; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.PROJECT__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public EList getPackages() { + if (packages == null) { + packages = new EObjectContainmentWithInverseEList( + org.obeonetwork.dsl.dart.Package.class, this, DartPackage.PROJECT__PACKAGES, + DartPackage.PACKAGE__PROJECT); + } + return packages; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.PROJECT__PACKAGES: + return ((InternalEList)(InternalEList)getPackages()).basicAdd(otherEnd, + msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.PROJECT__PACKAGES: + return ((InternalEList)getPackages()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.PROJECT__NAME: + return getName(); + case DartPackage.PROJECT__PACKAGES: + return getPackages(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.PROJECT__NAME: + setName((String)newValue); + return; + case DartPackage.PROJECT__PACKAGES: + getPackages().clear(); + getPackages().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.PROJECT__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.PROJECT__PACKAGES: + getPackages().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.PROJECT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.PROJECT__PACKAGES: + return packages != null && !packages.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // ProjectImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/RouteImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/RouteImpl.java new file mode 100644 index 0000000..25c6216 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/RouteImpl.java @@ -0,0 +1,359 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.HTML; +import org.obeonetwork.dsl.dart.Route; + +/** + * An implementation of the model object 'Route'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.RouteImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.RouteImpl#getPath Path}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.RouteImpl#getView View}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.RouteImpl#getExtends Extends}
  • + *
+ *

+ * + * @generated + */ +public class RouteImpl extends MinimalEObjectImpl.Container implements Route { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPath() Path}' attribute. + * + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() Path}' attribute. + * + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * The cached value of the '{@link #getView() View}' reference. + * + * @see #getView() + * @generated + * @ordered + */ + protected HTML view; + + /** + * The cached value of the '{@link #getExtends() Extends}' reference. + * + * + * @see #getExtends() + * @generated + * @ordered + */ + protected Route extends_; + + /** + * + * + * @generated + */ + protected RouteImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.ROUTE; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.ROUTE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getPath() { + return path; + } + + /** + * + * + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.ROUTE__PATH, oldPath, path)); + } + + /** + * + * + * @generated + */ + public HTML getView() { + if (view != null && view.eIsProxy()) { + InternalEObject oldView = (InternalEObject)view; + view = (HTML)eResolveProxy(oldView); + if (view != oldView) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.ROUTE__VIEW, + oldView, view)); + } + } + return view; + } + + /** + * + * + * @generated + */ + public HTML basicGetView() { + return view; + } + + /** + * + * + * @generated + */ + public void setView(HTML newView) { + HTML oldView = view; + view = newView; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.ROUTE__VIEW, oldView, view)); + } + + /** + * + * + * @generated + */ + public Route getExtends() { + if (extends_ != null && extends_.eIsProxy()) { + InternalEObject oldExtends = (InternalEObject)extends_; + extends_ = (Route)eResolveProxy(oldExtends); + if (extends_ != oldExtends) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.ROUTE__EXTENDS, + oldExtends, extends_)); + } + } + return extends_; + } + + /** + * + * + * @generated + */ + public Route basicGetExtends() { + return extends_; + } + + /** + * + * + * @generated + */ + public void setExtends(Route newExtends) { + Route oldExtends = extends_; + extends_ = newExtends; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.ROUTE__EXTENDS, oldExtends, + extends_)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.ROUTE__NAME: + return getName(); + case DartPackage.ROUTE__PATH: + return getPath(); + case DartPackage.ROUTE__VIEW: + if (resolve) + return getView(); + return basicGetView(); + case DartPackage.ROUTE__EXTENDS: + if (resolve) + return getExtends(); + return basicGetExtends(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.ROUTE__NAME: + setName((String)newValue); + return; + case DartPackage.ROUTE__PATH: + setPath((String)newValue); + return; + case DartPackage.ROUTE__VIEW: + setView((HTML)newValue); + return; + case DartPackage.ROUTE__EXTENDS: + setExtends((Route)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.ROUTE__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.ROUTE__PATH: + setPath(PATH_EDEFAULT); + return; + case DartPackage.ROUTE__VIEW: + setView((HTML)null); + return; + case DartPackage.ROUTE__EXTENDS: + setExtends((Route)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.ROUTE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.ROUTE__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + case DartPackage.ROUTE__VIEW: + return view != null; + case DartPackage.ROUTE__EXTENDS: + return extends_ != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} // RouteImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/StylesheetImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/StylesheetImpl.java new file mode 100644 index 0000000..f68159e --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/StylesheetImpl.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Stylesheet; + +/** + * An implementation of the model object 'Stylesheet'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.StylesheetImpl#getImports Imports}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.StylesheetImpl#isPartial Partial}
  • + *
+ *

+ * + * @generated + */ +public class StylesheetImpl extends AssetImpl implements Stylesheet { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached value of the '{@link #getImports() Imports}' reference list. + * + * @see #getImports() + * @generated + * @ordered + */ + protected EList imports; + + /** + * The default value of the '{@link #isPartial() Partial}' attribute. + * + * + * @see #isPartial() + * @generated + * @ordered + */ + protected static final boolean PARTIAL_EDEFAULT = false; + + /** + * + * + * @generated + */ + protected StylesheetImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.STYLESHEET; + } + + /** + * + * + * @generated + */ + public EList getImports() { + if (imports == null) { + imports = new EObjectResolvingEList(Stylesheet.class, this, + DartPackage.STYLESHEET__IMPORTS); + } + return imports; + } + + /** + * + * + * @generated NOT + */ + public boolean isPartial() { + return this.getName() != null && this.getName().startsWith("_"); + } + + /** + * + * + * @generated NOT + */ + public void setPartial(boolean newPartial) { + // do nothing + } + + /** + * + * + * @generated + */ + public void unsetPartial() { + // TODO: implement this method to unset the 'Partial' attribute + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated NOT + */ + public boolean isSetPartial() { + return true; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.STYLESHEET__IMPORTS: + return getImports(); + case DartPackage.STYLESHEET__PARTIAL: + return isPartial(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.STYLESHEET__IMPORTS: + getImports().clear(); + getImports().addAll((Collection)newValue); + return; + case DartPackage.STYLESHEET__PARTIAL: + setPartial((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.STYLESHEET__IMPORTS: + getImports().clear(); + return; + case DartPackage.STYLESHEET__PARTIAL: + unsetPartial(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.STYLESHEET__IMPORTS: + return imports != null && !imports.isEmpty(); + case DartPackage.STYLESHEET__PARTIAL: + return isSetPartial(); + } + return super.eIsSet(featureID); + } + +} // StylesheetImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/TypedefImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/TypedefImpl.java new file mode 100644 index 0000000..d67a468 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/TypedefImpl.java @@ -0,0 +1,394 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Type; +import org.obeonetwork.dsl.dart.Typedef; + +/** + * An implementation of the model object 'Typedef'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.TypedefImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.TypedefImpl#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.TypedefImpl#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.TypedefImpl#getParameters Parameters}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.TypedefImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class TypedefImpl extends MinimalEObjectImpl.Container implements Typedef { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getType() Type}' reference. + * + * @see #getType() + * @generated + * @ordered + */ + protected Type type; + + /** + * The cached value of the '{@link #getParameters() Parameters}' containment reference list. + * + * @see #getParameters() + * @generated + * @ordered + */ + protected EList parameters; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected TypedefImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.TYPEDEF; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.TYPEDEF__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.TYPEDEF__DOCUMENTATION, + oldDocumentation, documentation)); + } + + /** + * + * + * @generated + */ + public Type getType() { + if (type != null && type.eIsProxy()) { + InternalEObject oldType = (InternalEObject)type; + type = (Type)eResolveProxy(oldType); + if (type != oldType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.TYPEDEF__TYPE, + oldType, type)); + } + } + return type; + } + + /** + * + * + * @generated + */ + public Type basicGetType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(Type newType) { + Type oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.TYPEDEF__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public EList getParameters() { + if (parameters == null) { + parameters = new EObjectContainmentEList(Parameter.class, this, + DartPackage.TYPEDEF__PARAMETERS); + } + return parameters; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.TYPEDEF__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case DartPackage.TYPEDEF__PARAMETERS: + return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.TYPEDEF__DOCUMENTATION: + return getDocumentation(); + case DartPackage.TYPEDEF__NAME: + return getName(); + case DartPackage.TYPEDEF__TYPE: + if (resolve) + return getType(); + return basicGetType(); + case DartPackage.TYPEDEF__PARAMETERS: + return getParameters(); + case DartPackage.TYPEDEF__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.TYPEDEF__DOCUMENTATION: + setDocumentation((String)newValue); + return; + case DartPackage.TYPEDEF__NAME: + setName((String)newValue); + return; + case DartPackage.TYPEDEF__TYPE: + setType((Type)newValue); + return; + case DartPackage.TYPEDEF__PARAMETERS: + getParameters().clear(); + getParameters().addAll((Collection)newValue); + return; + case DartPackage.TYPEDEF__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.TYPEDEF__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case DartPackage.TYPEDEF__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.TYPEDEF__TYPE: + setType((Type)null); + return; + case DartPackage.TYPEDEF__PARAMETERS: + getParameters().clear(); + return; + case DartPackage.TYPEDEF__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.TYPEDEF__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT + .equals(documentation); + case DartPackage.TYPEDEF__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.TYPEDEF__TYPE: + return type != null; + case DartPackage.TYPEDEF__PARAMETERS: + return parameters != null && !parameters.isEmpty(); + case DartPackage.TYPEDEF__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (documentation: "); + result.append(documentation); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // TypedefImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/VariableImpl.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/VariableImpl.java new file mode 100644 index 0000000..6251f16 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/impl/VariableImpl.java @@ -0,0 +1,561 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; + +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Type; +import org.obeonetwork.dsl.dart.Variable; + +/** + * An implementation of the model object 'Variable'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#getName Name}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#getDocumentation Documentation}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#getType Type}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#isStatic Static}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#isConstant Constant}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#isFinal Final}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#getValue Value}
  • + *
  • {@link org.obeonetwork.dsl.dart.impl.VariableImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class VariableImpl extends MinimalEObjectImpl.Container implements Variable { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected static final String DOCUMENTATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDocumentation() Documentation}' attribute. + * + * @see #getDocumentation() + * @generated + * @ordered + */ + protected String documentation = DOCUMENTATION_EDEFAULT; + + /** + * The cached value of the '{@link #getType() Type}' reference. + * + * @see #getType() + * @generated + * @ordered + */ + protected Type type; + + /** + * The default value of the '{@link #isStatic() Static}' attribute. + * + * @see #isStatic() + * @generated + * @ordered + */ + protected static final boolean STATIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isStatic() Static}' attribute. + * + * @see #isStatic() + * @generated + * @ordered + */ + protected boolean static_ = STATIC_EDEFAULT; + + /** + * The default value of the '{@link #isConstant() Constant}' attribute. + * + * + * @see #isConstant() + * @generated + * @ordered + */ + protected static final boolean CONSTANT_EDEFAULT = false; + + /** + * The cached value of the '{@link #isConstant() Constant}' attribute. + * + * + * @see #isConstant() + * @generated + * @ordered + */ + protected boolean constant = CONSTANT_EDEFAULT; + + /** + * The default value of the '{@link #isFinal() Final}' attribute. + * + * @see #isFinal() + * @generated + * @ordered + */ + protected static final boolean FINAL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isFinal() Final}' attribute. + * + * @see #isFinal() + * @generated + * @ordered + */ + protected boolean final_ = FINAL_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' reference list. + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected VariableImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return DartPackage.Literals.VARIABLE; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getDocumentation() { + return documentation; + } + + /** + * + * + * @generated + */ + public void setDocumentation(String newDocumentation) { + String oldDocumentation = documentation; + documentation = newDocumentation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__DOCUMENTATION, + oldDocumentation, documentation)); + } + + /** + * + * + * @generated + */ + public Type getType() { + if (type != null && type.eIsProxy()) { + InternalEObject oldType = (InternalEObject)type; + type = (Type)eResolveProxy(oldType); + if (type != oldType) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, DartPackage.VARIABLE__TYPE, + oldType, type)); + } + } + return type; + } + + /** + * + * + * @generated + */ + public Type basicGetType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(Type newType) { + Type oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + public boolean isStatic() { + return static_; + } + + /** + * + * + * @generated + */ + public void setStatic(boolean newStatic) { + boolean oldStatic = static_; + static_ = newStatic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__STATIC, oldStatic, + static_)); + } + + /** + * + * + * @generated + */ + public boolean isConstant() { + return constant; + } + + /** + * + * + * @generated + */ + public void setConstant(boolean newConstant) { + boolean oldConstant = constant; + constant = newConstant; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__CONSTANT, + oldConstant, constant)); + } + + /** + * + * + * @generated + */ + public boolean isFinal() { + return final_; + } + + /** + * + * + * @generated + */ + public void setFinal(boolean newFinal) { + boolean oldFinal = final_; + final_ = newFinal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__FINAL, oldFinal, + final_)); + } + + /** + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, DartPackage.VARIABLE__VALUE, oldValue, + value)); + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectResolvingEList(Metadata.class, this, + DartPackage.VARIABLE__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case DartPackage.VARIABLE__NAME: + return getName(); + case DartPackage.VARIABLE__DOCUMENTATION: + return getDocumentation(); + case DartPackage.VARIABLE__TYPE: + if (resolve) + return getType(); + return basicGetType(); + case DartPackage.VARIABLE__STATIC: + return isStatic(); + case DartPackage.VARIABLE__CONSTANT: + return isConstant(); + case DartPackage.VARIABLE__FINAL: + return isFinal(); + case DartPackage.VARIABLE__VALUE: + return getValue(); + case DartPackage.VARIABLE__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case DartPackage.VARIABLE__NAME: + setName((String)newValue); + return; + case DartPackage.VARIABLE__DOCUMENTATION: + setDocumentation((String)newValue); + return; + case DartPackage.VARIABLE__TYPE: + setType((Type)newValue); + return; + case DartPackage.VARIABLE__STATIC: + setStatic((Boolean)newValue); + return; + case DartPackage.VARIABLE__CONSTANT: + setConstant((Boolean)newValue); + return; + case DartPackage.VARIABLE__FINAL: + setFinal((Boolean)newValue); + return; + case DartPackage.VARIABLE__VALUE: + setValue((String)newValue); + return; + case DartPackage.VARIABLE__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case DartPackage.VARIABLE__NAME: + setName(NAME_EDEFAULT); + return; + case DartPackage.VARIABLE__DOCUMENTATION: + setDocumentation(DOCUMENTATION_EDEFAULT); + return; + case DartPackage.VARIABLE__TYPE: + setType((Type)null); + return; + case DartPackage.VARIABLE__STATIC: + setStatic(STATIC_EDEFAULT); + return; + case DartPackage.VARIABLE__CONSTANT: + setConstant(CONSTANT_EDEFAULT); + return; + case DartPackage.VARIABLE__FINAL: + setFinal(FINAL_EDEFAULT); + return; + case DartPackage.VARIABLE__VALUE: + setValue(VALUE_EDEFAULT); + return; + case DartPackage.VARIABLE__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case DartPackage.VARIABLE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case DartPackage.VARIABLE__DOCUMENTATION: + return DOCUMENTATION_EDEFAULT == null ? documentation != null : !DOCUMENTATION_EDEFAULT + .equals(documentation); + case DartPackage.VARIABLE__TYPE: + return type != null; + case DartPackage.VARIABLE__STATIC: + return static_ != STATIC_EDEFAULT; + case DartPackage.VARIABLE__CONSTANT: + return constant != CONSTANT_EDEFAULT; + case DartPackage.VARIABLE__FINAL: + return final_ != FINAL_EDEFAULT; + case DartPackage.VARIABLE__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case DartPackage.VARIABLE__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", documentation: "); + result.append(documentation); + result.append(", static: "); + result.append(static_); + result.append(", constant: "); + result.append(constant); + result.append(", final: "); + result.append(final_); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} // VariableImpl diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/util/DartAdapterFactory.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/util/DartAdapterFactory.java new file mode 100644 index 0000000..eb5f339 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/util/DartAdapterFactory.java @@ -0,0 +1,652 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; +import org.eclipse.emf.ecore.EObject; +import org.obeonetwork.dsl.dart.AngularType; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.Classifier; +import org.obeonetwork.dsl.dart.Component; +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.Container; +import org.obeonetwork.dsl.dart.Controller; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; +import org.obeonetwork.dsl.dart.Decorator; +import org.obeonetwork.dsl.dart.Export; +import org.obeonetwork.dsl.dart.Folder; +import org.obeonetwork.dsl.dart.Formatter; +import org.obeonetwork.dsl.dart.Function; +import org.obeonetwork.dsl.dart.HTML; +import org.obeonetwork.dsl.dart.Import; +import org.obeonetwork.dsl.dart.Library; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Module; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Part; +import org.obeonetwork.dsl.dart.Project; +import org.obeonetwork.dsl.dart.Route; +import org.obeonetwork.dsl.dart.Stylesheet; +import org.obeonetwork.dsl.dart.Type; +import org.obeonetwork.dsl.dart.Typedef; +import org.obeonetwork.dsl.dart.Variable; + +/** + * The Adapter Factory for the model. It provides an adapter + * createXXX method for each class of the model. + * + * @see org.obeonetwork.dsl.dart.DartPackage + * @generated + */ +public class DartAdapterFactory extends AdapterFactoryImpl { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached model package. + * + * @generated + */ + protected static DartPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * @generated + */ + public DartAdapterFactory() { + if (modelPackage == null) { + modelPackage = DartPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. This + * implementation returns true if the object is either the model's package or is an instance + * object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * @generated + */ + protected DartSwitch modelSwitch = new DartSwitch() { + @Override + public Adapter caseProject(Project object) { + return createProjectAdapter(); + } + + @Override + public Adapter caseAsset(Asset object) { + return createAssetAdapter(); + } + + @Override + public Adapter caseContainer(Container object) { + return createContainerAdapter(); + } + + @Override + public Adapter caseFolder(Folder object) { + return createFolderAdapter(); + } + + @Override + public Adapter casePackage(org.obeonetwork.dsl.dart.Package object) { + return createPackageAdapter(); + } + + @Override + public Adapter caseDartResource(DartResource object) { + return createDartResourceAdapter(); + } + + @Override + public Adapter caseImport(Import object) { + return createImportAdapter(); + } + + @Override + public Adapter caseExport(Export object) { + return createExportAdapter(); + } + + @Override + public Adapter caseType(Type object) { + return createTypeAdapter(); + } + + @Override + public Adapter caseLibrary(Library object) { + return createLibraryAdapter(); + } + + @Override + public Adapter casePart(Part object) { + return createPartAdapter(); + } + + @Override + public Adapter caseClassifier(Classifier object) { + return createClassifierAdapter(); + } + + @Override + public Adapter caseMetadata(Metadata object) { + return createMetadataAdapter(); + } + + @Override + public Adapter caseClass(org.obeonetwork.dsl.dart.Class object) { + return createClassAdapter(); + } + + @Override + public Adapter caseVariable(Variable object) { + return createVariableAdapter(); + } + + @Override + public Adapter caseConstructor(Constructor object) { + return createConstructorAdapter(); + } + + @Override + public Adapter caseFunction(Function object) { + return createFunctionAdapter(); + } + + @Override + public Adapter caseParameter(Parameter object) { + return createParameterAdapter(); + } + + @Override + public Adapter caseTypedef(Typedef object) { + return createTypedefAdapter(); + } + + @Override + public Adapter caseHTML(HTML object) { + return createHTMLAdapter(); + } + + @Override + public Adapter caseStylesheet(Stylesheet object) { + return createStylesheetAdapter(); + } + + @Override + public Adapter caseModule(Module object) { + return createModuleAdapter(); + } + + @Override + public Adapter caseAngularType(AngularType object) { + return createAngularTypeAdapter(); + } + + @Override + public Adapter caseController(Controller object) { + return createControllerAdapter(); + } + + @Override + public Adapter caseComponent(Component object) { + return createComponentAdapter(); + } + + @Override + public Adapter caseDecorator(Decorator object) { + return createDecoratorAdapter(); + } + + @Override + public Adapter caseFormatter(Formatter object) { + return createFormatterAdapter(); + } + + @Override + public Adapter caseRoute(Route object) { + return createRouteAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * @param target + * the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Project Project} + * '. This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Project + * @generated + */ + public Adapter createProjectAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Asset Asset}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Asset + * @generated + */ + public Adapter createAssetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Container + * Container}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Container + * @generated + */ + public Adapter createContainerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Folder Folder}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Folder + * @generated + */ + public Adapter createFolderAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Package Package} + * '. This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Package + * @generated + */ + public Adapter createPackageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.DartResource + * Resource}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.DartResource + * @generated + */ + public Adapter createDartResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Import Import}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Import + * @generated + */ + public Adapter createImportAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Export Export}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Export + * @generated + */ + public Adapter createExportAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Typedef Typedef} + * '. This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Typedef + * @generated + */ + public Adapter createTypedefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.HTML HTML}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.HTML + * @generated + */ + public Adapter createHTMLAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Stylesheet + * Stylesheet}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Stylesheet + * @generated + */ + public Adapter createStylesheetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Module Module}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Module + * @generated + */ + public Adapter createModuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.AngularType + * Angular Type}'. This default implementation returns null so that we + * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.AngularType + * @generated + */ + public Adapter createAngularTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Controller + * Controller}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Controller + * @generated + */ + public Adapter createControllerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Component + * Component}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Component + * @generated + */ + public Adapter createComponentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Decorator + * Decorator}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Decorator + * @generated + */ + public Adapter createDecoratorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Formatter + * Formatter}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Formatter + * @generated + */ + public Adapter createFormatterAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Route Route}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Route + * @generated + */ + public Adapter createRouteAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Type Type}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Type + * @generated + */ + public Adapter createTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Library Library} + * '. This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Library + * @generated + */ + public Adapter createLibraryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Part Part}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Part + * @generated + */ + public Adapter createPartAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Classifier + * Classifier}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Classifier + * @generated + */ + public Adapter createClassifierAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Metadata + * Metadata}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Metadata + * @generated + */ + public Adapter createMetadataAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Class Class}'. + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Class + * @generated + */ + public Adapter createClassAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Variable + * Variable}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Variable + * @generated + */ + public Adapter createVariableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Constructor + * Constructor}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Constructor + * @generated + */ + public Adapter createConstructorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Function + * Function}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Function + * @generated + */ + public Adapter createFunctionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.obeonetwork.dsl.dart.Parameter + * Parameter}'. This default implementation returns null so that we can + * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * + * @return the new adapter. + * @see org.obeonetwork.dsl.dart.Parameter + * @generated + */ + public Adapter createParameterAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. This default implementation returns + * null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // DartAdapterFactory diff --git a/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/util/DartSwitch.java b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/util/DartSwitch.java new file mode 100644 index 0000000..afe9ac0 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src-gen/org/obeonetwork/dsl/dart/util/DartSwitch.java @@ -0,0 +1,846 @@ +/** + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + */ +package org.obeonetwork.dsl.dart.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; +import org.obeonetwork.dsl.dart.AngularType; +import org.obeonetwork.dsl.dart.Asset; +import org.obeonetwork.dsl.dart.Classifier; +import org.obeonetwork.dsl.dart.Component; +import org.obeonetwork.dsl.dart.Constructor; +import org.obeonetwork.dsl.dart.Container; +import org.obeonetwork.dsl.dart.Controller; +import org.obeonetwork.dsl.dart.DartPackage; +import org.obeonetwork.dsl.dart.DartResource; +import org.obeonetwork.dsl.dart.Decorator; +import org.obeonetwork.dsl.dart.Export; +import org.obeonetwork.dsl.dart.Folder; +import org.obeonetwork.dsl.dart.Formatter; +import org.obeonetwork.dsl.dart.Function; +import org.obeonetwork.dsl.dart.HTML; +import org.obeonetwork.dsl.dart.Import; +import org.obeonetwork.dsl.dart.Library; +import org.obeonetwork.dsl.dart.Metadata; +import org.obeonetwork.dsl.dart.Module; +import org.obeonetwork.dsl.dart.Parameter; +import org.obeonetwork.dsl.dart.Part; +import org.obeonetwork.dsl.dart.Project; +import org.obeonetwork.dsl.dart.Route; +import org.obeonetwork.dsl.dart.Stylesheet; +import org.obeonetwork.dsl.dart.Type; +import org.obeonetwork.dsl.dart.Typedef; +import org.obeonetwork.dsl.dart.Variable; + +/** + * The Switch for the model's inheritance hierarchy. It supports the call + * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the + * model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a + * non-null result is returned, which is the result of the switch. + * + * @see org.obeonetwork.dsl.dart.DartPackage + * @generated + */ +public class DartSwitch extends Switch { + /** + * + * + * @generated + */ + public static final String copyright = " Copyright (c) 2014 Obeo.\r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v1.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v10.html\r\n \r\n Contributors:\r\n Obeo - initial API and implementation"; + + /** + * The cached model package + * + * @generated + */ + protected static DartPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * @generated + */ + public DartSwitch() { + if (modelPackage == null) { + modelPackage = DartPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields + * that result. + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case DartPackage.PROJECT: { + Project project = (Project)theEObject; + T result = caseProject(project); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.ASSET: { + Asset asset = (Asset)theEObject; + T result = caseAsset(asset); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.CONTAINER: { + Container container = (Container)theEObject; + T result = caseContainer(container); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.FOLDER: { + Folder folder = (Folder)theEObject; + T result = caseFolder(folder); + if (result == null) + result = caseContainer(folder); + if (result == null) + result = caseAsset(folder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.PACKAGE: { + org.obeonetwork.dsl.dart.Package package_ = (org.obeonetwork.dsl.dart.Package)theEObject; + T result = casePackage(package_); + if (result == null) + result = caseContainer(package_); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.DART_RESOURCE: { + DartResource dartResource = (DartResource)theEObject; + T result = caseDartResource(dartResource); + if (result == null) + result = caseAsset(dartResource); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.IMPORT: { + Import import_ = (Import)theEObject; + T result = caseImport(import_); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.EXPORT: { + Export export = (Export)theEObject; + T result = caseExport(export); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.TYPE: { + Type type = (Type)theEObject; + T result = caseType(type); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.LIBRARY: { + Library library = (Library)theEObject; + T result = caseLibrary(library); + if (result == null) + result = caseDartResource(library); + if (result == null) + result = caseAsset(library); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.PART: { + Part part = (Part)theEObject; + T result = casePart(part); + if (result == null) + result = caseDartResource(part); + if (result == null) + result = caseAsset(part); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.CLASSIFIER: { + Classifier classifier = (Classifier)theEObject; + T result = caseClassifier(classifier); + if (result == null) + result = casePart(classifier); + if (result == null) + result = caseDartResource(classifier); + if (result == null) + result = caseAsset(classifier); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.METADATA: { + Metadata metadata = (Metadata)theEObject; + T result = caseMetadata(metadata); + if (result == null) + result = caseClassifier(metadata); + if (result == null) + result = casePart(metadata); + if (result == null) + result = caseDartResource(metadata); + if (result == null) + result = caseAsset(metadata); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.CLASS: { + org.obeonetwork.dsl.dart.Class class_ = (org.obeonetwork.dsl.dart.Class)theEObject; + T result = caseClass(class_); + if (result == null) + result = caseClassifier(class_); + if (result == null) + result = caseType(class_); + if (result == null) + result = casePart(class_); + if (result == null) + result = caseDartResource(class_); + if (result == null) + result = caseAsset(class_); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.VARIABLE: { + Variable variable = (Variable)theEObject; + T result = caseVariable(variable); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.CONSTRUCTOR: { + Constructor constructor = (Constructor)theEObject; + T result = caseConstructor(constructor); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.FUNCTION: { + Function function = (Function)theEObject; + T result = caseFunction(function); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.PARAMETER: { + Parameter parameter = (Parameter)theEObject; + T result = caseParameter(parameter); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.TYPEDEF: { + Typedef typedef = (Typedef)theEObject; + T result = caseTypedef(typedef); + if (result == null) + result = caseType(typedef); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.HTML: { + HTML html = (HTML)theEObject; + T result = caseHTML(html); + if (result == null) + result = caseAsset(html); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.STYLESHEET: { + Stylesheet stylesheet = (Stylesheet)theEObject; + T result = caseStylesheet(stylesheet); + if (result == null) + result = caseAsset(stylesheet); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.MODULE: { + Module module = (Module)theEObject; + T result = caseModule(module); + if (result == null) + result = casePart(module); + if (result == null) + result = caseDartResource(module); + if (result == null) + result = caseAsset(module); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.ANGULAR_TYPE: { + AngularType angularType = (AngularType)theEObject; + T result = caseAngularType(angularType); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.CONTROLLER: { + Controller controller = (Controller)theEObject; + T result = caseController(controller); + if (result == null) + result = caseClass(controller); + if (result == null) + result = caseAngularType(controller); + if (result == null) + result = caseClassifier(controller); + if (result == null) + result = caseType(controller); + if (result == null) + result = casePart(controller); + if (result == null) + result = caseDartResource(controller); + if (result == null) + result = caseAsset(controller); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.COMPONENT: { + Component component = (Component)theEObject; + T result = caseComponent(component); + if (result == null) + result = caseClass(component); + if (result == null) + result = caseAngularType(component); + if (result == null) + result = caseClassifier(component); + if (result == null) + result = caseType(component); + if (result == null) + result = casePart(component); + if (result == null) + result = caseDartResource(component); + if (result == null) + result = caseAsset(component); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.DECORATOR: { + Decorator decorator = (Decorator)theEObject; + T result = caseDecorator(decorator); + if (result == null) + result = caseClass(decorator); + if (result == null) + result = caseAngularType(decorator); + if (result == null) + result = caseClassifier(decorator); + if (result == null) + result = caseType(decorator); + if (result == null) + result = casePart(decorator); + if (result == null) + result = caseDartResource(decorator); + if (result == null) + result = caseAsset(decorator); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.FORMATTER: { + Formatter formatter = (Formatter)theEObject; + T result = caseFormatter(formatter); + if (result == null) + result = caseClass(formatter); + if (result == null) + result = caseAngularType(formatter); + if (result == null) + result = caseClassifier(formatter); + if (result == null) + result = caseType(formatter); + if (result == null) + result = casePart(formatter); + if (result == null) + result = caseDartResource(formatter); + if (result == null) + result = caseAsset(formatter); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case DartPackage.ROUTE: { + Route route = (Route)theEObject; + T result = caseRoute(route); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Project'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Project'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProject(Project object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Asset'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Asset'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAsset(Asset object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Container'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Container'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainer(Container object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Folder'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Folder'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFolder(Folder object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Package'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Package'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePackage(org.obeonetwork.dsl.dart.Package object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDartResource(DartResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Import'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Import'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseImport(Import object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Export'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Export'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExport(Export object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Typedef'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Typedef'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTypedef(Typedef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'HTML'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'HTML'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHTML(HTML object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Stylesheet'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Stylesheet'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStylesheet(Stylesheet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Module'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Module'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModule(Module object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Angular Type'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Angular Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAngularType(AngularType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Controller'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Controller'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseController(Controller object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Component'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Component'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComponent(Component object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Decorator'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Decorator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDecorator(Decorator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Formatter'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Formatter'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFormatter(Formatter object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Route'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Route'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRoute(Route object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Type'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseType(Type object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Library'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Library'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLibrary(Library object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Part'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Part'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePart(Part object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Classifier'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Classifier'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClassifier(Classifier object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Metadata'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Metadata'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMetadata(Metadata object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Class'. This implementation returns null; returning a non-null result will terminate the switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Class'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClass(org.obeonetwork.dsl.dart.Class object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Variable'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Variable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVariable(Variable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Constructor'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Constructor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConstructor(Constructor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Function'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Function'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFunction(Function object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will terminate the + * switch. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'Parameter'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseParameter(Parameter object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this + * is the last case anyway. + * + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} // DartSwitch diff --git a/org.obeonetwork.dsl.dart/src/org/obeonetwork/dsl/dart/IDartSpecificationConstants.java b/org.obeonetwork.dsl.dart/src/org/obeonetwork/dsl/dart/IDartSpecificationConstants.java new file mode 100644 index 0000000..ac1e3d4 --- /dev/null +++ b/org.obeonetwork.dsl.dart/src/org/obeonetwork/dsl/dart/IDartSpecificationConstants.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2014 Obeo. + * 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: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.obeonetwork.dsl.dart; + +/** + * Utility interface holding some constants. + * + * @author Stephane Begaudeau + */ +public interface IDartSpecificationConstants { + /** + * The URI of the dartlang specification file. + */ + String DARTLANG_URI = "platform:/plugin/org.obeonetwork.dsl.dart/model/dartlang.dartspec"; //$NON-NLS-1$ + + /** + * The name of the dartlang package. + */ + String DARTLANG_PACKAGE_NAME = "Dart Standard Library"; //$NON-NLS-1$ + + /** + * The Dart specification extension. + */ + String EXTENSION = "dartspec"; //$NON-NLS-1$ + + /** + * The extension of dart files. + */ + String DART_FILE_EXTENSION = ".dart"; //$NON-NLS-1$ +}