diff options
author | Ed Merks | 2013-10-17 06:41:21 +0000 |
---|---|---|
committer | Ed Merks | 2013-10-17 10:33:35 +0000 |
commit | 01bd70d72aa7ea88543e3b0723b00014092e5b15 (patch) | |
tree | cf91a5b2ea09c25d4db1a2d29efe806e90e34df1 | |
parent | f3383ce73006201ddcc2430c211b5bc1ed69cc31 (diff) | |
download | cdo-01bd70d72aa7ea88543e3b0723b00014092e5b15.tar.gz cdo-01bd70d72aa7ea88543e3b0723b00014092e5b15.tar.xz cdo-01bd70d72aa7ea88543e3b0723b00014092e5b15.zip |
Improve setup related models
Change-Id: I2401d47184d70d5bd5610e7bca3feae362600f95
Signed-off-by: Ed Merks <ed.merks@gmail.com>
515 files changed, 52914 insertions, 8864 deletions
diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.project b/features/org.eclipse.emf.cdo.releng.setup-feature/.project index 7cea4e3c28..b096c45541 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.project +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/.project @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <projectDescription> - <name>org.eclipse.emf.cdo.releng.setup.ide-feature</name> + <name>org.eclipse.emf.cdo.releng.setup-feature</name> <comment></comment> <projects> </projects> diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.settings/org.eclipse.ltk.core.refactoring.prefs b/features/org.eclipse.emf.cdo.releng.setup-feature/.settings/org.eclipse.ltk.core.refactoring.prefs index 2e4a92ec2a..2e4a92ec2a 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.settings/org.eclipse.ltk.core.refactoring.prefs +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/.settings/org.eclipse.ltk.core.refactoring.prefs diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.settings/org.eclipse.mylyn.tasks.ui.prefs b/features/org.eclipse.emf.cdo.releng.setup-feature/.settings/org.eclipse.mylyn.tasks.ui.prefs index d573634502..d573634502 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/.settings/org.eclipse.mylyn.tasks.ui.prefs diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.settings/org.eclipse.mylyn.team.ui.prefs b/features/org.eclipse.emf.cdo.releng.setup-feature/.settings/org.eclipse.mylyn.team.ui.prefs index 4d86eb45ba..4d86eb45ba 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/.settings/org.eclipse.mylyn.team.ui.prefs +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/.settings/org.eclipse.mylyn.team.ui.prefs diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/build.properties b/features/org.eclipse.emf.cdo.releng.setup-feature/build.properties index d71e9cdafe..d71e9cdafe 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/build.properties +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/build.properties diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/feature.properties b/features/org.eclipse.emf.cdo.releng.setup-feature/feature.properties index 304eb9af77..304eb9af77 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/feature.properties +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/feature.properties diff --git a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/feature.xml b/features/org.eclipse.emf.cdo.releng.setup-feature/feature.xml index 1dd2f9447b..620d8bb917 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.ide-feature/feature.xml +++ b/features/org.eclipse.emf.cdo.releng.setup-feature/feature.xml @@ -10,7 +10,7 @@ Eike Stepper - initial API and implementation --> <feature - id="org.eclipse.emf.cdo.releng.setup.ide" + id="org.eclipse.emf.cdo.releng.setup" label="%featureName" version="1.0.0.qualifier" provider-name="%providerName" @@ -36,38 +36,10 @@ </url> <plugin - id="org.eclipse.emf.cdo.releng.setup.ui" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - - <plugin - id="org.eclipse.emf.cdo.releng.setup.ide" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - - <plugin id="org.eclipse.emf.cdo.releng.setup" download-size="0" install-size="0" version="0.0.0" unpack="false"/> - <plugin - id="org.eclipse.emf.cdo.releng.setup.edit" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - - <plugin - id="org.eclipse.emf.cdo.releng.setup.editor" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - </feature> diff --git a/features/org.eclipse.emf.cdo.releng.setup.editor-feature/feature.xml b/features/org.eclipse.emf.cdo.releng.setup.editor-feature/feature.xml index 42694f5b18..f04b9895da 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.editor-feature/feature.xml +++ b/features/org.eclipse.emf.cdo.releng.setup.editor-feature/feature.xml @@ -35,12 +35,9 @@ <discovery label="%updateSiteName" url="http://www.eclipse.org/modeling/updates/"/> </url> - <plugin + <includes id="org.eclipse.emf.cdo.releng.setup" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> + version="0.0.0"/> <plugin id="org.eclipse.emf.cdo.releng.setup.edit" diff --git a/features/org.eclipse.emf.cdo.releng.setup.product-feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.emf.cdo.releng.setup.product-feature/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..ea8ba69565 --- /dev/null +++ b/features/org.eclipse.emf.cdo.releng.setup.product-feature/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/Setup.product=UTF-8 diff --git a/features/org.eclipse.emf.cdo.releng.setup.product-feature/feature.xml b/features/org.eclipse.emf.cdo.releng.setup.product-feature/feature.xml index 7e3e1fecd8..9fa6694ed9 100644 --- a/features/org.eclipse.emf.cdo.releng.setup.product-feature/feature.xml +++ b/features/org.eclipse.emf.cdo.releng.setup.product-feature/feature.xml @@ -48,13 +48,6 @@ unpack="false"/> <plugin - id="org.eclipse.emf.cdo.releng.setup.ui" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - - <plugin id="org.eclipse.emf.cdo.releng.setup.product" download-size="0" install-size="0" @@ -88,4 +81,18 @@ install-size="0" version="0.0.0"/> + <plugin + id="org.eclipse.equinox.p2.updatesite" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.emf.cdo.releng.setup.editor.rcp" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + </feature> diff --git a/features/org.eclipse.emf.cdo.releng.workingsets-feature/feature.xml b/features/org.eclipse.emf.cdo.releng.workingsets-feature/feature.xml index 3d4b8f4f78..8fb33fd88f 100644 --- a/features/org.eclipse.emf.cdo.releng.workingsets-feature/feature.xml +++ b/features/org.eclipse.emf.cdo.releng.workingsets-feature/feature.xml @@ -56,4 +56,18 @@ version="0.0.0" unpack="false"/> + <plugin + id="org.eclipse.emf.cdo.releng.predicates" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.emf.cdo.releng.predicates.edit" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + </feature> diff --git a/features/org.eclipse.emf.cdo.site-feature/feature.xml b/features/org.eclipse.emf.cdo.site-feature/feature.xml index eaaafbbdd6..aa42882e84 100644 --- a/features/org.eclipse.emf.cdo.site-feature/feature.xml +++ b/features/org.eclipse.emf.cdo.site-feature/feature.xml @@ -47,7 +47,7 @@ <includes id="org.eclipse.emf.cdo.releng.projectcopy" version="0.0.0"/> <includes id="org.eclipse.emf.cdo.releng.relativepaths" version="0.0.0"/> <includes id="org.eclipse.emf.cdo.releng.setup.editor" version="0.0.0"/> - <includes id="org.eclipse.emf.cdo.releng.setup.ide" version="0.0.0"/> + <includes id="org.eclipse.emf.cdo.releng.setup" version="0.0.0"/> <includes id="org.eclipse.emf.cdo.releng.setup.product" version="0.0.0"/> <includes id="org.eclipse.emf.cdo.releng.tasks" version="0.0.0"/> <includes id="org.eclipse.emf.cdo.releng.version" version="0.0.0"/> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.classpath b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.classpath new file mode 100644 index 0000000000..3bc247511f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.project b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.project new file mode 100644 index 0000000000..67b5648e49 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.project @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.releng.predicates.edit</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.emf.cdo.releng.version.VersionBuilder</name> + <arguments> + <dictionary> + <key>ignore.schema.builder</key> + <value>true</value> + </dictionary> + <dictionary> + <key>release.path</key> + <value>/org.eclipse.emf.cdo.releng.release/release.xml</value> + </dictionary> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..b3af741094 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,405 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= +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.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +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.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +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=enabled +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=warning +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +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=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +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=disabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public +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=warning +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +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=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +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=warning +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=ignore +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +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=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +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.5 +org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled +org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH,LOW,LOW,LOW,LOW,LOW +org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX,PERF,MEM,POLISH,@generated NOT,@ADDED +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=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +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=next_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=next_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_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=false +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=120 +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=false +org.eclipse.jdt.core.formatter.indentation.size=2 +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=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=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=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=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=120 +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=space +org.eclipse.jdt.core.formatter.tabulation.size=2 +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=true diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.jdt.ui.prefs index 3fc140fcdc..3fc140fcdc 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.jdt.ui.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.jdt.ui.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.ltk.core.refactoring.prefs index 864e30fe5d..864e30fe5d 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.ltk.core.refactoring.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.ltk.core.refactoring.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs index b050639a54..b050639a54 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.mylyn.team.ui.prefs index 2f50f36c0c..2f50f36c0c 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.mylyn.team.ui.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.mylyn.team.ui.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.pde.api.tools.prefs index 0c17d59e45..0c17d59e45 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.pde.api.tools.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.pde.api.tools.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.pde.prefs index fd493c44ac..fe01bb701d 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.pde.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/.settings/org.eclipse.pde.prefs @@ -1,26 +1,25 @@ +#Thu Feb 04 09:44:24 CET 2010 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=2 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=2 -compilers.p.discouraged-class=2 +compilers.p.discouraged-class=1 compilers.p.internal=1 -compilers.p.missing-packages=2 +compilers.p.missing-packages=1 compilers.p.missing-version-export-package=1 compilers.p.missing-version-import-package=1 compilers.p.missing-version-require-bundle=1 compilers.p.no-required-att=0 compilers.p.not-externalized-att=2 compilers.p.unknown-attribute=1 -compilers.p.unknown-class=2 +compilers.p.unknown-class=1 compilers.p.unknown-element=1 compilers.p.unknown-identifier=1 compilers.p.unknown-resource=1 diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..cf12e30141 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.emf.cdo.releng.predicates.edit;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.eclipse.emf.cdo.releng.predicates.provider.PredicatesEditPlugin$Implementation +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.emf.cdo.releng.predicates.provider +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)", + org.eclipse.emf.cdo.releng.predicates;bundle-version="[1.0.0,2.0.0)";visibility:=reexport, + org.eclipse.emf.edit;bundle-version="[2.6.0,3.0.0)";visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/build.properties b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/build.properties new file mode 100644 index 0000000000..6e3e902e80 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/build.properties @@ -0,0 +1,10 @@ +# + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/AndPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/AndPredicate.gif Binary files differnew file mode 100644 index 0000000000..d1fde2b075 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/AndPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/BuilderPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/BuilderPredicate.gif Binary files differnew file mode 100644 index 0000000000..895f0cfa47 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/BuilderPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/AndPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/AndPredicate.gif Binary files differnew file mode 100644 index 0000000000..498364f1c1 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/AndPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/BuilderPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/BuilderPredicate.gif Binary files differnew file mode 100644 index 0000000000..2b69256029 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/BuilderPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/FilePredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/FilePredicate.gif Binary files differnew file mode 100644 index 0000000000..1e5345fb32 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/FilePredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/NaturePredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/NaturePredicate.gif Binary files differnew file mode 100644 index 0000000000..8a5c70cbd7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/NaturePredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/NotPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/NotPredicate.gif Binary files differnew file mode 100644 index 0000000000..ed87474740 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/NotPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/OrPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/OrPredicate.gif Binary files differnew file mode 100644 index 0000000000..14af8aaee9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/OrPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/Predicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/Predicate.gif Binary files differnew file mode 100644 index 0000000000..9500f6ee59 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/Predicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/RepositoryPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/RepositoryPredicate.gif Binary files differnew file mode 100644 index 0000000000..134551bff7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Corel Auto-Preserve/RepositoryPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/FilePredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/FilePredicate.gif Binary files differnew file mode 100644 index 0000000000..ad6a8e9252 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/FilePredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets.edit/icons/full/obj16/NamePredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NamePredicate.gif Binary files differindex b983f27e28..b983f27e28 100644 --- a/plugins/org.eclipse.emf.cdo.releng.workingsets.edit/icons/full/obj16/NamePredicate.gif +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NamePredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NaturePredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NaturePredicate.gif Binary files differnew file mode 100644 index 0000000000..2379f71de3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NaturePredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NotPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NotPredicate.gif Binary files differnew file mode 100644 index 0000000000..83fcadfe9a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/NotPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/OrPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/OrPredicate.gif Binary files differnew file mode 100644 index 0000000000..f6ffb2ea58 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/OrPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Predicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Predicate.gif Binary files differnew file mode 100644 index 0000000000..200df9b48e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/Predicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/RepositoryPredicate.gif b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/RepositoryPredicate.gif Binary files differnew file mode 100644 index 0000000000..7b4fe4abaf --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/icons/full/obj16/RepositoryPredicate.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/plugin.properties b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/plugin.properties new file mode 100644 index 0000000000..7a2524492c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/plugin.properties @@ -0,0 +1,38 @@ +# + +pluginName = Predicates Edit Support +providerName = www.example.org + +_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_Predicate_type = Predicate +_UI_NamePredicate_type = Name Predicate +_UI_RepositoryPredicate_type = Repository Predicate +_UI_AndPredicate_type = And Predicate +_UI_OrPredicate_type = Or Predicate +_UI_NotPredicate_type = Not Predicate +_UI_NaturePredicate_type = Nature Predicate +_UI_BuilderPredicate_type = Builder Predicate +_UI_Unknown_type = Object + +_UI_Unknown_datatype= Value + +_UI_NamePredicate_pattern_feature = Pattern +_UI_RepositoryPredicate_project_feature = Project +_UI_AndPredicate_operands_feature = Operands +_UI_OrPredicate_operands_feature = Operands +_UI_NotPredicate_operand_feature = Operand +_UI_NaturePredicate_nature_feature = Nature +_UI_BuilderPredicate_builder_feature = Builder +_UI_Unknown_feature = Unspecified + +_UI_FilePredicate_type = File Predicate +_UI_FilePredicate_filePattern_feature = File Pattern +_UI_FilePredicate_contentPattern_feature = Content Pattern diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/plugin.xml b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/plugin.xml new file mode 100644 index 0000000000..1619d79f11 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/plugin.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories"> + <!-- @generated predicates --> + <factory + uri="http://www.eclipse.org/CDO/releng/predicates/1.0" + class="org.eclipse.emf.cdo.releng.predicates.provider.PredicatesItemProviderAdapterFactory" + supportedTypes= + "org.eclipse.emf.edit.provider.IEditingDomainItemProvider + org.eclipse.emf.edit.provider.IStructuredItemContentProvider + org.eclipse.emf.edit.provider.ITreeItemContentProvider + org.eclipse.emf.edit.provider.IItemLabelProvider + org.eclipse.emf.edit.provider.IItemPropertySource"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/AndPredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/AndPredicateItemProvider.java new file mode 100644 index 0000000000..a2dbae205c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/AndPredicateItemProvider.java @@ -0,0 +1,201 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.AndPredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesFactory; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.IChildCreationExtender; +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 java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.AndPredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class AndPredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AndPredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) + { + if (childrenFeatures == null) + { + super.getChildrenFeatures(object); + childrenFeatures.add(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS); + } + return childrenFeatures; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 AndPredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/AndPredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + return "And"; + } + + /** + * 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(AndPredicate.class)) + { + case PredicatesPackage.AND_PREDICATE__OPERANDS: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createNamePredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createRepositoryPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createAndPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createOrPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createNotPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createNaturePredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createBuilderPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.AND_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createFilePredicate())); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/BuilderPredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/BuilderPredicateItemProvider.java new file mode 100644 index 0000000000..10252e020d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/BuilderPredicateItemProvider.java @@ -0,0 +1,198 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.BuilderPredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.IChildCreationExtender; +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.eclipse.core.resources.ICommand; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IWorkspaceRoot; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class BuilderPredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + private static final IWorkspaceRoot WORKSPACE_ROOT = ResourcesPlugin.getWorkspace().getRoot(); + + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BuilderPredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) + { + if (itemPropertyDescriptors == null) + { + super.getPropertyDescriptors(object); + + addBuilderPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Builder feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + protected void addBuilderPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_BuilderPredicate_builder_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_BuilderPredicate_builder_feature", "_UI_BuilderPredicate_type"), + PredicatesPackage.Literals.BUILDER_PREDICATE__BUILDER, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null) + { + @Override + public Collection<?> getChoiceOfValues(Object object) + { + List<String> result = new ArrayList<String>(); + for (IProject project : WORKSPACE_ROOT.getProjects()) + { + try + { + for (ICommand command : project.getDescription().getBuildSpec()) + { + String name = command.getBuilderName(); + if (!result.contains(name)) + { + result.add(name); + } + } + } + catch (CoreException ex) + { + // Ignore + } + } + Collections.sort(result); + return result; + } + }); + } + + /** + * This returns BuilderPredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/BuilderPredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + String label = ((BuilderPredicate)object).getBuilder(); + return label == null ? "" : 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(BuilderPredicate.class)) + { + case PredicatesPackage.BUILDER_PREDICATE__BUILDER: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/FilePredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/FilePredicateItemProvider.java new file mode 100644 index 0000000000..5fbe4c56e6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/FilePredicateItemProvider.java @@ -0,0 +1,189 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.FilePredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.IChildCreationExtender; +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 java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.FilePredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class FilePredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FilePredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) + { + if (itemPropertyDescriptors == null) + { + super.getPropertyDescriptors(object); + + addFilePatternPropertyDescriptor(object); + addContentPatternPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the File Pattern feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addFilePatternPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_FilePredicate_filePattern_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_FilePredicate_filePattern_feature", + "_UI_FilePredicate_type"), PredicatesPackage.Literals.FILE_PREDICATE__FILE_PATTERN, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Content Pattern feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addContentPatternPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_FilePredicate_contentPattern_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_FilePredicate_contentPattern_feature", + "_UI_FilePredicate_type"), PredicatesPackage.Literals.FILE_PREDICATE__CONTENT_PATTERN, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns FilePredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/FilePredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + FilePredicate filePredicate = (FilePredicate)object; + String label = filePredicate.getFilePattern(); + label = label == null ? "" : label; + String contentPattern = filePredicate.getContentPattern(); + if (contentPattern != null) + { + label += " -> " + contentPattern; + } + return 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(FilePredicate.class)) + { + case PredicatesPackage.FILE_PREDICATE__FILE_PATTERN: + case PredicatesPackage.FILE_PREDICATE__CONTENT_PATTERN: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets.edit/src/org/eclipse/emf/cdo/releng/workingsets/provider/NamePredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NamePredicateItemProvider.java index 1992103019..9052c5552f 100644 --- a/plugins/org.eclipse.emf.cdo.releng.workingsets.edit/src/org/eclipse/emf/cdo/releng/workingsets/provider/NamePredicateItemProvider.java +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NamePredicateItemProvider.java @@ -1,22 +1,15 @@ -/* - * Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. - * 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: - * Eike Stepper - initial API and implementation +/** */ -package org.eclipse.emf.cdo.releng.workingsets.provider; +package org.eclipse.emf.cdo.releng.predicates.provider; -import org.eclipse.emf.cdo.releng.workingsets.NamePredicate; -import org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage; +import org.eclipse.emf.cdo.releng.predicates.NamePredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; 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.IChildCreationExtender; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; @@ -31,7 +24,7 @@ import java.util.Collection; import java.util.List; /** - * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.workingsets.NamePredicate} object. + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.NamePredicate} object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated @@ -76,12 +69,19 @@ public class NamePredicateItemProvider extends ItemProviderAdapter implements IE */ protected void addPatternPropertyDescriptor(Object object) { - itemPropertyDescriptors.add(createItemPropertyDescriptor( - ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_NamePredicate_pattern_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_NamePredicate_pattern_feature", "_UI_NamePredicate_type"), - WorkingSetsPackage.Literals.NAME_PREDICATE__PATTERN, true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_NamePredicate_pattern_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_NamePredicate_pattern_feature", "_UI_NamePredicate_type"), + PredicatesPackage.Literals.NAME_PREDICATE__PATTERN, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); } /** @@ -134,9 +134,9 @@ public class NamePredicateItemProvider extends ItemProviderAdapter implements IE switch (notification.getFeatureID(NamePredicate.class)) { - case WorkingSetsPackage.NAME_PREDICATE__PATTERN: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; + case PredicatesPackage.NAME_PREDICATE__PATTERN: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; } super.notifyChanged(notification); } @@ -163,7 +163,7 @@ public class NamePredicateItemProvider extends ItemProviderAdapter implements IE @Override public ResourceLocator getResourceLocator() { - return WorkingSetsEditPlugin.INSTANCE; + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); } } diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NaturePredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NaturePredicateItemProvider.java new file mode 100644 index 0000000000..2b1990e702 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NaturePredicateItemProvider.java @@ -0,0 +1,180 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.NaturePredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.IChildCreationExtender; +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.eclipse.core.resources.IProjectNatureDescriptor; +import org.eclipse.core.resources.IWorkspace; +import org.eclipse.core.resources.ResourcesPlugin; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class NaturePredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + private static final IWorkspace WORKSPACE = ResourcesPlugin.getWorkspace(); + + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NaturePredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) + { + if (itemPropertyDescriptors == null) + { + super.getPropertyDescriptors(object); + + addNaturePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Nature feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + protected void addNaturePropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_NaturePredicate_nature_feature"), getString( + "_UI_PropertyDescriptor_description", "_UI_NaturePredicate_nature_feature", "_UI_NaturePredicate_type"), + PredicatesPackage.Literals.NATURE_PREDICATE__NATURE, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null) + { + @Override + public Collection<?> getChoiceOfValues(Object object) + { + List<String> result = new ArrayList<String>(); + for (IProjectNatureDescriptor descriptor : WORKSPACE.getNatureDescriptors()) + { + result.add(descriptor.getNatureId()); + } + return result; + } + }); + } + + /** + * This returns NaturePredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/NaturePredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + String label = ((NaturePredicate)object).getNature(); + return label == null ? "" : 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(NaturePredicate.class)) + { + case PredicatesPackage.NATURE_PREDICATE__NATURE: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NotPredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NotPredicateItemProvider.java new file mode 100644 index 0000000000..246761d577 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/NotPredicateItemProvider.java @@ -0,0 +1,201 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.NotPredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesFactory; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.IChildCreationExtender; +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 java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.NotPredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class NotPredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotPredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) + { + if (childrenFeatures == null) + { + super.getChildrenFeatures(object); + childrenFeatures.add(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND); + } + return childrenFeatures; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 NotPredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/NotPredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + return "Not"; + } + + /** + * 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(NotPredicate.class)) + { + case PredicatesPackage.NOT_PREDICATE__OPERAND: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createNamePredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createRepositoryPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createAndPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createOrPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createNotPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createNaturePredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createBuilderPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.NOT_PREDICATE__OPERAND, + PredicatesFactory.eINSTANCE.createFilePredicate())); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/OrPredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/OrPredicateItemProvider.java new file mode 100644 index 0000000000..4fe4f2710a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/OrPredicateItemProvider.java @@ -0,0 +1,201 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.OrPredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesFactory; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.IChildCreationExtender; +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 java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.OrPredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class OrPredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrPredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) + { + if (childrenFeatures == null) + { + super.getChildrenFeatures(object); + childrenFeatures.add(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS); + } + return childrenFeatures; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 OrPredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/OrPredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + return "Or"; + } + + /** + * 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(OrPredicate.class)) + { + case PredicatesPackage.OR_PREDICATE__OPERANDS: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createNamePredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createRepositoryPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createAndPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createOrPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createNotPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createNaturePredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createBuilderPredicate())); + + newChildDescriptors.add(createChildParameter(PredicatesPackage.Literals.OR_PREDICATE__OPERANDS, + PredicatesFactory.eINSTANCE.createFilePredicate())); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/PredicatesEditPlugin.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/PredicatesEditPlugin.java new file mode 100644 index 0000000000..e4e95e2a5d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/PredicatesEditPlugin.java @@ -0,0 +1,96 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the Predicates edit plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public final class PredicatesEditPlugin extends EMFPlugin +{ + /** + * Keep track of the singleton. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final PredicatesEditPlugin INSTANCE = new PredicatesEditPlugin(); + + /** + * Keep track of the singleton. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesEditPlugin() + { + super + (new ResourceLocator [] + { + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() + { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() + { + return plugin; + } + + /** + * The actual implementation of the Eclipse <b>Plugin</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static class Implementation extends EclipsePlugin + { + /** + * Creates an instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Implementation() + { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/PredicatesItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/PredicatesItemProviderAdapterFactory.java new file mode 100644 index 0000000000..215f8d579d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/PredicatesItemProviderAdapterFactory.java @@ -0,0 +1,444 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +import org.eclipse.emf.cdo.releng.predicates.util.PredicatesAdapterFactory; + +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.common.util.ResourceLocator; + +import org.eclipse.emf.edit.domain.EditingDomain; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ChildCreationExtenderManager; +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.IChildCreationExtender; +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; + +/** + * 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class PredicatesItemProviderAdapterFactory extends PredicatesAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender +{ + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This helps manage the child creation extenders. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager(PredicatesEditPlugin.INSTANCE, PredicatesPackage.eNS_URI); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Collection<Object> supportedTypes = new ArrayList<Object>(); + + /** + * This constructs an instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesItemProviderAdapterFactory() + { + 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.eclipse.emf.cdo.releng.predicates.NamePredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NamePredicateItemProvider namePredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.NamePredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createNamePredicateAdapter() + { + if (namePredicateItemProvider == null) + { + namePredicateItemProvider = new NamePredicateItemProvider(this); + } + + return namePredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected RepositoryPredicateItemProvider repositoryPredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createRepositoryPredicateAdapter() + { + if (repositoryPredicateItemProvider == null) + { + repositoryPredicateItemProvider = new RepositoryPredicateItemProvider(this); + } + + return repositoryPredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.AndPredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AndPredicateItemProvider andPredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.AndPredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createAndPredicateAdapter() + { + if (andPredicateItemProvider == null) + { + andPredicateItemProvider = new AndPredicateItemProvider(this); + } + + return andPredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.OrPredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OrPredicateItemProvider orPredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.OrPredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createOrPredicateAdapter() + { + if (orPredicateItemProvider == null) + { + orPredicateItemProvider = new OrPredicateItemProvider(this); + } + + return orPredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.NotPredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NotPredicateItemProvider notPredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.NotPredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createNotPredicateAdapter() + { + if (notPredicateItemProvider == null) + { + notPredicateItemProvider = new NotPredicateItemProvider(this); + } + + return notPredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NaturePredicateItemProvider naturePredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createNaturePredicateAdapter() + { + if (naturePredicateItemProvider == null) + { + naturePredicateItemProvider = new NaturePredicateItemProvider(this); + } + + return naturePredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BuilderPredicateItemProvider builderPredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createBuilderPredicateAdapter() + { + if (builderPredicateItemProvider == null) + { + builderPredicateItemProvider = new BuilderPredicateItemProvider(this); + } + + return builderPredicateItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.predicates.FilePredicate} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FilePredicateItemProvider filePredicateItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.predicates.FilePredicate}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createFilePredicateAdapter() + { + if (filePredicateItemProvider == null) + { + filePredicateItemProvider = new FilePredicateItemProvider(this); + } + + return filePredicateItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() + { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) + { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) + { + return super.adapt(notifier, this); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public List<IChildCreationExtender> getChildCreationExtenders() + { + return childCreationExtenderManager.getChildCreationExtenders(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Collection<?> getNewChildDescriptors(Object object, EditingDomain editingDomain) + { + return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ResourceLocator getResourceLocator() + { + return childCreationExtenderManager; + } + + /** + * This adds a listener. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) + { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) + { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void dispose() + { + if (namePredicateItemProvider != null) namePredicateItemProvider.dispose(); + if (repositoryPredicateItemProvider != null) repositoryPredicateItemProvider.dispose(); + if (andPredicateItemProvider != null) andPredicateItemProvider.dispose(); + if (orPredicateItemProvider != null) orPredicateItemProvider.dispose(); + if (notPredicateItemProvider != null) notPredicateItemProvider.dispose(); + if (naturePredicateItemProvider != null) naturePredicateItemProvider.dispose(); + if (builderPredicateItemProvider != null) builderPredicateItemProvider.dispose(); + if (filePredicateItemProvider != null) filePredicateItemProvider.dispose(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/RepositoryPredicateItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/RepositoryPredicateItemProvider.java new file mode 100644 index 0000000000..1558b5f6f2 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates.edit/src/org/eclipse/emf/cdo/releng/predicates/provider/RepositoryPredicateItemProvider.java @@ -0,0 +1,180 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.provider; + +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; +import org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate; + +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.IChildCreationExtender; +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.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IWorkspaceRoot; +import org.eclipse.core.resources.ResourcesPlugin; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class RepositoryPredicateItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + private static final IWorkspaceRoot WORKSPACE_ROOT = ResourcesPlugin.getWorkspace().getRoot(); + + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RepositoryPredicateItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) + { + if (itemPropertyDescriptors == null) + { + super.getPropertyDescriptors(object); + + addProjectPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Project feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + protected void addProjectPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory) + .getRootAdapterFactory(), getResourceLocator(), getString("_UI_RepositoryPredicate_project_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_RepositoryPredicate_project_feature", + "_UI_RepositoryPredicate_type"), PredicatesPackage.Literals.REPOSITORY_PREDICATE__PROJECT, true, false, + false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null) + { + @Override + public Collection<?> getChoiceOfValues(Object object) + { + List<IProject> result = new ArrayList<IProject>(); + for (IProject project : WORKSPACE_ROOT.getProjects()) + { + result.add(project); + } + return result; + } + }); + } + + /** + * This returns RepositoryPredicate.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/RepositoryPredicate")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + IProject project = ((RepositoryPredicate)object).getProject(); + return project == null ? "" : project.getName(); + } + + /** + * 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(RepositoryPredicate.class)) + { + case PredicatesPackage.REPOSITORY_PREDICATE__PROJECT: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return ((IChildCreationExtender)adapterFactory).getResourceLocator(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/.classpath b/plugins/org.eclipse.emf.cdo.releng.predicates/.classpath new file mode 100644 index 0000000000..ff7f2117f3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.classpath @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"> + <accessrules> + <accessrule kind="accessible" pattern="org/eclipse/egit/core/**"/> + </accessrules> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.project b/plugins/org.eclipse.emf.cdo.releng.predicates/.project index f657bfbe45..d9d0447b12 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.project +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.project @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <projectDescription> - <name>org.eclipse.emf.cdo.releng.setup.ide</name> + <name>org.eclipse.emf.cdo.releng.predicates</name> <comment></comment> <projects> </projects> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..172e111380 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding//model/predicates.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.jdt.core.prefs index 48aafaf7ea..48aafaf7ea 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/.settings/org.eclipse.jdt.core.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.jdt.core.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.jdt.ui.prefs index 3fc140fcdc..3fc140fcdc 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.jdt.ui.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.jdt.ui.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.ltk.core.refactoring.prefs index 864e30fe5d..864e30fe5d 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.ltk.core.refactoring.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.ltk.core.refactoring.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.mylyn.tasks.ui.prefs index b050639a54..b050639a54 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.mylyn.tasks.ui.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.mylyn.team.ui.prefs index 2f50f36c0c..2f50f36c0c 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.mylyn.team.ui.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.mylyn.team.ui.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.pde.api.tools.prefs index 0c17d59e45..0c17d59e45 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.pde.api.tools.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.pde.api.tools.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000000..fe01bb701d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/.settings/org.eclipse.pde.prefs @@ -0,0 +1,31 @@ +#Thu Feb 04 09:44:24 CET 2010 +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.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=2 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=1 +compilers.p.missing-version-import-package=1 +compilers.p.missing-version-require-bundle=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +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/plugins/org.eclipse.emf.cdo.releng.predicates/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.releng.predicates/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..97af82bc76 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/META-INF/MANIFEST.MF @@ -0,0 +1,18 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.emf.cdo.releng.predicates;singleton:=true +Bundle-Version: 1.0.200.qualifier +Bundle-ClassPath: . +Bundle-Name: %pluginName +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)", + org.eclipse.emf.ecore;visibility:=reexport;bundle-version="[2.9.0,3.0.0)", + org.eclipse.core.resources;visibility:=reexport;bundle-version="[3.5.0,4.0.0)", + org.eclipse.team.core;bundle-version="[3.7.0,4.0.0)", + org.eclipse.egit.core;bundle-version="[3.0.1,5.0.0)" +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.emf.cdo.releng.predicates, + org.eclipse.emf.cdo.releng.predicates.impl, + org.eclipse.emf.cdo.releng.predicates.util diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.html b/plugins/org.eclipse.emf.cdo.releng.predicates/about.html index d35d5aed64..d35d5aed64 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.html +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/about.html diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.ini b/plugins/org.eclipse.emf.cdo.releng.predicates/about.ini index 32006ae5d6..32006ae5d6 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.ini +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/about.ini diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.mappings b/plugins/org.eclipse.emf.cdo.releng.predicates/about.mappings index bddaab4310..bddaab4310 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.mappings +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/about.mappings diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.properties b/plugins/org.eclipse.emf.cdo.releng.predicates/about.properties index a77a8cabda..9134ef220b 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/about.properties +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/about.properties @@ -1,4 +1,4 @@ -# Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. +# Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others. # 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 @@ -16,8 +16,16 @@ # append it to the end of the file, and change the code to use the new name. # ============================================================================== -featureName = Setup Development Environment Product IDE -featureText = Setup Development Environment Product IDE\n\ +featureName = CDO Release Engineering Dynamic Working Sets +featureText = CDO Release Engineering Dynamic Working Sets\n\ Version: {featureVersion}\n\ Build id: {0}\n\ \n\ +Copyright (c) 2004-2013 Eike Stepper (Berlin, Germany) and others. All rights reserved.\n\ +\n\ +Visit http://www.eclipse.org/cdo + +# ============================================================================== +# %%% END OF TRANSLATED PROPERTIES %%% +# The above properties have been shipped for translation. +# ============================================================================== diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/build.properties b/plugins/org.eclipse.emf.cdo.releng.predicates/build.properties index 87627c2c7a..eb09361899 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/build.properties +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/build.properties @@ -1,4 +1,4 @@ -# Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. +# Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others. # 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 @@ -11,19 +11,18 @@ source.. = src/ output.. = bin/ -bin.includes = plugin.xml,\ - META-INF/,\ +bin.includes = META-INF/,\ .,\ + plugin.xml,\ about.html,\ - copyright.txt,\ - plugin.properties,\ - icons/,\ about.ini,\ about.mappings,\ about.properties,\ - modeling32.png -src.includes = about.html,\ copyright.txt,\ - Setup IDE.launch + modeling32.png,\ + plugin.properties,\ + model/ +src.includes = about.html,\ + copyright.txt generateSourceReferences = true diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/copyright.txt b/plugins/org.eclipse.emf.cdo.releng.predicates/copyright.txt index 1c77978050..1c77978050 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/copyright.txt +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/copyright.txt diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.ecore b/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.ecore new file mode 100644 index 0000000000..a8aad151d9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.ecore @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="predicates" nsURI="http://www.eclipse.org/CDO/releng/predicates/1.0" + nsPrefix="predicates"> + <eClassifiers xsi:type="ecore:EClass" name="Predicate" abstract="true" interface="true"> + <eOperations name="matches" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"> + <eParameters name="project" eType="#//Project"/> + </eOperations> + </eClassifiers> + <eClassifiers xsi:type="ecore:EDataType" name="Project" instanceClassName="org.eclipse.core.resources.IProject"/> + <eClassifiers xsi:type="ecore:EClass" name="NamePredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="pattern" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="RepositoryPredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="project" eType="#//Project"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="AndPredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EReference" name="operands" upperBound="-1" + eType="#//Predicate" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="OrPredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EReference" name="operands" upperBound="-1" + eType="#//Predicate" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="NotPredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EReference" name="operand" eType="#//Predicate" + containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="NaturePredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="nature" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="BuilderPredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="builder" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="FilePredicate" eSuperTypes="#//Predicate"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="filePattern" lowerBound="1" + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="contentPattern" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> +</ecore:EPackage> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.ecorediag b/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.ecorediag new file mode 100644 index 0000000000..4c5f0a16a9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.ecorediag @@ -0,0 +1,286 @@ +<?xml version="1.0" encoding="UTF-8"?> +<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmi:id="_mmJkYAvBEeOoPqB4RyWmHw" type="EcoreTools" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_mmQ5IAvBEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_mmSHQAvBEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_mmSHQQvBEeOoPqB4RyWmHw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_mmSHQgvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_mmSHQwvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mmSHRAvBEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_mmSuUAvBEeOoPqB4RyWmHw" type="5002"> + <children xmi:type="notation:Node" xmi:id="_mmSuVAvBEeOoPqB4RyWmHw" type="2002"> + <element xmi:type="ecore:EOperation" href="predicates.ecore#//Predicate/matches"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_mmSuVQvBEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_mmSuUQvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_mmSuUgvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mmSuUwvBEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mmQ5IQvBEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//Predicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mmQ5IgvBEeOoPqB4RyWmHw" x="495" y="45"/> + </children> + <children xmi:type="notation:Node" xmi:id="_mmTVYAvBEeOoPqB4RyWmHw" type="1004"> + <children xmi:type="notation:Node" xmi:id="_mmT8cAvBEeOoPqB4RyWmHw" type="4008"/> + <children xmi:type="notation:Node" xmi:id="_mmT8cQvBEeOoPqB4RyWmHw" type="4009"/> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mmTVYQvBEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EDataType" href="predicates.ecore#//Project"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mmTVYgvBEeOoPqB4RyWmHw" x="45" y="45"/> + </children> + <children xmi:type="notation:Node" xmi:id="_mmT8cgvBEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_mmUjgAvBEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_mmUjgQvBEeOoPqB4RyWmHw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_mmUjiQvBEeOoPqB4RyWmHw" type="2001"> + <element xmi:type="ecore:EAttribute" href="predicates.ecore#//NamePredicate/pattern"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_mmUjigvBEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_mmUjggvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_mmUjgwvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mmUjhAvBEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_mmUjhQvBEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_mmUjhgvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_mmUjhwvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_mmUjiAvBEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_mmT8cwvBEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//NamePredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_mmT8dAvBEeOoPqB4RyWmHw" x="60" y="225"/> + </children> + <children xmi:type="notation:Node" xmi:id="__o53MAvBEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="__o7FUAvBEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="__o7sYAvBEeOoPqB4RyWmHw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_MyEF0AvCEeOoPqB4RyWmHw" type="2001"> + <element xmi:type="ecore:EAttribute" href="predicates.ecore#//RepositoryPredicate/project"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_MyEF0QvCEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="__o7sYQvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="__o7sYgvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="__o7sYwvBEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="__o8TcAvBEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="__o8TcQvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="__o8TcgvBEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="__o8TcwvBEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="__o53MQvBEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//RepositoryPredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="__o53MgvBEeOoPqB4RyWmHw" x="270" y="225"/> + </children> + <children xmi:type="notation:Node" xmi:id="_aN9qQAvCEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_aN_fcAvCEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_aN_fcQvCEeOoPqB4RyWmHw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_aN_fcgvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_aN_fcwvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_aN_fdAvCEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_aOAGgAvCEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_aOAGgQvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_aOAGggvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_aOAGgwvCEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_aN9qQQvCEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//AndPredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aN9qQgvCEeOoPqB4RyWmHw" x="735" y="390"/> + </children> + <children xmi:type="notation:Node" xmi:id="_b-qy4AvCEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_b-soEAvCEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_b-soEQvCEeOoPqB4RyWmHw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_b-soEgvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_b-soEwvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_b-soFAvCEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_b-tPIAvCEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_b-tPIQvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_b-tPIgvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_b-tPIwvCEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_b-qy4QvCEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//OrPredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_b-qy4gvCEeOoPqB4RyWmHw" x="945" y="390"/> + </children> + <children xmi:type="notation:Node" xmi:id="_eGA54AvCEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_eGCIAAvCEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_eGCvEAvCEeOoPqB4RyWmHw" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_eGCvEQvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_eGCvEgvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_eGCvEwvCEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_eGDWIAvCEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_eGDWIQvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_eGDWIgvCEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_eGDWIwvCEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_eGA54QvCEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//NotPredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eGA54gvCEeOoPqB4RyWmHw" x="1125" y="405"/> + </children> + <children xmi:type="notation:Node" xmi:id="_BkwqcAvDEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_Bkx4kAvDEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_Bkx4kQvDEeOoPqB4RyWmHw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_HMg9IAvDEeOoPqB4RyWmHw" type="2001"> + <element xmi:type="ecore:EAttribute" href="predicates.ecore#//NaturePredicate/nature"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_HMg9IQvDEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Bkx4kgvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Bkx4kwvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Bkx4lAvDEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_BkyfoAvDEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_BkyfoQvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_BkyfogvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_BkyfowvDEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_BkwqcQvDEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//NaturePredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BkwqcgvDEeOoPqB4RyWmHw" x="135" y="510"/> + </children> + <children xmi:type="notation:Node" xmi:id="_L3QN8AvDEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_L3Q1AAvDEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_L3Q1AQvDEeOoPqB4RyWmHw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_NrDG0AvDEeOoPqB4RyWmHw" type="2001"> + <element xmi:type="ecore:EAttribute" href="predicates.ecore#//BuilderPredicate/builder"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_NrDG0QvDEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_L3Q1AgvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_L3Q1AwvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_L3Q1BAvDEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_L3RcEAvDEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_L3RcEQvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_L3RcEgvDEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_L3RcEwvDEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_L3QN8QvDEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//BuilderPredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_L3QN8gvDEeOoPqB4RyWmHw" x="435" y="510"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Wr3uoAvlEeOoPqB4RyWmHw" type="1001"> + <children xmi:type="notation:Node" xmi:id="_Wr5j0AvlEeOoPqB4RyWmHw" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_Wr6K4AvlEeOoPqB4RyWmHw" type="5001"> + <children xmi:type="notation:Node" xmi:id="_aFHiYAvlEeOoPqB4RyWmHw" type="2001"> + <element xmi:type="ecore:EAttribute" href="predicates.ecore#//FilePredicate/filePattern"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_aFHiYQvlEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_ghyD0AvlEeOoPqB4RyWmHw" type="2001"> + <element xmi:type="ecore:EAttribute" href="predicates.ecore#//FilePredicate/contentPattern"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_ghyD0QvlEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Wr6K4QvlEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Wr6K4gvlEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Wr6K4wvlEeOoPqB4RyWmHw"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Wr6K5AvlEeOoPqB4RyWmHw" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Wr6K5QvlEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Wr6K5gvlEeOoPqB4RyWmHw"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Wr6x8AvlEeOoPqB4RyWmHw"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_Wr3uoQvlEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="predicates.ecore#//FilePredicate"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Wr3uogvlEeOoPqB4RyWmHw" x="675" y="525"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_mmJkYQvBEeOoPqB4RyWmHw"/> + <element xmi:type="ecore:EPackage" href="predicates.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_mmVxoAvBEeOoPqB4RyWmHw" type="3003" source="_mmT8cgvBEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_mmVxoQvBEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_mmVxogvBEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_mmVxowvBEeOoPqB4RyWmHw" points="[0, 0, 0, 70]$[0, -70, 0, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_muV3EAvBEeOoPqB4RyWmHw" id="(0.5,0.0)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_muV3EQvBEeOoPqB4RyWmHw" id="(0.49794238683127573,1.0)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_LQ7qQAvCEeOoPqB4RyWmHw" type="3003" source="__o53MAvBEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_LQ7qQQvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_LQ7qQgvCEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_LQ7qQwvCEeOoPqB4RyWmHw" points="[6, -12, -62, 105]$[6, -101, -62, 16]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_LRCX8AvCEeOoPqB4RyWmHw" id="(0.31976744186046513,0.20408163265306123)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_LRCX8QvCEeOoPqB4RyWmHw" id="(0.757201646090535,0.746031746031746)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_n8z_4AvCEeOoPqB4RyWmHw" type="3003" source="_aN9qQAvCEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_n8z_4QvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_n8z_4gvCEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_n8z_4wvCEeOoPqB4RyWmHw" points="[8, -3, 4, 120]$[8, -92, 4, 31]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_n844YAvCEeOoPqB4RyWmHw" id="(0.7154471544715447,0.08163265306122448)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pGe9sAvCEeOoPqB4RyWmHw" type="3003" source="_b-qy4AvCEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pGe9sQvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pGe9sgvCEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pGe9swvCEeOoPqB4RyWmHw" points="[-17, -23, 97, 120]$[7, -136, 121, 7]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_pxSOMAvCEeOoPqB4RyWmHw" type="3003" source="_eGA54AvCEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_pxSOMQvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_pxSOMgvCEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pxSOMwvCEeOoPqB4RyWmHw" points="[-14, -9, 169, 122]$[-181, -159, 2, -28]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pxV4kAvCEeOoPqB4RyWmHw" id="(0.39669421487603307,0.20408163265306123)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pxWfoAvCEeOoPqB4RyWmHw" id="(0.8065843621399177,0.4603174603174603)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_sdUWoAvCEeOoPqB4RyWmHw" type="3002" source="_eGA54AvCEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <children xmi:type="notation:Node" xmi:id="_sdbrYAvCEeOoPqB4RyWmHw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_sdbrYQvCEeOoPqB4RyWmHw" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_sdcScAvCEeOoPqB4RyWmHw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_sdcScQvCEeOoPqB4RyWmHw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_sdUWoQvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_sdUWogvCEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="predicates.ecore#//NotPredicate/operand"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_sdUWowvCEeOoPqB4RyWmHw" points="[0, -21, 204, 141]$[0, -156, 204, 6]$[-193, -156, 11, 6]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_sddgkAvCEeOoPqB4RyWmHw" id="(0.8760330578512396,0.4489795918367347)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_sdeHoAvCEeOoPqB4RyWmHw" id="(0.9547325102880658,0.15873015873015872)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_xy7wcAvCEeOoPqB4RyWmHw" type="3002" source="_b-qy4AvCEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <children xmi:type="notation:Node" xmi:id="_xy8-kAvCEeOoPqB4RyWmHw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_xy8-kQvCEeOoPqB4RyWmHw" x="-10" y="-4"/> + </children> + <children xmi:type="notation:Node" xmi:id="_xy9loAvCEeOoPqB4RyWmHw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_xy9loQvCEeOoPqB4RyWmHw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_xy7wcQvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_xy7wcgvCEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="predicates.ecore#//OrPredicate/operands"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_xy7wcwvCEeOoPqB4RyWmHw" points="[-15, -38, 6, 98]$[-15, -127, 6, 9]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_xzBQAAvCEeOoPqB4RyWmHw" id="(0.27927927927927926,0.8163265306122449)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_xzBQAQvCEeOoPqB4RyWmHw" id="(0.7860082304526749,0.8571428571428571)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_7Mb2cAvCEeOoPqB4RyWmHw" type="3002" source="_aN9qQAvCEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <children xmi:type="notation:Node" xmi:id="_7MdEkAvCEeOoPqB4RyWmHw" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_7MdEkQvCEeOoPqB4RyWmHw" x="-10" y="6"/> + </children> + <children xmi:type="notation:Node" xmi:id="_7MdroAvCEeOoPqB4RyWmHw" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_7MdroQvCEeOoPqB4RyWmHw" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_7Mb2cQvCEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_7Mb2cgvCEeOoPqB4RyWmHw" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="predicates.ecore#//AndPredicate/operands"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7McdgAvCEeOoPqB4RyWmHw" points="[-10, -8, 1, 99]$[-10, -97, 1, 10]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7MjLMAvCEeOoPqB4RyWmHw" id="(0.21138211382113822,0.1836734693877551)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7MjLMQvCEeOoPqB4RyWmHw" id="(0.18518518518518517,0.8412698412698413)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_KbL4kAvDEeOoPqB4RyWmHw" type="3003" source="_BkwqcAvDEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_KbL4kQvDEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_KbL4kgvDEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_KbL4kwvDEeOoPqB4RyWmHw" points="[16, -11, -320, 226]$[337, -220, 1, 17]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_KbQKAAvDEeOoPqB4RyWmHw" id="(0.3466666666666667,0.19047619047619047)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_KbQKAQvDEeOoPqB4RyWmHw" id="(0.17695473251028807,0.7301587301587301)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_Q6NxgAvDEeOoPqB4RyWmHw" type="3003" source="_L3QN8AvDEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_Q6NxgQvDEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_Q6NxggvDEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q6NxgwvDEeOoPqB4RyWmHw" points="[2, -12, -31, 219]$[34, -221, 1, 10]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q6SC8AvDEeOoPqB4RyWmHw" id="(0.5555555555555556,0.20634920634920634)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q6SC8QvDEeOoPqB4RyWmHw" id="(0.1111111111111111,0.8412698412698413)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_YkCxMAvlEeOoPqB4RyWmHw" type="3003" source="_Wr3uoAvlEeOoPqB4RyWmHw" target="_mmQ5IAvBEeOoPqB4RyWmHw"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_YkCxMQvlEeOoPqB4RyWmHw" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_YkCxMgvlEeOoPqB4RyWmHw" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_YkCxMwvlEeOoPqB4RyWmHw" points="[-6, -28, 77, 450]$[-203, -477, -120, 1]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_YkF0gAvlEeOoPqB4RyWmHw" id="(0.20512820512820512,0.6122448979591837)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.genmodel b/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.genmodel new file mode 100644 index 0000000000..61785f83a7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/model/predicates.genmodel @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.cdo.releng.predicates/src" creationIcons="false" + modelPluginID="org.eclipse.emf.cdo.releng.predicates" modelName="Predicates" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" + importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false" + operationReflection="true" importOrganizing="true" decoration="Live"> + <foreignModel>predicates.ecore</foreignModel> + <genPackages prefix="Predicates" basePackage="org.eclipse.emf.cdo.releng" disposableProviderFactory="true" + extensibleProviderFactory="true" ecorePackage="predicates.ecore#/"> + <genDataTypes ecoreDataType="predicates.ecore#//Project"/> + <genClasses image="false" ecoreClass="predicates.ecore#//Predicate"> + <genOperations ecoreOperation="predicates.ecore#//Predicate/matches"> + <genParameters ecoreParameter="predicates.ecore#//Predicate/matches/project"/> + </genOperations> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//NamePredicate"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute predicates.ecore#//NamePredicate/pattern"/> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//RepositoryPredicate"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute predicates.ecore#//RepositoryPredicate/project"/> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//AndPredicate"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference predicates.ecore#//AndPredicate/operands"/> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//OrPredicate"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference predicates.ecore#//OrPredicate/operands"/> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//NotPredicate"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference predicates.ecore#//NotPredicate/operand"/> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//NaturePredicate"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute predicates.ecore#//NaturePredicate/nature"/> + </genClasses> + <genClasses ecoreClass="predicates.ecore#//BuilderPredicate"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute predicates.ecore#//BuilderPredicate/builder"/> + </genClasses> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/modeling32.png b/plugins/org.eclipse.emf.cdo.releng.predicates/modeling32.png Binary files differindex 6b08de2ada..6b08de2ada 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/modeling32.png +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/modeling32.png diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ide/plugin.properties b/plugins/org.eclipse.emf.cdo.releng.predicates/plugin.properties index 54d279aee2..63fbb1d409 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ide/plugin.properties +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/plugin.properties @@ -1,4 +1,4 @@ -# Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. +# Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others. # 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 @@ -7,5 +7,5 @@ # Contributors: # Eike Stepper - initial API and implementation -pluginName = CDO Release Engineering Setup IDE +pluginName = CDO Release Engineering Dynamic Working Sets providerName = Eclipse Modeling Project diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/plugin.xml b/plugins/org.eclipse.emf.cdo.releng.predicates/plugin.xml new file mode 100644 index 0000000000..7439d1080b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/plugin.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<!-- + Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others. + 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: + Eike Stepper - initial API and implementation +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated predicates --> + <package + uri="http://www.eclipse.org/CDO/releng/predicates/1.0" + class="org.eclipse.emf.cdo.releng.predicates.PredicatesPackage" + genModel="model/predicates.genmodel"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/AndPredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/AndPredicate.java new file mode 100644 index 0000000000..2498715be5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/AndPredicate.java @@ -0,0 +1,42 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + +import org.eclipse.emf.common.util.EList; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>And Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.AndPredicate#getOperands <em>Operands</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getAndPredicate() + * @model + * @generated + */ +public interface AndPredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>Operands</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.cdo.releng.predicates.Predicate}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Operands</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Operands</em>' containment reference list. + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getAndPredicate_Operands() + * @model containment="true" + * @generated + */ + EList<Predicate> getOperands(); + +} // AndPredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/BuilderPredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/BuilderPredicate.java new file mode 100644 index 0000000000..06b1d7d698 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/BuilderPredicate.java @@ -0,0 +1,50 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Builder Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate#getBuilder <em>Builder</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getBuilderPredicate() + * @model + * @generated + */ +public interface BuilderPredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>Builder</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Builder</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Builder</em>' attribute. + * @see #setBuilder(String) + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getBuilderPredicate_Builder() + * @model required="true" + * @generated + */ + String getBuilder(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate#getBuilder <em>Builder</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Builder</em>' attribute. + * @see #getBuilder() + * @generated + */ + void setBuilder(String value); + +} // BuilderPredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/FilePredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/FilePredicate.java new file mode 100644 index 0000000000..997ad79615 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/FilePredicate.java @@ -0,0 +1,77 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>File Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate#getFilePattern <em>File Pattern</em>}</li> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate#getContentPattern <em>Content Pattern</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getFilePredicate() + * @model + * @generated + */ +public interface FilePredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>File Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>File Pattern</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>File Pattern</em>' attribute. + * @see #setFilePattern(String) + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getFilePredicate_FilePattern() + * @model required="true" + * @generated + */ + String getFilePattern(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate#getFilePattern <em>File Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>File Pattern</em>' attribute. + * @see #getFilePattern() + * @generated + */ + void setFilePattern(String value); + + /** + * Returns the value of the '<em><b>Content Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Content Pattern</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Content Pattern</em>' attribute. + * @see #setContentPattern(String) + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getFilePredicate_ContentPattern() + * @model + * @generated + */ + String getContentPattern(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate#getContentPattern <em>Content Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Content Pattern</em>' attribute. + * @see #getContentPattern() + * @generated + */ + void setContentPattern(String value); + +} // FilePredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/NamePredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NamePredicate.java index daabac1170..8f4803a362 100644 --- a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/NamePredicate.java +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NamePredicate.java @@ -1,14 +1,7 @@ -/* - * Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. - * 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: - * Eike Stepper - initial API and implementation +/** */ -package org.eclipse.emf.cdo.releng.workingsets; +package org.eclipse.emf.cdo.releng.predicates; + /** * <!-- begin-user-doc --> @@ -18,11 +11,11 @@ package org.eclipse.emf.cdo.releng.workingsets; * <p> * The following features are supported: * <ul> - * <li>{@link org.eclipse.emf.cdo.releng.workingsets.NamePredicate#getPattern <em>Pattern</em>}</li> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.NamePredicate#getPattern <em>Pattern</em>}</li> * </ul> * </p> * - * @see org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage#getNamePredicate() + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getNamePredicate() * @model * @generated */ @@ -38,14 +31,14 @@ public interface NamePredicate extends Predicate * <!-- end-user-doc --> * @return the value of the '<em>Pattern</em>' attribute. * @see #setPattern(String) - * @see org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage#getNamePredicate_Pattern() + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getNamePredicate_Pattern() * @model required="true" * @generated */ String getPattern(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.releng.workingsets.NamePredicate#getPattern <em>Pattern</em>}' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.NamePredicate#getPattern <em>Pattern</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Pattern</em>' attribute. diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NaturePredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NaturePredicate.java new file mode 100644 index 0000000000..cc21efc2d6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NaturePredicate.java @@ -0,0 +1,50 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Nature Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate#getNature <em>Nature</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getNaturePredicate() + * @model + * @generated + */ +public interface NaturePredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>Nature</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Nature</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Nature</em>' attribute. + * @see #setNature(String) + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getNaturePredicate_Nature() + * @model required="true" + * @generated + */ + String getNature(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate#getNature <em>Nature</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Nature</em>' attribute. + * @see #getNature() + * @generated + */ + void setNature(String value); + +} // NaturePredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NotPredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NotPredicate.java new file mode 100644 index 0000000000..1888936d80 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/NotPredicate.java @@ -0,0 +1,50 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Not Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.NotPredicate#getOperand <em>Operand</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getNotPredicate() + * @model + * @generated + */ +public interface NotPredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>Operand</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Operand</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Operand</em>' containment reference. + * @see #setOperand(Predicate) + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getNotPredicate_Operand() + * @model containment="true" + * @generated + */ + Predicate getOperand(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.NotPredicate#getOperand <em>Operand</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Operand</em>' containment reference. + * @see #getOperand() + * @generated + */ + void setOperand(Predicate value); + +} // NotPredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/OrPredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/OrPredicate.java new file mode 100644 index 0000000000..14456d3f87 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/OrPredicate.java @@ -0,0 +1,41 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Or Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.OrPredicate#getOperands <em>Operands</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getOrPredicate() + * @model + * @generated + */ +public interface OrPredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>Operands</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.cdo.releng.predicates.Predicate}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Operands</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Operands</em>' containment reference list. + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getOrPredicate_Operands() + * @model containment="true" + * @generated + */ + EList<Predicate> getOperands(); + +} // OrPredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/Predicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/Predicate.java new file mode 100644 index 0000000000..e5d45cddcc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/Predicate.java @@ -0,0 +1,29 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + +import org.eclipse.core.resources.IProject; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Predicate</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getPredicate() + * @model interface="true" abstract="true" + * @generated + */ +public interface Predicate extends EObject +{ + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model projectDataType="org.eclipse.emf.cdo.releng.predicates.Project" + * @generated + */ + boolean matches(IProject project); + +} // Predicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/PredicatesFactory.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/PredicatesFactory.java new file mode 100644 index 0000000000..475fa0faf3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/PredicatesFactory.java @@ -0,0 +1,106 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage + * @generated + */ +public interface PredicatesFactory extends EFactory +{ + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + PredicatesFactory eINSTANCE = org.eclipse.emf.cdo.releng.predicates.impl.PredicatesFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Name Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Name Predicate</em>'. + * @generated + */ + NamePredicate createNamePredicate(); + + /** + * Returns a new object of class '<em>Repository Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Repository Predicate</em>'. + * @generated + */ + RepositoryPredicate createRepositoryPredicate(); + + /** + * Returns a new object of class '<em>And Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>And Predicate</em>'. + * @generated + */ + AndPredicate createAndPredicate(); + + /** + * Returns a new object of class '<em>Or Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Or Predicate</em>'. + * @generated + */ + OrPredicate createOrPredicate(); + + /** + * Returns a new object of class '<em>Not Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Not Predicate</em>'. + * @generated + */ + NotPredicate createNotPredicate(); + + /** + * Returns a new object of class '<em>Nature Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Nature Predicate</em>'. + * @generated + */ + NaturePredicate createNaturePredicate(); + + /** + * Returns a new object of class '<em>Builder Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Builder Predicate</em>'. + * @generated + */ + BuilderPredicate createBuilderPredicate(); + + /** + * Returns a new object of class '<em>File Predicate</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>File Predicate</em>'. + * @generated + */ + FilePredicate createFilePredicate(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + PredicatesPackage getPredicatesPackage(); + +} //PredicatesFactory diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/PredicatesPackage.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/PredicatesPackage.java new file mode 100644 index 0000000000..3ca78cee5f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/PredicatesPackage.java @@ -0,0 +1,903 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesFactory + * @model kind="package" + * @generated + */ +public interface PredicatesPackage extends EPackage +{ + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "predicates"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://www.eclipse.org/CDO/releng/predicates/1.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "predicates"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + PredicatesPackage eINSTANCE = org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.Predicate <em>Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.Predicate + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getPredicate() + * @generated + */ + int PREDICATE = 0; + + /** + * The number of structural features of the '<em>Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PREDICATE_FEATURE_COUNT = 0; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PREDICATE___MATCHES__IPROJECT = 0; + + /** + * The number of operations of the '<em>Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PREDICATE_OPERATION_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.NamePredicateImpl <em>Name Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.NamePredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getNamePredicate() + * @generated + */ + int NAME_PREDICATE = 1; + + /** + * The feature id for the '<em><b>Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAME_PREDICATE__PATTERN = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Name Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAME_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAME_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>Name Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAME_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.RepositoryPredicateImpl <em>Repository Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.RepositoryPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getRepositoryPredicate() + * @generated + */ + int REPOSITORY_PREDICATE = 2; + + /** + * The feature id for the '<em><b>Project</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int REPOSITORY_PREDICATE__PROJECT = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Repository Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int REPOSITORY_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int REPOSITORY_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>Repository Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int REPOSITORY_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.AndPredicateImpl <em>And Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.AndPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getAndPredicate() + * @generated + */ + int AND_PREDICATE = 3; + + /** + * The feature id for the '<em><b>Operands</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int AND_PREDICATE__OPERANDS = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>And Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int AND_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int AND_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>And Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int AND_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.OrPredicateImpl <em>Or Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.OrPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getOrPredicate() + * @generated + */ + int OR_PREDICATE = 4; + + /** + * The feature id for the '<em><b>Operands</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int OR_PREDICATE__OPERANDS = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Or Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int OR_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int OR_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>Or Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int OR_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.NotPredicateImpl <em>Not Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.NotPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getNotPredicate() + * @generated + */ + int NOT_PREDICATE = 5; + + /** + * The feature id for the '<em><b>Operand</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NOT_PREDICATE__OPERAND = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Not Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NOT_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NOT_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>Not Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NOT_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.NaturePredicateImpl <em>Nature Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.NaturePredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getNaturePredicate() + * @generated + */ + int NATURE_PREDICATE = 6; + + /** + * The feature id for the '<em><b>Nature</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NATURE_PREDICATE__NATURE = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Nature Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NATURE_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NATURE_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>Nature Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NATURE_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.BuilderPredicateImpl <em>Builder Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.BuilderPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getBuilderPredicate() + * @generated + */ + int BUILDER_PREDICATE = 7; + + /** + * The feature id for the '<em><b>Builder</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BUILDER_PREDICATE__BUILDER = PREDICATE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Builder Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BUILDER_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 1; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BUILDER_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>Builder Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BUILDER_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.FilePredicateImpl <em>File Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.FilePredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getFilePredicate() + * @generated + */ + int FILE_PREDICATE = 8; + + /** + * The feature id for the '<em><b>File Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_PREDICATE__FILE_PATTERN = PREDICATE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Content Pattern</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_PREDICATE__CONTENT_PATTERN = PREDICATE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>File Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_PREDICATE_FEATURE_COUNT = PREDICATE_FEATURE_COUNT + 2; + + /** + * The operation id for the '<em>Matches</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_PREDICATE___MATCHES__IPROJECT = PREDICATE___MATCHES__IPROJECT; + + /** + * The number of operations of the '<em>File Predicate</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FILE_PREDICATE_OPERATION_COUNT = PREDICATE_OPERATION_COUNT + 0; + + /** + * The meta object id for the '<em>Project</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.core.resources.IProject + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getProject() + * @generated + */ + int PROJECT = 9; + + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.Predicate <em>Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.Predicate + * @generated + */ + EClass getPredicate(); + + /** + * Returns the meta object for the '{@link org.eclipse.emf.cdo.releng.predicates.Predicate#matches(org.eclipse.core.resources.IProject) <em>Matches</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Matches</em>' operation. + * @see org.eclipse.emf.cdo.releng.predicates.Predicate#matches(org.eclipse.core.resources.IProject) + * @generated + */ + EOperation getPredicate__Matches__IProject(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.NamePredicate <em>Name Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Name Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.NamePredicate + * @generated + */ + EClass getNamePredicate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.releng.predicates.NamePredicate#getPattern <em>Pattern</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pattern</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.NamePredicate#getPattern() + * @see #getNamePredicate() + * @generated + */ + EAttribute getNamePredicate_Pattern(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate <em>Repository Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Repository Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate + * @generated + */ + EClass getRepositoryPredicate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate#getProject <em>Project</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Project</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate#getProject() + * @see #getRepositoryPredicate() + * @generated + */ + EAttribute getRepositoryPredicate_Project(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.AndPredicate <em>And Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>And Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.AndPredicate + * @generated + */ + EClass getAndPredicate(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.releng.predicates.AndPredicate#getOperands <em>Operands</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Operands</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.AndPredicate#getOperands() + * @see #getAndPredicate() + * @generated + */ + EReference getAndPredicate_Operands(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.OrPredicate <em>Or Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Or Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.OrPredicate + * @generated + */ + EClass getOrPredicate(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.releng.predicates.OrPredicate#getOperands <em>Operands</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Operands</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.OrPredicate#getOperands() + * @see #getOrPredicate() + * @generated + */ + EReference getOrPredicate_Operands(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.NotPredicate <em>Not Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Not Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.NotPredicate + * @generated + */ + EClass getNotPredicate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.cdo.releng.predicates.NotPredicate#getOperand <em>Operand</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Operand</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.NotPredicate#getOperand() + * @see #getNotPredicate() + * @generated + */ + EReference getNotPredicate_Operand(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate <em>Nature Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Nature Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.NaturePredicate + * @generated + */ + EClass getNaturePredicate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate#getNature <em>Nature</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Nature</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.NaturePredicate#getNature() + * @see #getNaturePredicate() + * @generated + */ + EAttribute getNaturePredicate_Nature(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate <em>Builder Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Builder Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.BuilderPredicate + * @generated + */ + EClass getBuilderPredicate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate#getBuilder <em>Builder</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Builder</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.BuilderPredicate#getBuilder() + * @see #getBuilderPredicate() + * @generated + */ + EAttribute getBuilderPredicate_Builder(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate <em>File Predicate</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>File Predicate</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.FilePredicate + * @generated + */ + EClass getFilePredicate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate#getFilePattern <em>File Pattern</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>File Pattern</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.FilePredicate#getFilePattern() + * @see #getFilePredicate() + * @generated + */ + EAttribute getFilePredicate_FilePattern(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate#getContentPattern <em>Content Pattern</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Content Pattern</em>'. + * @see org.eclipse.emf.cdo.releng.predicates.FilePredicate#getContentPattern() + * @see #getFilePredicate() + * @generated + */ + EAttribute getFilePredicate_ContentPattern(); + + /** + * Returns the meta object for data type '{@link org.eclipse.core.resources.IProject <em>Project</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Project</em>'. + * @see org.eclipse.core.resources.IProject + * @model instanceClass="org.eclipse.core.resources.IProject" + * @generated + */ + EDataType getProject(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + PredicatesFactory getPredicatesFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals + { + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.Predicate <em>Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.Predicate + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getPredicate() + * @generated + */ + EClass PREDICATE = eINSTANCE.getPredicate(); + + /** + * The meta object literal for the '<em><b>Matches</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation PREDICATE___MATCHES__IPROJECT = eINSTANCE.getPredicate__Matches__IProject(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.NamePredicateImpl <em>Name Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.NamePredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getNamePredicate() + * @generated + */ + EClass NAME_PREDICATE = eINSTANCE.getNamePredicate(); + + /** + * The meta object literal for the '<em><b>Pattern</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAME_PREDICATE__PATTERN = eINSTANCE.getNamePredicate_Pattern(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.RepositoryPredicateImpl <em>Repository Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.RepositoryPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getRepositoryPredicate() + * @generated + */ + EClass REPOSITORY_PREDICATE = eINSTANCE.getRepositoryPredicate(); + + /** + * The meta object literal for the '<em><b>Project</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute REPOSITORY_PREDICATE__PROJECT = eINSTANCE.getRepositoryPredicate_Project(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.AndPredicateImpl <em>And Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.AndPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getAndPredicate() + * @generated + */ + EClass AND_PREDICATE = eINSTANCE.getAndPredicate(); + + /** + * The meta object literal for the '<em><b>Operands</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference AND_PREDICATE__OPERANDS = eINSTANCE.getAndPredicate_Operands(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.OrPredicateImpl <em>Or Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.OrPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getOrPredicate() + * @generated + */ + EClass OR_PREDICATE = eINSTANCE.getOrPredicate(); + + /** + * The meta object literal for the '<em><b>Operands</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference OR_PREDICATE__OPERANDS = eINSTANCE.getOrPredicate_Operands(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.NotPredicateImpl <em>Not Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.NotPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getNotPredicate() + * @generated + */ + EClass NOT_PREDICATE = eINSTANCE.getNotPredicate(); + + /** + * The meta object literal for the '<em><b>Operand</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference NOT_PREDICATE__OPERAND = eINSTANCE.getNotPredicate_Operand(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.NaturePredicateImpl <em>Nature Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.NaturePredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getNaturePredicate() + * @generated + */ + EClass NATURE_PREDICATE = eINSTANCE.getNaturePredicate(); + + /** + * The meta object literal for the '<em><b>Nature</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NATURE_PREDICATE__NATURE = eINSTANCE.getNaturePredicate_Nature(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.BuilderPredicateImpl <em>Builder Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.BuilderPredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getBuilderPredicate() + * @generated + */ + EClass BUILDER_PREDICATE = eINSTANCE.getBuilderPredicate(); + + /** + * The meta object literal for the '<em><b>Builder</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BUILDER_PREDICATE__BUILDER = eINSTANCE.getBuilderPredicate_Builder(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.releng.predicates.impl.FilePredicateImpl <em>File Predicate</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.impl.FilePredicateImpl + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getFilePredicate() + * @generated + */ + EClass FILE_PREDICATE = eINSTANCE.getFilePredicate(); + + /** + * The meta object literal for the '<em><b>File Pattern</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FILE_PREDICATE__FILE_PATTERN = eINSTANCE.getFilePredicate_FilePattern(); + + /** + * The meta object literal for the '<em><b>Content Pattern</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FILE_PREDICATE__CONTENT_PATTERN = eINSTANCE.getFilePredicate_ContentPattern(); + + /** + * The meta object literal for the '<em>Project</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.core.resources.IProject + * @see org.eclipse.emf.cdo.releng.predicates.impl.PredicatesPackageImpl#getProject() + * @generated + */ + EDataType PROJECT = eINSTANCE.getProject(); + + } + +} //PredicatesPackage diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/RepositoryPredicate.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/RepositoryPredicate.java new file mode 100644 index 0000000000..f345e173de --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/RepositoryPredicate.java @@ -0,0 +1,51 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates; + +import org.eclipse.core.resources.IProject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Repository Predicate</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate#getProject <em>Project</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getRepositoryPredicate() + * @model + * @generated + */ +public interface RepositoryPredicate extends Predicate +{ + /** + * Returns the value of the '<em><b>Project</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Project</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Project</em>' attribute. + * @see #setProject(IProject) + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#getRepositoryPredicate_Project() + * @model dataType="org.eclipse.emf.cdo.releng.predicates.Project" + * @generated + */ + IProject getProject(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate#getProject <em>Project</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Project</em>' attribute. + * @see #getProject() + * @generated + */ + void setProject(IProject value); + +} // RepositoryPredicate diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/AndPredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/AndPredicateImpl.java new file mode 100644 index 0000000000..9afc3075e7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/AndPredicateImpl.java @@ -0,0 +1,199 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.AndPredicate; +import org.eclipse.emf.cdo.releng.predicates.Predicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.core.resources.IProject; + +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>And Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.AndPredicateImpl#getOperands <em>Operands</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AndPredicateImpl extends MinimalEObjectImpl.Container implements AndPredicate +{ + /** + * The cached value of the '{@link #getOperands() <em>Operands</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOperands() + * @generated + * @ordered + */ + protected EList<Predicate> operands; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AndPredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.AND_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Predicate> getOperands() + { + if (operands == null) + { + operands = new EObjectContainmentEList<Predicate>(Predicate.class, this, PredicatesPackage.AND_PREDICATE__OPERANDS); + } + return operands; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + for (Predicate operand : getOperands()) + { + if (!operand.matches(project)) + { + return false; + } + } + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case PredicatesPackage.AND_PREDICATE__OPERANDS: + return ((InternalEList<?>)getOperands()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.AND_PREDICATE__OPERANDS: + return getOperands(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.AND_PREDICATE__OPERANDS: + getOperands().clear(); + getOperands().addAll((Collection<? extends Predicate>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.AND_PREDICATE__OPERANDS: + getOperands().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.AND_PREDICATE__OPERANDS: + return operands != null && !operands.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.AND_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + +} // AndPredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/BuilderPredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/BuilderPredicateImpl.java new file mode 100644 index 0000000000..a39130189b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/BuilderPredicateImpl.java @@ -0,0 +1,227 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.BuilderPredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.core.resources.ICommand; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; + +import java.lang.reflect.InvocationTargetException; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Builder Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.BuilderPredicateImpl#getBuilder <em>Builder</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class BuilderPredicateImpl extends MinimalEObjectImpl.Container implements BuilderPredicate +{ + /** + * The default value of the '{@link #getBuilder() <em>Builder</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBuilder() + * @generated + * @ordered + */ + protected static final String BUILDER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBuilder() <em>Builder</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBuilder() + * @generated + * @ordered + */ + protected String builder = BUILDER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BuilderPredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.BUILDER_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBuilder() + { + return builder; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBuilder(String newBuilder) + { + String oldBuilder = builder; + builder = newBuilder; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.BUILDER_PREDICATE__BUILDER, oldBuilder, builder)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + String builder = getBuilder(); + if (builder != null) + { + try + { + for (ICommand command : project.getDescription().getBuildSpec()) + { + String name = command.getBuilderName(); + if (builder.equals(name)) + { + return true; + } + } + } + catch (CoreException ex) + { + // Ignore + } + } + return false; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.BUILDER_PREDICATE__BUILDER: + return getBuilder(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.BUILDER_PREDICATE__BUILDER: + setBuilder((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.BUILDER_PREDICATE__BUILDER: + setBuilder(BUILDER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.BUILDER_PREDICATE__BUILDER: + return BUILDER_EDEFAULT == null ? builder != null : !BUILDER_EDEFAULT.equals(builder); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.BUILDER_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (builder: "); + result.append(builder); + result.append(')'); + return result.toString(); + } + +} // BuilderPredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/FilePredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/FilePredicateImpl.java new file mode 100644 index 0000000000..4fce36e583 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/FilePredicateImpl.java @@ -0,0 +1,392 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.FilePredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.IResourceVisitor; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.Status; + +import java.io.BufferedInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.lang.reflect.InvocationTargetException; +import java.util.regex.Pattern; +import java.util.regex.PatternSyntaxException; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>File Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.FilePredicateImpl#getFilePattern <em>File Pattern</em>}</li> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.FilePredicateImpl#getContentPattern <em>Content Pattern</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FilePredicateImpl extends MinimalEObjectImpl.Container implements FilePredicate +{ + /** + * The default value of the '{@link #getFilePattern() <em>File Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFilePattern() + * @generated + * @ordered + */ + protected static final String FILE_PATTERN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFilePattern() <em>File Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFilePattern() + * @generated + * @ordered + */ + protected String filePattern = FILE_PATTERN_EDEFAULT; + + /** + * The default value of the '{@link #getContentPattern() <em>Content Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContentPattern() + * @generated + * @ordered + */ + protected static final String CONTENT_PATTERN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContentPattern() <em>Content Pattern</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContentPattern() + * @generated + * @ordered + */ + protected String contentPattern = CONTENT_PATTERN_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FilePredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.FILE_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFilePattern() + { + return filePattern; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFilePattern(String newFilePattern) + { + String oldFilePattern = filePattern; + filePattern = newFilePattern; + if (eNotificationRequired()) + { + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.FILE_PREDICATE__FILE_PATTERN, + oldFilePattern, filePattern)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getContentPattern() + { + return contentPattern; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setContentPattern(String newContentPattern) + { + String oldContentPattern = contentPattern; + contentPattern = newContentPattern; + if (eNotificationRequired()) + { + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.FILE_PREDICATE__CONTENT_PATTERN, + oldContentPattern, contentPattern)); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + String filePattern = getFilePattern(); + if (filePattern != null) + { + StringBuilder pattern = new StringBuilder(); + for (int i = 0, length = filePattern.length(); i < length; ++i) + { + char character = filePattern.charAt(i); + if (!Character.isJavaIdentifierPart(character)) + { + if (character == '*') + { + if (i + 1 < length && filePattern.charAt(i + 1) == '*') + { + ++i; + pattern.append(".*"); + } + else + { + pattern.append("[^/]*"); + } + } + else if (character == '?') + { + pattern.append("[^/]"); + } + else + { + pattern.append('\\'); + pattern.append(character); + } + } + else + { + pattern.append(character); + } + } + + try + { + final Pattern regex = Pattern.compile(pattern.toString()); + final CoreException matched = new CoreException(Status.OK_STATUS); + final Pattern contentPattern = getContentPattern() == null ? null : Pattern.compile(getContentPattern()); + try + { + project.accept(new IResourceVisitor() + { + public boolean visit(IResource resource) throws CoreException + { + String path = resource.getProjectRelativePath().toString(); + if (regex.matcher(path).matches()) + { + if (contentPattern == null) + { + throw matched; + } + + if (resource.getType() == IResource.FILE) + { + IFile file = (IFile)resource; + String charset = file.getCharset(); + InputStream inputStream = null; + try + { + inputStream = file.getContents(); + BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream); + byte[] input = new byte[bufferedInputStream.available()]; + bufferedInputStream.read(input); + String contents = charset == null ? new String(input) : new String(input, charset); + if (contentPattern.matcher(contents).find()) + { + throw matched; + } + } + catch (IOException ex) + { + // Ignore. + } + finally + { + if (inputStream != null) + { + try + { + inputStream.close(); + } + catch (IOException ex) + { + // Ignore. + } + } + } + } + } + return true; + } + }); + } + catch (CoreException ex) + { + if (ex == matched) + { + return true; + } + } + } + catch (PatternSyntaxException exception) + { + // Ignore + } + } + return false; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.FILE_PREDICATE__FILE_PATTERN: + return getFilePattern(); + case PredicatesPackage.FILE_PREDICATE__CONTENT_PATTERN: + return getContentPattern(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.FILE_PREDICATE__FILE_PATTERN: + setFilePattern((String)newValue); + return; + case PredicatesPackage.FILE_PREDICATE__CONTENT_PATTERN: + setContentPattern((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.FILE_PREDICATE__FILE_PATTERN: + setFilePattern(FILE_PATTERN_EDEFAULT); + return; + case PredicatesPackage.FILE_PREDICATE__CONTENT_PATTERN: + setContentPattern(CONTENT_PATTERN_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.FILE_PREDICATE__FILE_PATTERN: + return FILE_PATTERN_EDEFAULT == null ? filePattern != null : !FILE_PATTERN_EDEFAULT.equals(filePattern); + case PredicatesPackage.FILE_PREDICATE__CONTENT_PATTERN: + return CONTENT_PATTERN_EDEFAULT == null ? contentPattern != null : !CONTENT_PATTERN_EDEFAULT + .equals(contentPattern); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.FILE_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + { + return super.toString(); + } + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (filePattern: "); + result.append(filePattern); + result.append(", contentPattern: "); + result.append(contentPattern); + result.append(')'); + return result.toString(); + } + +} // FilePredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/impl/NamePredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NamePredicateImpl.java index b0fe91c634..9ffaa7f784 100644 --- a/plugins/org.eclipse.emf.cdo.releng.workingsets/src/org/eclipse/emf/cdo/releng/workingsets/impl/NamePredicateImpl.java +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NamePredicateImpl.java @@ -1,17 +1,9 @@ -/* - * Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others. - * 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: - * Eike Stepper - initial API and implementation +/** */ -package org.eclipse.emf.cdo.releng.workingsets.impl; +package org.eclipse.emf.cdo.releng.predicates.impl; -import org.eclipse.emf.cdo.releng.workingsets.NamePredicate; -import org.eclipse.emf.cdo.releng.workingsets.WorkingSetsPackage; +import org.eclipse.emf.cdo.releng.predicates.NamePredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.EList; @@ -30,7 +22,7 @@ import java.lang.reflect.InvocationTargetException; * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.emf.cdo.releng.workingsets.impl.NamePredicateImpl#getPattern <em>Pattern</em>}</li> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.NamePredicateImpl#getPattern <em>Pattern</em>}</li> * </ul> * </p> * @@ -76,7 +68,7 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N @Override protected EClass eStaticClass() { - return WorkingSetsPackage.Literals.NAME_PREDICATE; + return PredicatesPackage.Literals.NAME_PREDICATE; } /** @@ -99,8 +91,7 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N String oldPattern = pattern; pattern = newPattern; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, WorkingSetsPackage.NAME_PREDICATE__PATTERN, oldPattern, - pattern)); + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.NAME_PREDICATE__PATTERN, oldPattern, pattern)); } /** @@ -123,8 +114,8 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N { switch (featureID) { - case WorkingSetsPackage.NAME_PREDICATE__PATTERN: - return getPattern(); + case PredicatesPackage.NAME_PREDICATE__PATTERN: + return getPattern(); } return super.eGet(featureID, resolve, coreType); } @@ -139,9 +130,9 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N { switch (featureID) { - case WorkingSetsPackage.NAME_PREDICATE__PATTERN: - setPattern((String)newValue); - return; + case PredicatesPackage.NAME_PREDICATE__PATTERN: + setPattern((String)newValue); + return; } super.eSet(featureID, newValue); } @@ -156,9 +147,9 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N { switch (featureID) { - case WorkingSetsPackage.NAME_PREDICATE__PATTERN: - setPattern(PATTERN_EDEFAULT); - return; + case PredicatesPackage.NAME_PREDICATE__PATTERN: + setPattern(PATTERN_EDEFAULT); + return; } super.eUnset(featureID); } @@ -173,8 +164,8 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N { switch (featureID) { - case WorkingSetsPackage.NAME_PREDICATE__PATTERN: - return PATTERN_EDEFAULT == null ? pattern != null : !PATTERN_EDEFAULT.equals(pattern); + case PredicatesPackage.NAME_PREDICATE__PATTERN: + return PATTERN_EDEFAULT == null ? pattern != null : !PATTERN_EDEFAULT.equals(pattern); } return super.eIsSet(featureID); } @@ -189,8 +180,8 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N { switch (operationID) { - case WorkingSetsPackage.NAME_PREDICATE___MATCHES__IPROJECT: - return matches((IProject)arguments.get(0)); + case PredicatesPackage.NAME_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); } return super.eInvoke(operationID, arguments); } @@ -203,8 +194,7 @@ public class NamePredicateImpl extends MinimalEObjectImpl.Container implements N @Override public String toString() { - if (eIsProxy()) - return super.toString(); + if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (pattern: "); diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NaturePredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NaturePredicateImpl.java new file mode 100644 index 0000000000..90efa6ca20 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NaturePredicateImpl.java @@ -0,0 +1,222 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.NaturePredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.core.resources.IProject; +import org.eclipse.core.runtime.CoreException; + +import java.lang.reflect.InvocationTargetException; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Nature Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.NaturePredicateImpl#getNature <em>Nature</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NaturePredicateImpl extends MinimalEObjectImpl.Container implements NaturePredicate +{ + /** + * The default value of the '{@link #getNature() <em>Nature</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNature() + * @generated + * @ordered + */ + protected static final String NATURE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNature() <em>Nature</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNature() + * @generated + * @ordered + */ + protected String nature = NATURE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NaturePredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.NATURE_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNature() + { + return nature; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNature(String newNature) + { + String oldNature = nature; + nature = newNature; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.NATURE_PREDICATE__NATURE, oldNature, nature)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + try + { + String[] natureIds = project.getDescription().getNatureIds(); + for (String natureId : natureIds) + { + if (natureId.equals(nature)) + { + return true; + } + } + } + catch (CoreException ex) + { + // Ignore + } + return false; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.NATURE_PREDICATE__NATURE: + return getNature(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.NATURE_PREDICATE__NATURE: + setNature((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.NATURE_PREDICATE__NATURE: + setNature(NATURE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.NATURE_PREDICATE__NATURE: + return NATURE_EDEFAULT == null ? nature != null : !NATURE_EDEFAULT.equals(nature); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.NATURE_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nature: "); + result.append(nature); + result.append(')'); + return result.toString(); + } + +} // NaturePredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NotPredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NotPredicateImpl.java new file mode 100644 index 0000000000..188006e1b5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/NotPredicateImpl.java @@ -0,0 +1,225 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.NotPredicate; +import org.eclipse.emf.cdo.releng.predicates.Predicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.core.resources.IProject; + +import java.lang.reflect.InvocationTargetException; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Not Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.NotPredicateImpl#getOperand <em>Operand</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NotPredicateImpl extends MinimalEObjectImpl.Container implements NotPredicate +{ + /** + * The cached value of the '{@link #getOperand() <em>Operand</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOperand() + * @generated + * @ordered + */ + protected Predicate operand; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NotPredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.NOT_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Predicate getOperand() + { + return operand; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetOperand(Predicate newOperand, NotificationChain msgs) + { + Predicate oldOperand = operand; + operand = newOperand; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PredicatesPackage.NOT_PREDICATE__OPERAND, oldOperand, newOperand); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOperand(Predicate newOperand) + { + if (newOperand != operand) + { + NotificationChain msgs = null; + if (operand != null) + msgs = ((InternalEObject)operand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PredicatesPackage.NOT_PREDICATE__OPERAND, null, msgs); + if (newOperand != null) + msgs = ((InternalEObject)newOperand).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PredicatesPackage.NOT_PREDICATE__OPERAND, null, msgs); + msgs = basicSetOperand(newOperand, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.NOT_PREDICATE__OPERAND, newOperand, newOperand)); + } + + /** + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + Predicate operand = getOperand(); + return operand == null || !operand.matches(project); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case PredicatesPackage.NOT_PREDICATE__OPERAND: + return basicSetOperand(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.NOT_PREDICATE__OPERAND: + return getOperand(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.NOT_PREDICATE__OPERAND: + setOperand((Predicate)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.NOT_PREDICATE__OPERAND: + setOperand((Predicate)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.NOT_PREDICATE__OPERAND: + return operand != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.NOT_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + +} // NotPredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/OrPredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/OrPredicateImpl.java new file mode 100644 index 0000000000..808b6dee95 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/OrPredicateImpl.java @@ -0,0 +1,199 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.OrPredicate; +import org.eclipse.emf.cdo.releng.predicates.Predicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.core.resources.IProject; + +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Or Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.OrPredicateImpl#getOperands <em>Operands</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OrPredicateImpl extends MinimalEObjectImpl.Container implements OrPredicate +{ + /** + * The cached value of the '{@link #getOperands() <em>Operands</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOperands() + * @generated + * @ordered + */ + protected EList<Predicate> operands; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OrPredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.OR_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Predicate> getOperands() + { + if (operands == null) + { + operands = new EObjectContainmentEList<Predicate>(Predicate.class, this, PredicatesPackage.OR_PREDICATE__OPERANDS); + } + return operands; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + for (Predicate operand : getOperands()) + { + if (operand.matches(project)) + { + return true; + } + } + return false; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case PredicatesPackage.OR_PREDICATE__OPERANDS: + return ((InternalEList<?>)getOperands()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.OR_PREDICATE__OPERANDS: + return getOperands(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.OR_PREDICATE__OPERANDS: + getOperands().clear(); + getOperands().addAll((Collection<? extends Predicate>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.OR_PREDICATE__OPERANDS: + getOperands().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.OR_PREDICATE__OPERANDS: + return operands != null && !operands.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.OR_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + +} // OrPredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/PredicatesFactoryImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/PredicatesFactoryImpl.java new file mode 100644 index 0000000000..856beb9893 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/PredicatesFactoryImpl.java @@ -0,0 +1,265 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.AndPredicate; +import org.eclipse.emf.cdo.releng.predicates.BuilderPredicate; +import org.eclipse.emf.cdo.releng.predicates.NamePredicate; +import org.eclipse.emf.cdo.releng.predicates.NaturePredicate; +import org.eclipse.emf.cdo.releng.predicates.NotPredicate; +import org.eclipse.emf.cdo.releng.predicates.OrPredicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesFactory; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; +import org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +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.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IWorkspaceRoot; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.emf.cdo.releng.predicates.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class PredicatesFactoryImpl extends EFactoryImpl implements PredicatesFactory +{ + private static final IWorkspaceRoot WORKSPACE_ROOT = ResourcesPlugin.getWorkspace().getRoot(); + + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static PredicatesFactory init() + { + try + { + PredicatesFactory thePredicatesFactory = (PredicatesFactory)EPackage.Registry.INSTANCE.getEFactory(PredicatesPackage.eNS_URI); + if (thePredicatesFactory != null) + { + return thePredicatesFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new PredicatesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesFactoryImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case PredicatesPackage.NAME_PREDICATE: return createNamePredicate(); + case PredicatesPackage.REPOSITORY_PREDICATE: return createRepositoryPredicate(); + case PredicatesPackage.AND_PREDICATE: return createAndPredicate(); + case PredicatesPackage.OR_PREDICATE: return createOrPredicate(); + case PredicatesPackage.NOT_PREDICATE: return createNotPredicate(); + case PredicatesPackage.NATURE_PREDICATE: return createNaturePredicate(); + case PredicatesPackage.BUILDER_PREDICATE: return createBuilderPredicate(); + case PredicatesPackage.FILE_PREDICATE: return createFilePredicate(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case PredicatesPackage.PROJECT: + return createProjectFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case PredicatesPackage.PROJECT: + return convertProjectToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NamePredicate createNamePredicate() + { + NamePredicateImpl namePredicate = new NamePredicateImpl(); + return namePredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public RepositoryPredicate createRepositoryPredicate() + { + RepositoryPredicateImpl repositoryPredicate = new RepositoryPredicateImpl(); + return repositoryPredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AndPredicate createAndPredicate() + { + AndPredicateImpl andPredicate = new AndPredicateImpl(); + return andPredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrPredicate createOrPredicate() + { + OrPredicateImpl orPredicate = new OrPredicateImpl(); + return orPredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotPredicate createNotPredicate() + { + NotPredicateImpl notPredicate = new NotPredicateImpl(); + return notPredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NaturePredicate createNaturePredicate() + { + NaturePredicateImpl naturePredicate = new NaturePredicateImpl(); + return naturePredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BuilderPredicate createBuilderPredicate() + { + BuilderPredicateImpl builderPredicate = new BuilderPredicateImpl(); + return builderPredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FilePredicate createFilePredicate() + { + FilePredicateImpl filePredicate = new FilePredicateImpl(); + return filePredicate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public IProject createProjectFromString(EDataType eDataType, String initialValue) + { + if (initialValue == null) + { + return null; + } + return WORKSPACE_ROOT.getProject(initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public String convertProjectToString(EDataType eDataType, Object instanceValue) + { + if (instanceValue == null) + { + return null; + } + IProject project = (IProject)instanceValue; + return project.getName(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesPackage getPredicatesPackage() + { + return (PredicatesPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static PredicatesPackage getPackage() + { + return PredicatesPackage.eINSTANCE; + } + +} // PredicatesFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/PredicatesPackageImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/PredicatesPackageImpl.java new file mode 100644 index 0000000000..ed68ffe2fc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/PredicatesPackageImpl.java @@ -0,0 +1,507 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.core.resources.IProject; + +import org.eclipse.emf.cdo.releng.predicates.AndPredicate; +import org.eclipse.emf.cdo.releng.predicates.BuilderPredicate; +import org.eclipse.emf.cdo.releng.predicates.FilePredicate; +import org.eclipse.emf.cdo.releng.predicates.NamePredicate; +import org.eclipse.emf.cdo.releng.predicates.NaturePredicate; +import org.eclipse.emf.cdo.releng.predicates.NotPredicate; +import org.eclipse.emf.cdo.releng.predicates.OrPredicate; +import org.eclipse.emf.cdo.releng.predicates.Predicate; +import org.eclipse.emf.cdo.releng.predicates.PredicatesFactory; +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; +import org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class PredicatesPackageImpl extends EPackageImpl implements PredicatesPackage +{ + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass predicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass namePredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass repositoryPredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass andPredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass orPredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass notPredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass naturePredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass builderPredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass filePredicateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType projectEDataType = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage#eNS_URI + * @see #init() + * @generated + */ + private PredicatesPackageImpl() + { + super(eNS_URI, PredicatesFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link PredicatesPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static PredicatesPackage init() + { + if (isInited) return (PredicatesPackage)EPackage.Registry.INSTANCE.getEPackage(PredicatesPackage.eNS_URI); + + // Obtain or create and register package + PredicatesPackageImpl thePredicatesPackage = (PredicatesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PredicatesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PredicatesPackageImpl()); + + isInited = true; + + // Create package meta-data objects + thePredicatesPackage.createPackageContents(); + + // Initialize created meta-data + thePredicatesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + thePredicatesPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(PredicatesPackage.eNS_URI, thePredicatesPackage); + return thePredicatesPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPredicate() + { + return predicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getPredicate__Matches__IProject() + { + return predicateEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNamePredicate() + { + return namePredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamePredicate_Pattern() + { + return (EAttribute)namePredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRepositoryPredicate() + { + return repositoryPredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRepositoryPredicate_Project() + { + return (EAttribute)repositoryPredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAndPredicate() + { + return andPredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAndPredicate_Operands() + { + return (EReference)andPredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOrPredicate() + { + return orPredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOrPredicate_Operands() + { + return (EReference)orPredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNotPredicate() + { + return notPredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getNotPredicate_Operand() + { + return (EReference)notPredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNaturePredicate() + { + return naturePredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNaturePredicate_Nature() + { + return (EAttribute)naturePredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBuilderPredicate() + { + return builderPredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBuilderPredicate_Builder() + { + return (EAttribute)builderPredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFilePredicate() + { + return filePredicateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFilePredicate_FilePattern() + { + return (EAttribute)filePredicateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFilePredicate_ContentPattern() + { + return (EAttribute)filePredicateEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getProject() + { + return projectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesFactory getPredicatesFactory() + { + return (PredicatesFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() + { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + predicateEClass = createEClass(PREDICATE); + createEOperation(predicateEClass, PREDICATE___MATCHES__IPROJECT); + + namePredicateEClass = createEClass(NAME_PREDICATE); + createEAttribute(namePredicateEClass, NAME_PREDICATE__PATTERN); + + repositoryPredicateEClass = createEClass(REPOSITORY_PREDICATE); + createEAttribute(repositoryPredicateEClass, REPOSITORY_PREDICATE__PROJECT); + + andPredicateEClass = createEClass(AND_PREDICATE); + createEReference(andPredicateEClass, AND_PREDICATE__OPERANDS); + + orPredicateEClass = createEClass(OR_PREDICATE); + createEReference(orPredicateEClass, OR_PREDICATE__OPERANDS); + + notPredicateEClass = createEClass(NOT_PREDICATE); + createEReference(notPredicateEClass, NOT_PREDICATE__OPERAND); + + naturePredicateEClass = createEClass(NATURE_PREDICATE); + createEAttribute(naturePredicateEClass, NATURE_PREDICATE__NATURE); + + builderPredicateEClass = createEClass(BUILDER_PREDICATE); + createEAttribute(builderPredicateEClass, BUILDER_PREDICATE__BUILDER); + + filePredicateEClass = createEClass(FILE_PREDICATE); + createEAttribute(filePredicateEClass, FILE_PREDICATE__FILE_PATTERN); + createEAttribute(filePredicateEClass, FILE_PREDICATE__CONTENT_PATTERN); + + // Create data types + projectEDataType = createEDataType(PROJECT); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 + namePredicateEClass.getESuperTypes().add(this.getPredicate()); + repositoryPredicateEClass.getESuperTypes().add(this.getPredicate()); + andPredicateEClass.getESuperTypes().add(this.getPredicate()); + orPredicateEClass.getESuperTypes().add(this.getPredicate()); + notPredicateEClass.getESuperTypes().add(this.getPredicate()); + naturePredicateEClass.getESuperTypes().add(this.getPredicate()); + builderPredicateEClass.getESuperTypes().add(this.getPredicate()); + filePredicateEClass.getESuperTypes().add(this.getPredicate()); + + // Initialize classes, features, and operations; add parameters + initEClass(predicateEClass, Predicate.class, "Predicate", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getPredicate__Matches__IProject(), ecorePackage.getEBoolean(), "matches", 0, 1, IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getProject(), "project", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(namePredicateEClass, NamePredicate.class, "NamePredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamePredicate_Pattern(), ecorePackage.getEString(), "pattern", null, 1, 1, NamePredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(repositoryPredicateEClass, RepositoryPredicate.class, "RepositoryPredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRepositoryPredicate_Project(), this.getProject(), "project", null, 0, 1, RepositoryPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(andPredicateEClass, AndPredicate.class, "AndPredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAndPredicate_Operands(), this.getPredicate(), null, "operands", null, 0, -1, AndPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(orPredicateEClass, OrPredicate.class, "OrPredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOrPredicate_Operands(), this.getPredicate(), null, "operands", null, 0, -1, OrPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(notPredicateEClass, NotPredicate.class, "NotPredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getNotPredicate_Operand(), this.getPredicate(), null, "operand", null, 0, 1, NotPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(naturePredicateEClass, NaturePredicate.class, "NaturePredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNaturePredicate_Nature(), ecorePackage.getEString(), "nature", null, 1, 1, NaturePredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(builderPredicateEClass, BuilderPredicate.class, "BuilderPredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBuilderPredicate_Builder(), ecorePackage.getEString(), "builder", null, 1, 1, BuilderPredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(filePredicateEClass, FilePredicate.class, "FilePredicate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFilePredicate_FilePattern(), ecorePackage.getEString(), "filePattern", null, 1, 1, FilePredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFilePredicate_ContentPattern(), ecorePackage.getEString(), "contentPattern", null, 0, 1, FilePredicate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize data types + initEDataType(projectEDataType, IProject.class, "Project", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //PredicatesPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/RepositoryPredicateImpl.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/RepositoryPredicateImpl.java new file mode 100644 index 0000000000..71ea579298 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/impl/RepositoryPredicateImpl.java @@ -0,0 +1,229 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.impl; + +import org.eclipse.emf.cdo.releng.predicates.PredicatesPackage; +import org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate; + +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.core.resources.IProject; +import org.eclipse.core.runtime.IPath; +import org.eclipse.egit.core.GitProvider; +import org.eclipse.egit.core.project.GitProjectData; +import org.eclipse.egit.core.project.RepositoryMapping; +import org.eclipse.team.core.RepositoryProvider; + +import java.lang.reflect.InvocationTargetException; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Repository Predicate</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.releng.predicates.impl.RepositoryPredicateImpl#getProject <em>Project</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class RepositoryPredicateImpl extends MinimalEObjectImpl.Container implements RepositoryPredicate +{ + /** + * The default value of the '{@link #getProject() <em>Project</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProject() + * @generated + * @ordered + */ + protected static final IProject PROJECT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProject() <em>Project</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProject() + * @generated + * @ordered + */ + protected IProject project = PROJECT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected RepositoryPredicateImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return PredicatesPackage.Literals.REPOSITORY_PREDICATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IProject getProject() + { + return project; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProject(IProject newProject) + { + IProject oldProject = project; + project = newProject; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, PredicatesPackage.REPOSITORY_PREDICATE__PROJECT, oldProject, project)); + } + + private IPath getGitDirAbsolutePath(IProject project) + { + if (project != null) + { + RepositoryProvider provider = RepositoryProvider.getProvider(project); + if (provider instanceof GitProvider) + { + GitProvider gitProvider = (GitProvider)provider; + GitProjectData data = gitProvider.getData(); + RepositoryMapping repositoryMapping = data.getRepositoryMapping(project); + return repositoryMapping.getGitDirAbsolutePath(); + } + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + public boolean matches(IProject project) + { + IPath prototypeGitDirAbsolutePath = getGitDirAbsolutePath(getProject()); + IPath gitDirAbsolutePath = getGitDirAbsolutePath(project); + return prototypeGitDirAbsolutePath != null && prototypeGitDirAbsolutePath.equals(gitDirAbsolutePath); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case PredicatesPackage.REPOSITORY_PREDICATE__PROJECT: + return getProject(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case PredicatesPackage.REPOSITORY_PREDICATE__PROJECT: + setProject((IProject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case PredicatesPackage.REPOSITORY_PREDICATE__PROJECT: + setProject(PROJECT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case PredicatesPackage.REPOSITORY_PREDICATE__PROJECT: + return PROJECT_EDEFAULT == null ? project != null : !PROJECT_EDEFAULT.equals(project); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException + { + switch (operationID) + { + case PredicatesPackage.REPOSITORY_PREDICATE___MATCHES__IPROJECT: + return matches((IProject)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (project: "); + result.append(project); + result.append(')'); + return result.toString(); + } + +} // RepositoryPredicateImpl diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/util/PredicatesAdapterFactory.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/util/PredicatesAdapterFactory.java new file mode 100644 index 0000000000..c1e7d939f7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/util/PredicatesAdapterFactory.java @@ -0,0 +1,292 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.util; + +import org.eclipse.emf.cdo.releng.predicates.*; + +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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage + * @generated + */ +public class PredicatesAdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static PredicatesPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesAdapterFactory() + { + if (modelPackage == null) + { + modelPackage = PredicatesPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PredicatesSwitch<Adapter> modelSwitch = + new PredicatesSwitch<Adapter>() + { + @Override + public Adapter casePredicate(Predicate object) + { + return createPredicateAdapter(); + } + @Override + public Adapter caseNamePredicate(NamePredicate object) + { + return createNamePredicateAdapter(); + } + @Override + public Adapter caseRepositoryPredicate(RepositoryPredicate object) + { + return createRepositoryPredicateAdapter(); + } + @Override + public Adapter caseAndPredicate(AndPredicate object) + { + return createAndPredicateAdapter(); + } + @Override + public Adapter caseOrPredicate(OrPredicate object) + { + return createOrPredicateAdapter(); + } + @Override + public Adapter caseNotPredicate(NotPredicate object) + { + return createNotPredicateAdapter(); + } + @Override + public Adapter caseNaturePredicate(NaturePredicate object) + { + return createNaturePredicateAdapter(); + } + @Override + public Adapter caseBuilderPredicate(BuilderPredicate object) + { + return createBuilderPredicateAdapter(); + } + @Override + public Adapter caseFilePredicate(FilePredicate object) + { + return createFilePredicateAdapter(); + } + @Override + public Adapter defaultCase(EObject object) + { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) + { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.Predicate <em>Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.Predicate + * @generated + */ + public Adapter createPredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.NamePredicate <em>Name Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.NamePredicate + * @generated + */ + public Adapter createNamePredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate <em>Repository Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.RepositoryPredicate + * @generated + */ + public Adapter createRepositoryPredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.AndPredicate <em>And Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.AndPredicate + * @generated + */ + public Adapter createAndPredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.OrPredicate <em>Or Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.OrPredicate + * @generated + */ + public Adapter createOrPredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.NotPredicate <em>Not Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.NotPredicate + * @generated + */ + public Adapter createNotPredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.NaturePredicate <em>Nature Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.NaturePredicate + * @generated + */ + public Adapter createNaturePredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.BuilderPredicate <em>Builder Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.BuilderPredicate + * @generated + */ + public Adapter createBuilderPredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.releng.predicates.FilePredicate <em>File Predicate</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.releng.predicates.FilePredicate + * @generated + */ + public Adapter createFilePredicateAdapter() + { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() + { + return null; + } + +} //PredicatesAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/util/PredicatesSwitch.java b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/util/PredicatesSwitch.java new file mode 100644 index 0000000000..359d1eac38 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.predicates/src/org/eclipse/emf/cdo/releng/predicates/util/PredicatesSwitch.java @@ -0,0 +1,311 @@ +/** + */ +package org.eclipse.emf.cdo.releng.predicates.util; + +import org.eclipse.emf.cdo.releng.predicates.*; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.releng.predicates.PredicatesPackage + * @generated + */ +public class PredicatesSwitch<T> extends Switch<T> +{ + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static PredicatesPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PredicatesSwitch() + { + if (modelPackage == null) + { + modelPackage = PredicatesPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case PredicatesPackage.PREDICATE: + { + Predicate predicate = (Predicate)theEObject; + T result = casePredicate(predicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.NAME_PREDICATE: + { + NamePredicate namePredicate = (NamePredicate)theEObject; + T result = caseNamePredicate(namePredicate); + if (result == null) result = casePredicate(namePredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.REPOSITORY_PREDICATE: + { + RepositoryPredicate repositoryPredicate = (RepositoryPredicate)theEObject; + T result = caseRepositoryPredicate(repositoryPredicate); + if (result == null) result = casePredicate(repositoryPredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.AND_PREDICATE: + { + AndPredicate andPredicate = (AndPredicate)theEObject; + T result = caseAndPredicate(andPredicate); + if (result == null) result = casePredicate(andPredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.OR_PREDICATE: + { + OrPredicate orPredicate = (OrPredicate)theEObject; + T result = caseOrPredicate(orPredicate); + if (result == null) result = casePredicate(orPredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.NOT_PREDICATE: + { + NotPredicate notPredicate = (NotPredicate)theEObject; + T result = caseNotPredicate(notPredicate); + if (result == null) result = casePredicate(notPredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.NATURE_PREDICATE: + { + NaturePredicate naturePredicate = (NaturePredicate)theEObject; + T result = caseNaturePredicate(naturePredicate); + if (result == null) result = casePredicate(naturePredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.BUILDER_PREDICATE: + { + BuilderPredicate builderPredicate = (BuilderPredicate)theEObject; + T result = caseBuilderPredicate(builderPredicate); + if (result == null) result = casePredicate(builderPredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case PredicatesPackage.FILE_PREDICATE: + { + FilePredicate filePredicate = (FilePredicate)theEObject; + T result = caseFilePredicate(filePredicate); + if (result == null) result = casePredicate(filePredicate); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePredicate(Predicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Name Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Name Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamePredicate(NamePredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Repository Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Repository Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRepositoryPredicate(RepositoryPredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>And Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>And Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAndPredicate(AndPredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Or Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Or Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOrPredicate(OrPredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Not Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Not Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNotPredicate(NotPredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Nature Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Nature Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNaturePredicate(NaturePredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Builder Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Builder Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBuilderPredicate(BuilderPredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>File Predicate</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>File Predicate</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFilePredicate(FilePredicate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) + { + return null; + } + +} //PredicatesSwitch diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.classpath b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.classpath new file mode 100644 index 0000000000..3bc247511f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.project b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.project new file mode 100644 index 0000000000..26912e0d08 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.releng.preferences.edit</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..a4a4bde1e6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding//model/preferences.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..b3af741094 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,405 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= +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.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +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.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +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=enabled +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=warning +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +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=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +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=disabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled +org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning +org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public +org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag +org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled +org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public +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=warning +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +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=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +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=warning +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=ignore +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +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=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +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.5 +org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled +org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH,LOW,LOW,LOW,LOW,LOW +org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX,PERF,MEM,POLISH,@generated NOT,@ADDED +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=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +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=next_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=next_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_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=false +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=120 +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=false +org.eclipse.jdt.core.formatter.indentation.size=2 +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=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=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=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=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=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=120 +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=space +org.eclipse.jdt.core.formatter.tabulation.size=2 +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=true diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..3fc140fcdc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,119 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=true +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=true +cleanup.format_source_code=true +cleanup.format_source_code_changes_only=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=true +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=false +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_parentheses_in_expressions=true +cleanup.use_this_for_non_static_field_access=true +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=true +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup_profile=_EMFT +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_EMFT +formatter_settings_version=12 +org.eclipse.jdt.ui.exception.name=ex +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004-2013 Eike Stepper (Berlin, Germany) and others.\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 * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></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=false +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=true +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=true +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=true +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000000..864e30fe5d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,3 @@ +#Thu Feb 04 09:44:24 CET 2010 +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000000..b050639a54 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs @@ -0,0 +1,4 @@ +#Thu Feb 04 09:44:24 CET 2010 +eclipse.preferences.version=1 +project.repository.kind=bugzilla +project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000000..2f50f36c0c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.mylyn.team.ui.prefs @@ -0,0 +1,3 @@ +#Thu Feb 04 09:44:24 CET 2010 +commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} +eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000000..0c17d59e45 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,95 @@ +#Thu Feb 04 09:44:24 CET 2010 +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 +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=Error +MISSING_EE_DESCRIPTIONS=Warning +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 +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=Ignore +automatically_removed_unused_problem_filters=Disabled +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/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000000..fe01bb701d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/.settings/org.eclipse.pde.prefs @@ -0,0 +1,31 @@ +#Thu Feb 04 09:44:24 CET 2010 +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.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=2 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=1 +compilers.p.missing-version-import-package=1 +compilers.p.missing-version-require-bundle=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +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/plugins/org.eclipse.emf.cdo.releng.preferences.edit/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..02c8a05c89 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.emf.cdo.releng.preferences.edit;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.eclipse.emf.cdo.releng.preferences.provider.PreferencesEditPlugin$Implementation +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.emf.cdo.releng.preferences.provider +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.cdo.releng.preferences;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/build.properties b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/build.properties new file mode 100644 index 0000000000..6e3e902e80 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/build.properties @@ -0,0 +1,10 @@ +# + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/icons/full/obj16/PreferenceNode.gif b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/icons/full/obj16/PreferenceNode.gif Binary files differnew file mode 100644 index 0000000000..e8cb49fb5f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/icons/full/obj16/PreferenceNode.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/icons/full/obj16/Property.gif b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/icons/full/obj16/Property.gif Binary files differnew file mode 100644 index 0000000000..99b7fa68d9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/icons/full/obj16/Property.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/plugin.properties b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/plugin.properties new file mode 100644 index 0000000000..8ca07b08ce --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/plugin.properties @@ -0,0 +1,30 @@ +# + +pluginName = Preferences Edit Support +providerName = www.example.org + +_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_PreferenceNode_type = Preference Node +_UI_Property_type = Property +_UI_Unknown_type = Object + +_UI_Unknown_datatype= Value + +_UI_PreferenceNode_children_feature = Children +_UI_PreferenceNode_parent_feature = Parent +_UI_PreferenceNode_properties_feature = Properties +_UI_PreferenceNode_name_feature = Name +_UI_Property_name_feature = Name +_UI_Property_parent_feature = Parent +_UI_Property_value_feature = Value +_UI_Unknown_feature = Unspecified + +_UI_PreferenceNode_location_feature = Location diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/plugin.xml b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/plugin.xml new file mode 100644 index 0000000000..0550154313 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/plugin.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories"> + <!-- @generated preferences --> + <factory + uri="http://www.eclipse.org/CDO/releng/preferences/1.0" + class="org.eclipse.emf.cdo.releng.preferences.provider.PreferencesItemProviderAdapterFactory" + supportedTypes= + "org.eclipse.emf.edit.provider.IEditingDomainItemProvider + org.eclipse.emf.edit.provider.IStructuredItemContentProvider + org.eclipse.emf.edit.provider.ITreeItemContentProvider + org.eclipse.emf.edit.provider.IItemLabelProvider + org.eclipse.emf.edit.provider.IItemPropertySource"/> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferenceNodeItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferenceNodeItemProvider.java new file mode 100644 index 0000000000..290ddc5e91 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferenceNodeItemProvider.java @@ -0,0 +1,243 @@ +/** + */ +package org.eclipse.emf.cdo.releng.preferences.provider; + +import org.eclipse.emf.cdo.releng.preferences.PreferenceNode; +import org.eclipse.emf.cdo.releng.preferences.PreferencesFactory; +import org.eclipse.emf.cdo.releng.preferences.PreferencesPackage; + +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 java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.preferences.PreferenceNode} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class PreferenceNodeItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreferenceNodeItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) + { + if (itemPropertyDescriptors == null) + { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addLocationPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addNamePropertyDescriptor(Object object) + { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_PreferenceNode_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_PreferenceNode_name_feature", "_UI_PreferenceNode_type"), + PreferencesPackage.Literals.PREFERENCE_NODE__NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Location feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addLocationPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_PreferenceNode_location_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_PreferenceNode_location_feature", "_UI_PreferenceNode_type"), + PreferencesPackage.Literals.PREFERENCE_NODE__LOCATION, + false, + 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) + { + if (childrenFeatures == null) + { + super.getChildrenFeatures(object); + childrenFeatures.add(PreferencesPackage.Literals.PREFERENCE_NODE__CHILDREN); + childrenFeatures.add(PreferencesPackage.Literals.PREFERENCE_NODE__PROPERTIES); + } + return childrenFeatures; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 PreferenceNode.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/PreferenceNode")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + String label = ((PreferenceNode)object).getName(); + return label == null ? "" : 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(PreferenceNode.class)) + { + case PreferencesPackage.PREFERENCE_NODE__NAME: + case PreferencesPackage.PREFERENCE_NODE__LOCATION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case PreferencesPackage.PREFERENCE_NODE__CHILDREN: + case PreferencesPackage.PREFERENCE_NODE__PROPERTIES: + 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (PreferencesPackage.Literals.PREFERENCE_NODE__CHILDREN, + PreferencesFactory.eINSTANCE.createPreferenceNode())); + + newChildDescriptors.add + (createChildParameter + (PreferencesPackage.Literals.PREFERENCE_NODE__PROPERTIES, + PreferencesFactory.eINSTANCE.createProperty())); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return PreferencesEditPlugin.INSTANCE; + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferencesEditPlugin.java b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferencesEditPlugin.java new file mode 100644 index 0000000000..1c27a3f555 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferencesEditPlugin.java @@ -0,0 +1,96 @@ +/** + */ +package org.eclipse.emf.cdo.releng.preferences.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the Preferences edit plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public final class PreferencesEditPlugin extends EMFPlugin +{ + /** + * Keep track of the singleton. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final PreferencesEditPlugin INSTANCE = new PreferencesEditPlugin(); + + /** + * Keep track of the singleton. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreferencesEditPlugin() + { + super + (new ResourceLocator [] + { + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() + { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() + { + return plugin; + } + + /** + * The actual implementation of the Eclipse <b>Plugin</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static class Implementation extends EclipsePlugin + { + /** + * Creates an instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Implementation() + { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferencesItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferencesItemProviderAdapterFactory.java new file mode 100644 index 0000000000..86a86d9a2b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PreferencesItemProviderAdapterFactory.java @@ -0,0 +1,241 @@ +/** + */ +package org.eclipse.emf.cdo.releng.preferences.provider; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.cdo.releng.preferences.util.PreferencesAdapterFactory; + +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; + +/** + * 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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class PreferencesItemProviderAdapterFactory extends PreferencesAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable +{ + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Collection<Object> supportedTypes = new ArrayList<Object>(); + + /** + * This constructs an instance. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreferencesItemProviderAdapterFactory() + { + 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.eclipse.emf.cdo.releng.preferences.PreferenceNode} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PreferenceNodeItemProvider preferenceNodeItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.preferences.PreferenceNode}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createPreferenceNodeAdapter() + { + if (preferenceNodeItemProvider == null) + { + preferenceNodeItemProvider = new PreferenceNodeItemProvider(this); + } + + return preferenceNodeItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.releng.preferences.Property} instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PropertyItemProvider propertyItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.releng.preferences.Property}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter createPropertyAdapter() + { + if (propertyItemProvider == null) + { + propertyItemProvider = new PropertyItemProvider(this); + } + + return propertyItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() + { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) + { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) + { + return super.adapt(notifier, this); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) + { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) + { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void dispose() + { + if (preferenceNodeItemProvider != null) preferenceNodeItemProvider.dispose(); + if (propertyItemProvider != null) propertyItemProvider.dispose(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PropertyItemProvider.java b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PropertyItemProvider.java new file mode 100644 index 0000000000..062549536f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.edit/src/org/eclipse/emf/cdo/releng/preferences/provider/PropertyItemProvider.java @@ -0,0 +1,194 @@ +/** + */ +package org.eclipse.emf.cdo.releng.preferences.provider; + +import org.eclipse.emf.cdo.releng.preferences.PreferencesPackage; +import org.eclipse.emf.cdo.releng.preferences.Property; + +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 java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.releng.preferences.Property} object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class PropertyItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource +{ + /** + * This constructs an instance from a factory and a notifier. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PropertyItemProvider(AdapterFactory adapterFactory) + { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) + { + if (itemPropertyDescriptors == null) + { + super.getPropertyDescriptors(object); + + addNamePropertyDescriptor(object); + addValuePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Name feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addNamePropertyDescriptor(Object object) + { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Property_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Property_name_feature", "_UI_Property_type"), + PreferencesPackage.Literals.PROPERTY__NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Value feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void addValuePropertyDescriptor(Object object) + { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Property_value_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Property_value_feature", "_UI_Property_type"), + PreferencesPackage.Literals.PROPERTY__VALUE, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This returns Property.gif. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Property")); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() + { + return true; + } + + /** + * This returns the label text for the adapted class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated NOT + */ + @Override + public String getText(Object object) + { + String name = ((Property)object).getName(); + String value = ((Property)object).getValue(); + return (name == null ? "" : name) + (value == null ? "" : "=" + crop(value)); + } + + /** + * 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}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Property.class)) + { + case PreferencesPackage.PROPERTY__NAME: + case PreferencesPackage.PROPERTY__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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + return PreferencesEditPlugin.INSTANCE; + } + +} diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.classpath b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.classpath new file mode 100644 index 0000000000..3bc247511f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.project b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.project new file mode 100644 index 0000000000..2eadbeae48 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.releng.preferences.editor</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..a4a4bde1e6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding//model/preferences.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.jdt.core.prefs index 48aafaf7ea..48aafaf7ea 100644 --- a/plugins/org.eclipse.emf.cdo.releng.setup.ui/.settings/org.eclipse.jdt.core.prefs +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.jdt.core.prefs diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..3fc140fcdc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,119 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=true +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=true +cleanup.format_source_code=true +cleanup.format_source_code_changes_only=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=true +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=false +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_parentheses_in_expressions=true +cleanup.use_this_for_non_static_field_access=true +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=true +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup_profile=_EMFT +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_EMFT +formatter_settings_version=12 +org.eclipse.jdt.ui.exception.name=ex +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004-2013 Eike Stepper (Berlin, Germany) and others.\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 * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></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=false +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=true +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=true +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=true +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000000..864e30fe5d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,3 @@ +#Thu Feb 04 09:44:24 CET 2010 +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000000..b050639a54 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.mylyn.tasks.ui.prefs @@ -0,0 +1,4 @@ +#Thu Feb 04 09:44:24 CET 2010 +eclipse.preferences.version=1 +project.repository.kind=bugzilla +project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000000..2f50f36c0c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.mylyn.team.ui.prefs @@ -0,0 +1,3 @@ +#Thu Feb 04 09:44:24 CET 2010 +commit.comment.template=[${task.id}] ${task.description} \r\n${task.url} +eclipse.preferences.version=1 diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000000..0c17d59e45 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,95 @@ +#Thu Feb 04 09:44:24 CET 2010 +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 +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=Error +MISSING_EE_DESCRIPTIONS=Warning +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 +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=Ignore +automatically_removed_unused_problem_filters=Disabled +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/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000000..fe01bb701d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/.settings/org.eclipse.pde.prefs @@ -0,0 +1,31 @@ +#Thu Feb 04 09:44:24 CET 2010 +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.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=2 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=1 +compilers.p.missing-version-export-package=1 +compilers.p.missing-version-import-package=1 +compilers.p.missing-version-require-bundle=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +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/plugins/org.eclipse.emf.cdo.releng.preferences.editor/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..09f2ecf960 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/META-INF/MANIFEST.MF @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.emf.cdo.releng.preferences.editor;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesEditorPlugin$Implementation +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.emf.cdo.releng.preferences.action, + org.eclipse.emf.cdo.releng.preferences.presentation +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.core.resources;visibility:=reexport, + org.eclipse.emf.cdo.releng.preferences.edit;visibility:=reexport, + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.eclipse.emf.edit.ui;visibility:=reexport, + org.eclipse.ui.ide;visibility:=reexport, + org.eclipse.core.filesystem +Bundle-ActivationPolicy: lazy diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/build.properties b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/build.properties new file mode 100644 index 0000000000..5fb07711cf --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/build.properties @@ -0,0 +1,10 @@ +# + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/ +output.. = bin diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/icons/full/obj16/PreferencesModelFile.gif b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/icons/full/obj16/PreferencesModelFile.gif Binary files differnew file mode 100644 index 0000000000..e8cb49fb5f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/icons/full/obj16/PreferencesModelFile.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/icons/full/wizban/NewPreferences.gif b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/icons/full/wizban/NewPreferences.gif Binary files differnew file mode 100644 index 0000000000..0ed73ab4fd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/icons/full/wizban/NewPreferences.gif diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/plugin.properties b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/plugin.properties new file mode 100644 index 0000000000..d5012d3ed8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/plugin.properties @@ -0,0 +1,53 @@ +# + +pluginName = Preferences Editor +providerName = www.example.org + +_UI_PreferencesEditor_menu = &Preferences 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 = Release Engineering + +_UI_CreateModelError_message = Problems encountered in file "{0}" + +_UI_PreferencesModelWizard_label = Preferences Model +_UI_PreferencesModelWizard_description = Create a new Preferences model + +_UI_PreferencesEditor_label = Preferences Model Editor + +_UI_PreferencesEditorFilenameDefaultBase = My +_UI_PreferencesEditorFilenameExtensions = preferences + +_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/plugins/org.eclipse.emf.cdo.releng.preferences.editor/plugin.xml b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/plugin.xml new file mode 100644 index 0000000000..b36238842f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/plugin.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension + point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.emf.cdo.releng.ui.preferences.RelengPreferencePage" + class="org.eclipse.emf.cdo.releng.preferences.presentation.AllPreferencesPreferencePage" + id="org.eclipse.emf.cdo.releng.preferences.presentation.AllPreferencesPreferencePage" + name="All Preferences"> + </page> + </extension> + + <extension point="org.eclipse.ui.newWizards"> + <!-- @generated preferences --> + <category + id="org.eclipse.emf.ecore.Wizard.category.ID" + name="%_UI_Wizard_category"/> + <category + id="org.eclipse.emf.cdo.releng" + name="%_UI_Wizard_category"/> + <wizard + id="org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesModelWizardID" + name="%_UI_PreferencesModelWizard_label" + class="org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesModelWizard" + category="org.eclipse.emf.cdo.releng" + icon="icons/full/obj16/PreferencesModelFile.gif"> + <description>%_UI_PreferencesModelWizard_description</description> + <selection class="org.eclipse.core.resources.IResource"/> + </wizard> + </extension> + + <extension point="org.eclipse.ui.editors"> + <!-- @generated preferences --> + <editor + id="org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesEditorID" + name="%_UI_PreferencesEditor_label" + icon="icons/full/obj16/PreferencesModelFile.gif" + extensions="preferences" + class="org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesEditor" + contributorClass="org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesActionBarContributor"> + </editor> + </extension> + + + <extension point="org.eclipse.ui.popupMenus"> + <objectContribution + id="org.eclipse.emf.cdo.releng.preferences.action.OpenEditor" + objectClass="org.eclipse.emf.cdo.releng.preferences.PreferenceNode"> + <action + id="org.eclipse.emf.cdo.releng.preferences.action.OpenEditorAction" + label="Open Editor" + menubarPath="additions" + class="org.eclipse.emf.cdo.releng.preferences.action.OpenEditorAction" + enablesFor="1"/> + </objectContribution> + </extension> + + <extension point="org.eclipse.ui.popupMenus"> + <objectContribution + id="org.eclipse.emf.cdo.releng.preferences.action.ShowInExplorer" + objectClass="org.eclipse.emf.cdo.releng.preferences.PreferenceNode"> + <action + id="org.eclipse.emf.cdo.releng.preferences.action.ShowInExplorerAction" + label="Show in Package Explorer" + menubarPath="additions" + class="org.eclipse.emf.cdo.releng.preferences.action.ShowInExplorerAction" + enablesFor="1"/> + </objectContribution> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/action/OpenEditorAction.java b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/action/OpenEditorAction.java new file mode 100644 index 0000000000..48d0e9a14a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/action/OpenEditorAction.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2002-2006 IBM Corporation and others. + * 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: + * IBM - Initial API and implementation + */ +package org.eclipse.emf.cdo.releng.preferences.action; + +import org.eclipse.emf.cdo.releng.preferences.PreferenceNode; + +import org.eclipse.core.filesystem.EFS; +import org.eclipse.core.filesystem.IFileStore; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.actions.ActionDelegate; +import org.eclipse.ui.ide.IDE; + +import java.io.File; +import java.net.URI; + +public class OpenEditorAction extends ActionDelegate +{ + protected String path; + + public OpenEditorAction() + { + super(); + } + + @Override + public void run(IAction action) + { + IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); + IWorkbenchPage page = workbenchWindow.getActivePage(); + + // Open an editor on the new file. + // + try + { + File file = new File(path); + URI uri = file.toURI(); + + IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(uri); + if (files.length > 0) + { + IDE.openEditor(page, files[0]); + } + else + { + IFileStore fileStore = EFS.getStore(uri); + IDE.openEditorOnFileStore(page, fileStore); + } + } + catch (Exception exception) + { + MessageDialog.openError(workbenchWindow.getShell(), "Open Editor", exception.getMessage()); + } + } + + @Override + public void selectionChanged(IAction action, ISelection selection) + { + if (selection instanceof IStructuredSelection) + { + Object object = ((IStructuredSelection)selection).getFirstElement(); + if (object instanceof PreferenceNode) + { + path = ((PreferenceNode)object).getLocation(); + + action.setEnabled(path != null); + + return; + } + } + path = null; + action.setEnabled(false); + } +} diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/action/ShowInExplorerAction.java b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/action/ShowInExplorerAction.java new file mode 100644 index 0000000000..c475e98cee --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/action/ShowInExplorerAction.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2002-2006 IBM Corporation and others. + * 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: + * IBM - Initial API and implementation + */ +package org.eclipse.emf.cdo.releng.preferences.action; + +import org.eclipse.emf.cdo.releng.preferences.PreferenceNode; +import org.eclipse.emf.cdo.releng.preferences.presentation.PreferencesEditorPlugin; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; +import org.eclipse.core.resources.IWorkspaceRoot; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.ui.IViewPart; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PartInitException; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.actions.ActionDelegate; +import org.eclipse.ui.part.IShowInTarget; +import org.eclipse.ui.part.ShowInContext; + +import java.io.File; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class ShowInExplorerAction extends ActionDelegate +{ + private static final IWorkspaceRoot WORKSPACE_ROOT = ResourcesPlugin.getWorkspace().getRoot(); + + protected ISelection targetSelection; + + public ShowInExplorerAction() + { + super(); + } + + @Override + public void run(IAction action) + { + IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); + IWorkbenchPage page = workbenchWindow.getActivePage(); + try + { + IViewPart packageExplorerView = page.showView("org.eclipse.jdt.ui.PackageExplorer"); + IShowInTarget showInTarget = (IShowInTarget)packageExplorerView.getAdapter(IShowInTarget.class); + showInTarget.show(new ShowInContext(null, targetSelection)); + } + catch (PartInitException ex) + { + PreferencesEditorPlugin.INSTANCE.log(ex); + } + } + + @Override + public void selectionChanged(IAction action, ISelection selection) + { + if (selection instanceof IStructuredSelection) + { + List<IResource> resources = new ArrayList<IResource>(); + for (Object object : ((IStructuredSelection)selection).toArray()) + { + if (object instanceof PreferenceNode) + { + PreferenceNode preferenceNode = (PreferenceNode)object; + String path = preferenceNode.getLocation(); + + if (path != null) + { + File file = new File(path); + URI uri = file.toURI(); + + IFile[] files = WORKSPACE_ROOT.findFilesForLocationURI(uri); + if (files.length > 0) + { + resources.addAll(Arrays.asList(files)); + } + } + else + { + PreferenceNode parent = preferenceNode.getParent(); + if (parent != null && "project".equals(parent.getName())) + { + PreferenceNode grandParent = parent.getParent(); + if (grandParent != null && "".equals(grandParent.getName())) + { + IProject project = WORKSPACE_ROOT.getProject(preferenceNode.getName()); + if (project.isAccessible()) + { + resources.add(project); + } + } + } + } + } + } + if (!resources.isEmpty()) + { + targetSelection = new StructuredSelection(resources); + action.setEnabled(true); + return; + } + } + + targetSelection = null; + action.setEnabled(false); + } +} diff --git a/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/presentation/AllPreferencesPreferencePage.java b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/presentation/AllPreferencesPreferencePage.java new file mode 100644 index 0000000000..b7d14eeee5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.releng.preferences.editor/src/org/eclipse/emf/cdo/releng/preferences/presentation/AllPreferencesPreferencePage.java @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2012 Eike Stepper (Berlin, Germany) and others. + * 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: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.releng.preferences.presentation; + +import org.eclipse.emf.cdo.releng.preferences.provider.PreferencesItemProviderAdapterFactory; +import org.eclipse.emf.cdo.releng.preferences.util.PreferencesUtil; + +import org.eclipse.emf.common.ui.URIEditorInput; +import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider; +import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; + +import org.eclipse.jface.dialogs.Dialog; +import |