diff options
author | Eike Stepper | 2012-06-11 15:42:01 +0000 |
---|---|---|
committer | Eike Stepper | 2012-06-11 15:42:01 +0000 |
commit | 2a50f014d3861d59339be3e62d4fe17077471fa4 (patch) | |
tree | 3d2fcf27c20dc6abdec81933a3c86b3b891579f8 /plugins | |
parent | 0423cb0a781011898af15805b9e57dd5af503954 (diff) | |
download | cdo-2a50f014d3861d59339be3e62d4fe17077471fa4.tar.gz cdo-2a50f014d3861d59339be3e62d4fe17077471fa4.tar.xz cdo-2a50f014d3861d59339be3e62d4fe17077471fa4.zip |
[382225] Provide CDO example installers
https://bugs.eclipse.org/bugs/show_bug.cgi?id=382225
Diffstat (limited to 'plugins')
132 files changed, 11262 insertions, 124 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.company.edit/update.ant b/plugins/org.eclipse.emf.cdo.examples.company.edit/update.ant new file mode 100644 index 0000000000..aab29fa579 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.company.edit/update.ant @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<!-- + Copyright (c) 2004 - 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 +--> +<project name="ExampleModelEdit" default="ExampleModelEdit" basedir=".."> + + <!-- + Called by /org.eclipse.emf.cdo.examples.installer/update.ant + --> + + <property name="example.name" value="model.edit" /> + + <target name="ExampleModelEdit"> + <delete includeemptydirs="true" failonerror="false"> + <fileset dir="org.eclipse.emf.cdo.examples.installer/examples/${example.name}"> + <include name="**" /> + </fileset> + </delete> + + <copy todir="org.eclipse.emf.cdo.examples.installer/examples/${example.name}" overwrite="true"> + <fileset dir="org.eclipse.emf.cdo.examples.company.edit"> + <exclude name="update.ant" /> + <exclude name="database/" /> + <exclude name="bin/" /> + <include name="**" /> + </fileset> + </copy> + </target> + +</project> diff --git a/plugins/org.eclipse.emf.cdo.examples.company/update.ant b/plugins/org.eclipse.emf.cdo.examples.company/update.ant new file mode 100644 index 0000000000..e91a9b3032 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.company/update.ant @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<!-- + Copyright (c) 2004 - 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 +--> +<project name="ExampleModel" default="ExampleModel" basedir=".."> + + <!-- + Called by /org.eclipse.emf.cdo.examples.installer/update.ant + --> + + <property name="example.name" value="model" /> + + <target name="ExampleModel"> + <delete includeemptydirs="true" failonerror="false"> + <fileset dir="org.eclipse.emf.cdo.examples.installer/examples/${example.name}"> + <include name="**" /> + </fileset> + </delete> + + <copy todir="org.eclipse.emf.cdo.examples.installer/examples/${example.name}" overwrite="true"> + <fileset dir="org.eclipse.emf.cdo.examples.company"> + <exclude name="update.ant" /> + <exclude name="database/" /> + <exclude name="bin/" /> + <include name="**" /> + </fileset> + </copy> + </target> + +</project> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.client/ExampleClient.launch b/plugins/org.eclipse.emf.cdo.examples.installer.client/ExampleClient.launch index 909aba240b..e5dc0e755b 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.client/ExampleClient.launch +++ b/plugins/org.eclipse.emf.cdo.examples.installer.client/ExampleClient.launch @@ -21,8 +21,8 @@ <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:/org.eclipse.emf.cdo.examples.installer.client}"/> <stringAttribute key="pde.version" value="3.3"/> <stringAttribute key="product" value="org.eclipse.platform.ide"/> -<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,org.apache.lucene.analysis@default:default,org.apache.lucene.core@default:default,org.apache.lucene@default:default,org.eclipse.ant.core@default:default,org.eclipse.compare.core@default:default,org.eclipse.compare@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.filebuffers@default:default,org.eclipse.core.filesystem.win32.x86_64@default:default,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.net.win32.x86_64@default:default,org.eclipse.core.net@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.emf.common*2.8.0.v20120516-0416@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.emf.ecore*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.change*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.emf.ecore.xmi*2.8.0.v20120516-0416@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.edit@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.win32.x86_64@default:default,org.eclipse.equinox.security@default:default,org.eclipse.help.base@default:default,org.eclipse.help@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface.text@default:default,org.eclipse.jface@default:default,org.eclipse.ltk.core.refactoring@default:default,org.eclipse.ltk.ui.refactoring@default:default,org.eclipse.osgi@-1:true,org.eclipse.platform@default:default,org.eclipse.swt.win32.win32.x86_64@default:default,org.eclipse.swt@default:default,org.eclipse.team.core@default:default,org.eclipse.team.ui@default:default,org.eclipse.text@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.editors@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.ui.views@default:default,org.eclipse.ui.win32@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default,org.h2@default:default"/> -<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.admin@default:default,org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.edit@default:default,org.eclipse.emf.cdo.examples.company.edit@default:default,org.eclipse.emf.cdo.examples.company@default:default,org.eclipse.emf.cdo.examples.installer.client@default:default,org.eclipse.emf.cdo.location@default:default,org.eclipse.emf.cdo.net4j@default:default,org.eclipse.emf.cdo.security.edit@default:default,org.eclipse.emf.cdo.security.editor@default:default,org.eclipse.emf.cdo.security@default:default,org.eclipse.emf.cdo.server.db@default:default,org.eclipse.emf.cdo.server.net4j@default:default,org.eclipse.emf.cdo.server@default:default,org.eclipse.emf.cdo.team@default:default,org.eclipse.emf.cdo.ui.admin@default:default,org.eclipse.emf.cdo.ui.efs@default:default,org.eclipse.emf.cdo.ui.ide@default:default,org.eclipse.emf.cdo.ui.location@default:default,org.eclipse.emf.cdo.ui.shared@default:default,org.eclipse.emf.cdo.ui.workspace@default:default,org.eclipse.emf.cdo.ui@default:default,org.eclipse.emf.cdo.workspace.efs@default:default,org.eclipse.emf.cdo.workspace@default:default,org.eclipse.emf.cdo@default:default,org.eclipse.net4j.db.h2@default:default,org.eclipse.net4j.db@default:default,org.eclipse.net4j.debug@default:default,org.eclipse.net4j.jvm@default:default,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.ui.shared@default:default,org.eclipse.net4j.ui@default:default,org.eclipse.net4j.util.ui@default:default,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default"/> +<stringAttribute key="selected_target_plugins" value="com.ibm.icu,org.apache.lucene,org.apache.lucene.analysis,org.apache.lucene.core,org.eclipse.ant.core,org.eclipse.compare,org.eclipse.compare.core,org.eclipse.core.commands,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding,org.eclipse.core.databinding.observable,org.eclipse.core.databinding.property,org.eclipse.core.expressions@default:default,org.eclipse.core.filebuffers,org.eclipse.core.filesystem.win32.x86_64@default:false,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.net,org.eclipse.core.net.win32.x86_64,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables,org.eclipse.emf.common*2.8.0.v20120516-0416@default:default,org.eclipse.emf.common.ui,org.eclipse.emf.ecore*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.change*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.edit,org.eclipse.emf.ecore.xmi*2.8.0.v20120516-0416@default:default,org.eclipse.emf.edit,org.eclipse.emf.edit.ui,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.engine,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.p2.repository,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security,org.eclipse.equinox.security.win32.x86_64,org.eclipse.help,org.eclipse.help.base,org.eclipse.jface,org.eclipse.jface.databinding,org.eclipse.jface.text,org.eclipse.ltk.core.refactoring,org.eclipse.ltk.ui.refactoring,org.eclipse.osgi@-1:true,org.eclipse.platform,org.eclipse.swt,org.eclipse.swt.win32.win32.x86_64,org.eclipse.team.core@default:default,org.eclipse.team.ui,org.eclipse.text,org.eclipse.ui,org.eclipse.ui.cheatsheets,org.eclipse.ui.editors,org.eclipse.ui.forms,org.eclipse.ui.ide,org.eclipse.ui.ide.application,org.eclipse.ui.intro,org.eclipse.ui.navigator,org.eclipse.ui.navigator.resources,org.eclipse.ui.views,org.eclipse.ui.views.properties.tabbed,org.eclipse.ui.win32,org.eclipse.ui.workbench,org.eclipse.ui.workbench.texteditor,org.h2@default:default"/> +<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.admin,org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.edit,org.eclipse.emf.cdo.examples.company*4.0.100.qualifier,org.eclipse.emf.cdo.examples.company.edit*4.0.100.qualifier,org.eclipse.emf.cdo.examples.installer.client*4.1.0.qualifier,org.eclipse.emf.cdo.location,org.eclipse.emf.cdo.net4j,org.eclipse.emf.cdo.security,org.eclipse.emf.cdo.security.edit,org.eclipse.emf.cdo.security.editor,org.eclipse.emf.cdo.server.db@default:default,org.eclipse.emf.cdo.server.net4j@default:default,org.eclipse.emf.cdo.server@default:default,org.eclipse.emf.cdo.team,org.eclipse.emf.cdo.ui,org.eclipse.emf.cdo.ui.admin,org.eclipse.emf.cdo.ui.efs,org.eclipse.emf.cdo.ui.ide,org.eclipse.emf.cdo.ui.location,org.eclipse.emf.cdo.ui.shared,org.eclipse.emf.cdo.ui.workspace,org.eclipse.emf.cdo.workspace,org.eclipse.emf.cdo.workspace.efs,org.eclipse.emf.cdo@default:default,org.eclipse.net4j.db.h2@default:default,org.eclipse.net4j.db@default:default,org.eclipse.net4j.debug,org.eclipse.net4j.jvm,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.ui,org.eclipse.net4j.ui.shared,org.eclipse.net4j.util.ui,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default"/> <booleanAttribute key="show_selected_only" value="false"/> <stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/> <booleanAttribute key="tracing" value="true"/> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.client/README.txt b/plugins/org.eclipse.emf.cdo.examples.installer.client/README.html index 6558e4c9e0..d9d5cba587 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.client/README.txt +++ b/plugins/org.eclipse.emf.cdo.examples.installer.client/README.html @@ -1,6 +1,14 @@ -================== -CDO Client Example -================== +<html> +<head> +<title>CDO Client Example</title> +</head> + +<body> + +<h1>CDO Client Example</h1> This project contains the launch configuration "ExampleClient" that -can be used to start a new Eclipse IDE process with a CDO client. +can be used to start a new Eclipse IDE process with a CDO client.<p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.client/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer.client/build.properties index 5f19e41f9d..e1451d8675 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.client/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer.client/build.properties @@ -13,7 +13,7 @@ bin.includes = META-INF/,\ plugin.properties,\ about.html,\ copyright.txt,\ - README.txt + README.html src.includes = about.html,\ copyright.txt diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.client/update.ant b/plugins/org.eclipse.emf.cdo.examples.installer.client/update.ant index 6df7a1d8f2..3032f8119c 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.client/update.ant +++ b/plugins/org.eclipse.emf.cdo.examples.installer.client/update.ant @@ -11,6 +11,10 @@ --> <project name="ExampleClient" default="ExampleClient" basedir=".."> + <!-- + Called by /org.eclipse.emf.cdo.examples.installer/update.ant + --> + <property name="example.name" value="client" /> <target name="ExampleClient"> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/README.txt b/plugins/org.eclipse.emf.cdo.examples.installer.clone/README.html index 5c6a18d598..893d33c4d7 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/README.txt +++ b/plugins/org.eclipse.emf.cdo.examples.installer.clone/README.html @@ -1,16 +1,25 @@ -======================== -CDO Clone Server Example -======================== +<html> +<head> +<title>CDO Clone Server Example</title> +</head> + +<body> + +<h1>CDO Clone Server Example</h1> This project contains the launch configuration "ExampleCloneServer" that -can be used to start a new standalone process with a CDO clone repository. +can be used to start a new standalone process with a CDO clone repository.<p> The clone will connect to a master server that accepts connections on -port 2036 and automatically replicate it whenever it's available. +port 2036 and automatically replicate it whenever it's available.<p> Make sure that the master repository is configured with ID generation -location CLIENT and auditing, as well as branching! +location CLIENT and auditing, as well as branching!<p> If the server is running you can point your web browser to -http://localhost:7778 in order to introspect the repository. -Please note that this introspection facility should not be used in production! +<a href="http://localhost:7778">http://localhost:7778</a> in order to +introspect the repository. Please note that this introspection facility +should not be used in production!<p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.clone/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer.clone/build.properties index e67cee0dac..e01f0735c8 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.clone/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer.clone/build.properties @@ -15,7 +15,7 @@ bin.includes = META-INF/,\ about.html,\ copyright.txt,\ .,\ - README.txt, + README.html source.. = src/ jars.compile.order = . src.includes = about.html,\ diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.clone/update.ant b/plugins/org.eclipse.emf.cdo.examples.installer.clone/update.ant index 0e18e9a6c8..55434e0d2a 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.clone/update.ant +++ b/plugins/org.eclipse.emf.cdo.examples.installer.clone/update.ant @@ -11,6 +11,10 @@ --> <project name="ExampleCloneServer" default="ExampleCloneServer" basedir=".."> + <!-- + Called by /org.eclipse.emf.cdo.examples.installer/update.ant + --> + <property name="example.name" value="clone" /> <target name="ExampleCloneServer"> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.master/README.html b/plugins/org.eclipse.emf.cdo.examples.installer.master/README.html new file mode 100644 index 0000000000..2b430acfb0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer.master/README.html @@ -0,0 +1,38 @@ +<html> +<head> +<title>CDO Master Server Example</title> +</head> + +<body> + +<h1>CDO Master Server Example</h1> + +This project contains the launch configuration "ExampleMasterServer" that +can be used to start a new OSGi process with a CDO master repository.<p> + +Before you actually run this master server you should review the server +configuration file /config/cdo-server.xml in this project. In particular +you may want to adjust the following settings:<p> + +<ul> + <li> + Acceptor port. + Default is 2036. + </li> + <li> + H2 datasource URL. + Default is a /database folder in the current directory, i.e., this project. + </li> + <li> + ID generation location. + Default is STORE, should be changed to CLIENT for all offline scenarios! + </li> +</ul> + +If the server is running you can point your web browser to +<a href="http://localhost:7777">http://localhost:7778</a> in order to +introspect the repository. Please note that this introspection facility +should not be used in production!<p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.master/README.txt b/plugins/org.eclipse.emf.cdo.examples.installer.master/README.txt deleted file mode 100644 index 0b2d156843..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer.master/README.txt +++ /dev/null @@ -1,23 +0,0 @@ -========================= -CDO Master Server Example -========================= - -This project contains the launch configuration "ExampleMasterServer" that -can be used to start a new OSGi process with a CDO master repository. - -Before you actually run this master server you should review the server -configuration file /config/cdo-server.xml in this project. In particular -you may want to adjust the following settings: - -- Acceptor port - Default is 2036 - -- H2 datasource URL - Default is a /database folde in the current directory, i.e., this project - -- ID generation location - Default is STORE, should be changed to CLIENT for all offline scenarios! - -If the server is running you can point your web browser to -http://localhost:7777 in order to introspect the repository. -Please note that this introspection facility should not be used in production! diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.master/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer.master/build.properties index ff6c88a0db..b08b97ad07 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.master/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer.master/build.properties @@ -13,7 +13,7 @@ bin.includes = META-INF/,\ plugin.properties,\ about.html,\ copyright.txt,\ - README.txt,\ + README.html,\ config/ src.includes = about.html,\ copyright.txt diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.master/update.ant b/plugins/org.eclipse.emf.cdo.examples.installer.master/update.ant index e049342fb3..390679d064 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.master/update.ant +++ b/plugins/org.eclipse.emf.cdo.examples.installer.master/update.ant @@ -11,6 +11,10 @@ --> <project name="ExampleMasterServer" default="ExampleMasterServer" basedir=".."> + <!-- + Called by /org.eclipse.emf.cdo.examples.installer/update.ant + --> + <property name="example.name" value="master" /> <target name="ExampleMasterServer"> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/.classpath b/plugins/org.eclipse.emf.cdo.examples.installer/.classpath index 64c5e31b7a..c83506765b 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/.classpath +++ b/plugins/org.eclipse.emf.cdo.examples.installer/.classpath @@ -2,6 +2,5 @@ <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"/> - <classpathentry kind="src" path="src"/> <classpathentry kind="output" path="bin"/> </classpath> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/.project b/plugins/org.eclipse.emf.cdo.examples.installer/.project index 385f7922d8..510e13b590 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/.project +++ b/plugins/org.eclipse.emf.cdo.examples.installer/.project @@ -20,25 +20,9 @@ <arguments> </arguments> </buildCommand> - <buildCommand> - <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.emf.cdo.releng.version.VersionBuilder</name> - <arguments> - <dictionary> - <key>release.path</key> - <value>/org.eclipse.emf.cdo.releng/release.xml</value> - </dictionary> - </arguments> - </buildCommand> </buildSpec> <natures> <nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> - <nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature> </natures> </projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.examples.installer/META-INF/MANIFEST.MF index dfab30c3a3..eb38f7c061 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.examples.installer/META-INF/MANIFEST.MF @@ -5,7 +5,6 @@ Bundle-Version: 4.1.0.qualifier Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy -Bundle-ClassPath: . Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/build.properties index d980e32527..02a7334fe7 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer/build.properties @@ -9,16 +9,14 @@ # NLS_MESSAGEFORMAT_VAR -output.. = bin/ bin.includes = META-INF/,\ plugin.properties,\ .options,\ about.html,\ copyright.txt,\ - .,\ - examples/ -source.. = src/ -jars.compile.order = . + examples/,\ + plugin.xml,\ + icons/ src.includes = about.html,\ copyright.txt,\ Update Example Installers.launch,\ diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/ExampleClient.launch b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/ExampleClient.launch index 909aba240b..2d4841731a 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/ExampleClient.launch +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/ExampleClient.launch @@ -21,8 +21,8 @@ <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:/org.eclipse.emf.cdo.examples.installer.client}"/> <stringAttribute key="pde.version" value="3.3"/> <stringAttribute key="product" value="org.eclipse.platform.ide"/> -<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,org.apache.lucene.analysis@default:default,org.apache.lucene.core@default:default,org.apache.lucene@default:default,org.eclipse.ant.core@default:default,org.eclipse.compare.core@default:default,org.eclipse.compare@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.filebuffers@default:default,org.eclipse.core.filesystem.win32.x86_64@default:default,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.net.win32.x86_64@default:default,org.eclipse.core.net@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.emf.common*2.8.0.v20120516-0416@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.emf.ecore*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.change*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.emf.ecore.xmi*2.8.0.v20120516-0416@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.edit@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.win32.x86_64@default:default,org.eclipse.equinox.security@default:default,org.eclipse.help.base@default:default,org.eclipse.help@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface.text@default:default,org.eclipse.jface@default:default,org.eclipse.ltk.core.refactoring@default:default,org.eclipse.ltk.ui.refactoring@default:default,org.eclipse.osgi@-1:true,org.eclipse.platform@default:default,org.eclipse.swt.win32.win32.x86_64@default:default,org.eclipse.swt@default:default,org.eclipse.team.core@default:default,org.eclipse.team.ui@default:default,org.eclipse.text@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.editors@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.ui.views@default:default,org.eclipse.ui.win32@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default,org.h2@default:default"/> -<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.admin@default:default,org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.edit@default:default,org.eclipse.emf.cdo.examples.company.edit@default:default,org.eclipse.emf.cdo.examples.company@default:default,org.eclipse.emf.cdo.examples.installer.client@default:default,org.eclipse.emf.cdo.location@default:default,org.eclipse.emf.cdo.net4j@default:default,org.eclipse.emf.cdo.security.edit@default:default,org.eclipse.emf.cdo.security.editor@default:default,org.eclipse.emf.cdo.security@default:default,org.eclipse.emf.cdo.server.db@default:default,org.eclipse.emf.cdo.server.net4j@default:default,org.eclipse.emf.cdo.server@default:default,org.eclipse.emf.cdo.team@default:default,org.eclipse.emf.cdo.ui.admin@default:default,org.eclipse.emf.cdo.ui.efs@default:default,org.eclipse.emf.cdo.ui.ide@default:default,org.eclipse.emf.cdo.ui.location@default:default,org.eclipse.emf.cdo.ui.shared@default:default,org.eclipse.emf.cdo.ui.workspace@default:default,org.eclipse.emf.cdo.ui@default:default,org.eclipse.emf.cdo.workspace.efs@default:default,org.eclipse.emf.cdo.workspace@default:default,org.eclipse.emf.cdo@default:default,org.eclipse.net4j.db.h2@default:default,org.eclipse.net4j.db@default:default,org.eclipse.net4j.debug@default:default,org.eclipse.net4j.jvm@default:default,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.ui.shared@default:default,org.eclipse.net4j.ui@default:default,org.eclipse.net4j.util.ui@default:default,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default"/> +<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,org.apache.lucene.analysis@default:default,org.apache.lucene.core@default:default,org.apache.lucene@default:default,org.eclipse.ant.core@default:default,org.eclipse.compare.core@default:default,org.eclipse.compare@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.filebuffers@default:default,org.eclipse.core.filesystem.win32.x86_64@default:false,org.eclipse.core.filesystem@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.net.win32.x86_64@default:false,org.eclipse.core.net@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.runtime@default:true,org.eclipse.core.variables@default:default,org.eclipse.emf.common*2.8.0.v20120516-0416@default:default,org.eclipse.emf.common.ui@default:default,org.eclipse.emf.ecore*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.change*2.8.0.v20120516-0416@default:default,org.eclipse.emf.ecore.edit@default:default,org.eclipse.emf.ecore.xmi*2.8.0.v20120516-0416@default:default,org.eclipse.emf.edit.ui@default:default,org.eclipse.emf.edit@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security.win32.x86_64@default:false,org.eclipse.equinox.security@default:default,org.eclipse.help.base@default:default,org.eclipse.help@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface.text@default:default,org.eclipse.jface@default:default,org.eclipse.ltk.core.refactoring@default:default,org.eclipse.ltk.ui.refactoring@default:default,org.eclipse.osgi@-1:true,org.eclipse.platform@default:default,org.eclipse.swt.win32.win32.x86_64@default:false,org.eclipse.swt@default:default,org.eclipse.team.core@default:default,org.eclipse.team.ui@default:default,org.eclipse.text@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.editors@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.ui.views@default:default,org.eclipse.ui.win32@default:false,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default,org.h2@default:default"/> +<stringAttribute key="selected_workspace_plugins" value="org.eclipse.emf.cdo.admin@default:default,org.eclipse.emf.cdo.common@default:default,org.eclipse.emf.cdo.edit@default:default,org.eclipse.emf.cdo.examples.company*4.0.100.qualifier@default:default,org.eclipse.emf.cdo.examples.company.edit*4.0.100.qualifier@default:default,org.eclipse.emf.cdo.examples.installer.client*4.1.0.qualifier@default:default,org.eclipse.emf.cdo.location@default:default,org.eclipse.emf.cdo.net4j@default:default,org.eclipse.emf.cdo.security.edit@default:default,org.eclipse.emf.cdo.security.editor@default:default,org.eclipse.emf.cdo.security@default:default,org.eclipse.emf.cdo.server.db@default:default,org.eclipse.emf.cdo.server.net4j@default:default,org.eclipse.emf.cdo.server@default:default,org.eclipse.emf.cdo.team@default:default,org.eclipse.emf.cdo.ui.admin@default:default,org.eclipse.emf.cdo.ui.efs@default:default,org.eclipse.emf.cdo.ui.ide@default:default,org.eclipse.emf.cdo.ui.location@default:default,org.eclipse.emf.cdo.ui.shared@default:default,org.eclipse.emf.cdo.ui.workspace@default:default,org.eclipse.emf.cdo.ui@default:default,org.eclipse.emf.cdo.workspace.efs@default:default,org.eclipse.emf.cdo.workspace@default:default,org.eclipse.emf.cdo@default:default,org.eclipse.net4j.db.h2@default:default,org.eclipse.net4j.db@default:default,org.eclipse.net4j.debug@default:default,org.eclipse.net4j.jvm@default:default,org.eclipse.net4j.tcp@default:default,org.eclipse.net4j.ui.shared@default:default,org.eclipse.net4j.ui@default:default,org.eclipse.net4j.util.ui@default:default,org.eclipse.net4j.util@default:default,org.eclipse.net4j@default:default"/> <booleanAttribute key="show_selected_only" value="false"/> <stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/> <booleanAttribute key="tracing" value="true"/> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/README.html b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/README.html new file mode 100644 index 0000000000..d9d5cba587 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/README.html @@ -0,0 +1,14 @@ +<html> +<head> +<title>CDO Client Example</title> +</head> + +<body> + +<h1>CDO Client Example</h1> + +This project contains the launch configuration "ExampleClient" that +can be used to start a new Eclipse IDE process with a CDO client.<p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/README.txt b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/README.txt deleted file mode 100644 index 0b2d156843..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/README.txt +++ /dev/null @@ -1,23 +0,0 @@ -========================= -CDO Master Server Example -========================= - -This project contains the launch configuration "ExampleMasterServer" that -can be used to start a new OSGi process with a CDO master repository. - -Before you actually run this master server you should review the server -configuration file /config/cdo-server.xml in this project. In particular -you may want to adjust the following settings: - -- Acceptor port - Default is 2036 - -- H2 datasource URL - Default is a /database folde in the current directory, i.e., this project - -- ID generation location - Default is STORE, should be changed to CLIENT for all offline scenarios! - -If the server is running you can point your web browser to -http://localhost:7777 in order to introspect the repository. -Please note that this introspection facility should not be used in production! diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/build.properties index 5f19e41f9d..e1451d8675 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/client/build.properties @@ -13,7 +13,7 @@ bin.includes = META-INF/,\ plugin.properties,\ about.html,\ copyright.txt,\ - README.txt + README.html src.includes = about.html,\ copyright.txt diff --git a/plugins/org.eclipse.emf.cdo.examples.installer.clone/README.txt b/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/README.html index 5c6a18d598..893d33c4d7 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer.clone/README.txt +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/README.html @@ -1,16 +1,25 @@ -======================== -CDO Clone Server Example -======================== +<html> +<head> +<title>CDO Clone Server Example</title> +</head> + +<body> + +<h1>CDO Clone Server Example</h1> This project contains the launch configuration "ExampleCloneServer" that -can be used to start a new standalone process with a CDO clone repository. +can be used to start a new standalone process with a CDO clone repository.<p> The clone will connect to a master server that accepts connections on -port 2036 and automatically replicate it whenever it's available. +port 2036 and automatically replicate it whenever it's available.<p> Make sure that the master repository is configured with ID generation -location CLIENT and auditing, as well as branching! +location CLIENT and auditing, as well as branching!<p> If the server is running you can point your web browser to -http://localhost:7778 in order to introspect the repository. -Please note that this introspection facility should not be used in production! +<a href="http://localhost:7778">http://localhost:7778</a> in order to +introspect the repository. Please note that this introspection facility +should not be used in production!<p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/build.properties index e67cee0dac..e01f0735c8 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/clone/build.properties @@ -15,7 +15,7 @@ bin.includes = META-INF/,\ about.html,\ copyright.txt,\ .,\ - README.txt, + README.html source.. = src/ jars.compile.order = . src.includes = about.html,\ diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/README.html b/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/README.html new file mode 100644 index 0000000000..2b430acfb0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/README.html @@ -0,0 +1,38 @@ +<html> +<head> +<title>CDO Master Server Example</title> +</head> + +<body> + +<h1>CDO Master Server Example</h1> + +This project contains the launch configuration "ExampleMasterServer" that +can be used to start a new OSGi process with a CDO master repository.<p> + +Before you actually run this master server you should review the server +configuration file /config/cdo-server.xml in this project. In particular +you may want to adjust the following settings:<p> + +<ul> + <li> + Acceptor port. + Default is 2036. + </li> + <li> + H2 datasource URL. + Default is a /database folder in the current directory, i.e., this project. + </li> + <li> + ID generation location. + Default is STORE, should be changed to CLIENT for all offline scenarios! + </li> +</ul> + +If the server is running you can point your web browser to +<a href="http://localhost:7777">http://localhost:7778</a> in order to +introspect the repository. Please note that this introspection facility +should not be used in production!<p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/README.txt b/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/README.txt deleted file mode 100644 index 0b2d156843..0000000000 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/README.txt +++ /dev/null @@ -1,23 +0,0 @@ -========================= -CDO Master Server Example -========================= - -This project contains the launch configuration "ExampleMasterServer" that -can be used to start a new OSGi process with a CDO master repository. - -Before you actually run this master server you should review the server -configuration file /config/cdo-server.xml in this project. In particular -you may want to adjust the following settings: - -- Acceptor port - Default is 2036 - -- H2 datasource URL - Default is a /database folde in the current directory, i.e., this project - -- ID generation location - Default is STORE, should be changed to CLIENT for all offline scenarios! - -If the server is running you can point your web browser to -http://localhost:7777 in order to introspect the repository. -Please note that this introspection facility should not be used in production! diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/build.properties index ff6c88a0db..b08b97ad07 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/build.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/master/build.properties @@ -13,7 +13,7 @@ bin.includes = META-INF/,\ plugin.properties,\ about.html,\ copyright.txt,\ - README.txt,\ + README.html,\ config/ src.includes = about.html,\ copyright.txt diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.classpath b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.classpath new file mode 100644 index 0000000000..64c5e31b7a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.classpath @@ -0,0 +1,7 @@ +<?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"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.project b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.project new file mode 100644 index 0000000000..2bf4a52f3d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.project @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.examples.company.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.pde.api.tools.apiAnalysisBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.emf.cdo.releng.version.VersionBuilder</name> + <arguments> + <dictionary> + <key>release.path</key> + <value>/org.eclipse.emf.cdo.releng/release.xml</value> + </dictionary> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> + <nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/.api_filters b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/.api_filters new file mode 100644 index 0000000000..09179e73bc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/.api_filters @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<component id="org.eclipse.emf.cdo.examples.company.edit" version="2"> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/AddressableItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.AddressableItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.AddressableItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/CategoryItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.CategoryItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.CategoryItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/CompanyEditPlugin.java" type="org.eclipse.emf.cdo.examples.company.provider.CompanyEditPlugin"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.CompanyEditPlugin"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.CompanyItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.CompanyItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProviderAdapterFactory.java" type="org.eclipse.emf.cdo.examples.company.provider.CompanyItemProviderAdapterFactory"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.CompanyItemProviderAdapterFactory"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/CustomerItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.CustomerItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.CustomerItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/OrderDetailItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.OrderDetailItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.OrderDetailItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/OrderItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.OrderItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.OrderItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/ProductItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.ProductItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.ProductItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/PurchaseOrderItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.PurchaseOrderItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.PurchaseOrderItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/SalesOrderItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.SalesOrderItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.SalesOrderItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/provider/SupplierItemProvider.java" type="org.eclipse.emf.cdo.examples.company.provider.SupplierItemProvider"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.provider.SupplierItemProvider"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> +</component> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..c2d4a6afbe --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Mon Jul 04 12:55:49 CEST 2011 +eclipse.preferences.version=1 +encoding//model/org.eclipse.emf.cdo.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..378912727b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,382 @@ +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.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.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.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.missingDeprecatedAnnotation=warning +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.nullReference=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.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +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.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_member=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.examples.installer/examples/model.edit/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..4343e2f963 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.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 - 2012 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.examples.installer/examples/model.edit/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000000..864e30fe5d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.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.examples.installer/examples/model.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000000..b050639a54 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.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.examples.installer/examples/model.edit/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000000..2f50f36c0c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.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.examples.installer/examples/model.edit/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000000..f8d0a0660e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,94 @@ +#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=Ignore +LEAK_EXTEND=Warning +LEAK_FIELD_DECL=Warning +LEAK_IMPLEMENT=Warning +LEAK_METHOD_PARAM=Warning +LEAK_METHOD_RETURN_TYPE=Warning +METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error +METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +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.examples.installer/examples/model.edit/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000000..c6b96bb45e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.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=1 +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.examples.installer/examples/model.edit/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..7a6d97b417 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/META-INF/MANIFEST.MF @@ -0,0 +1,17 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.emf.cdo.examples.company.edit; singleton:=true +Bundle-Version: 4.0.100.qualifier +Bundle-Name: %pluginName +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-ActivationPolicy: lazy +Bundle-Activator: org.eclipse.emf.cdo.examples.company.provider.CompanyEditPlugin$Implementation +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ClassPath: . +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", + org.eclipse.emf.edit;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, + org.eclipse.emf.cdo.edit;bundle-version="[4.0.0,5.0.0)";visibility:=reexport, + org.eclipse.emf.cdo.examples.company;bundle-version="[4.0.0,5.0.0)";visibility:=reexport, + org.eclipse.emf.ecore.editor;bundle-version="[2.4.0,3.0.0)";resolution:=optional +Export-Package: org.eclipse.emf.cdo.examples.company.provider;version="3.0.0" diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/about.html b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/about.html new file mode 100644 index 0000000000..d35d5aed64 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 5, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. +For purposes of the EPL, "Program" will mean the Content.</p> + +<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/build.properties new file mode 100644 index 0000000000..077bd069f9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/build.properties @@ -0,0 +1,25 @@ +# Copyright (c) 2004 - 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 + +# NLS_MESSAGEFORMAT_VAR + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html,\ + copyright.txt +jars.compile.order = . +source.. = src/ +output.. = bin/ +src.includes = about.html,\ + copyright.txt + +generateSourceReferences = true diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/copyright.txt b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/copyright.txt new file mode 100644 index 0000000000..0a0f67e6d7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/copyright.txt @@ -0,0 +1,8 @@ +Copyright (c) 2004 - 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
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Address.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Address.gif Binary files differnew file mode 100644 index 0000000000..11bba3ff05 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Address.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Addressable.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Addressable.gif Binary files differnew file mode 100644 index 0000000000..be22463d29 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Addressable.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Category.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Category.gif Binary files differnew file mode 100644 index 0000000000..beb6ed134c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Category.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Company.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Company.gif Binary files differnew file mode 100644 index 0000000000..955d5e87a5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Company.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Customer.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Customer.gif Binary files differnew file mode 100644 index 0000000000..1b87e3ccc4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Customer.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Order.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Order.gif Binary files differnew file mode 100644 index 0000000000..2b8da630d8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Order.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/OrderAddress.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/OrderAddress.gif Binary files differnew file mode 100644 index 0000000000..11bba3ff05 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/OrderAddress.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/OrderDetail.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/OrderDetail.gif Binary files differnew file mode 100644 index 0000000000..bc9944a7d5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/OrderDetail.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Product.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Product.gif Binary files differnew file mode 100644 index 0000000000..147ba36120 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Product.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/PurchaseOrder.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/PurchaseOrder.gif Binary files differnew file mode 100644 index 0000000000..e58c511afb --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/PurchaseOrder.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/SalesOrder.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/SalesOrder.gif Binary files differnew file mode 100644 index 0000000000..d400c7b199 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/SalesOrder.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Supplier.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Supplier.gif Binary files differnew file mode 100644 index 0000000000..0594fe40c6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/Supplier.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/incoming.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/incoming.gif Binary files differnew file mode 100644 index 0000000000..0fe05dc952 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/incoming.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/outgoing.gif b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/outgoing.gif Binary files differnew file mode 100644 index 0000000000..6a3ed68ad3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/icons/full/obj16/outgoing.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/plugin.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/plugin.properties new file mode 100644 index 0000000000..5c7950da8a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/plugin.properties @@ -0,0 +1,81 @@ +# Copyright (c) 2004 - 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 + +pluginName = CDO Model Repository Examples Company Edit Support +providerName = Eclipse Modeling Project + +_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_Address_type = Address +_UI_Order_type = Order +_UI_Supplier_type = Supplier +_UI_PurchaseOrder_type = Purchase Order +_UI_OrderDetail_type = Order Detail +_UI_Product_type = Product +_UI_Category_type = Category +_UI_Company_type = Company +_UI_Customer_type = Customer +_UI_SalesOrder_type = Sales Order +_UI_Unknown_type = Object + +_UI_Unknown_datatype= Value + +_UI_Supplier_name_feature = Name +_UI_PurchaseOrder_date_feature = Date +_UI_PurchaseOrder_supplier_feature = Supplier +_UI_OrderDetail_product_feature = Product +_UI_OrderDetail_price_feature = Price +_UI_Product_name_feature = Name +_UI_Product_orderDetails_feature = Order Details +_UI_Category_name_feature = Name +_UI_Category_categories_feature = Categories +_UI_Category_products_feature = Products +_UI_Company_categories_feature = Categories +_UI_Company_suppliers_feature = Suppliers +_UI_Company_purchaseOrders_feature = Purchase Orders +_UI_Company_customers_feature = Customers +_UI_Company_salesOrders_feature = Sales Orders +_UI_Customer_name_feature = Name +_UI_Customer_salesOrders_feature = Sales Orders +_UI_SalesOrder_id_feature = Id +_UI_SalesOrder_customer_feature = Customer +_UI_Unknown_feature = Unspecified + +_UI_Address_name_feature = Name +_UI_Address_street_feature = Street +_UI_Address_city_feature = City +_UI_Supplier_purchaseOrders_feature = Purchase Orders +_UI_Order_orderDetails_feature = Order Details +_UI_OrderDetail_order_feature = Order + +_UI_Product_vat_feature = Vat +_UI_VAT_vat0_literal = vat0 +_UI_VAT_vat7_literal = vat7 +_UI_VAT_vat15_literal = vat15 +_UI_Supplier_preferred_feature = Preferred +_UI_OrderAddress_type = Order Address +_UI_OrderAddress_testAttribute_feature = Test Attribute + +_UI_Company_name_feature = Name +_UI_Company_orderDetails_feature = Order Details +_UI_Company_vat_feature = Vat +_UI_Company_description_feature = Description +_UI_Product_description_feature = Description +_UI_Addressable_type = Addressable +_UI_Addressable_name_feature = Name +_UI_Addressable_street_feature = Street +_UI_Addressable_city_feature = City +_UI_Product_price_feature = Price diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/plugin.xml b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/plugin.xml new file mode 100644 index 0000000000..bf0e659a81 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/plugin.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<!-- + Copyright (c) 2004 - 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.edit.itemProviderAdapterFactories"> + <factory + uri = "http://www.eclipse.org/emf/CDO/examples/company/1.0.0" + class = "org.eclipse.emf.cdo.examples.company.provider.CompanyItemProviderAdapterFactory" + 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/AddressableItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/AddressableItemProvider.java new file mode 100644 index 0000000000..363d2679a0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/AddressableItemProvider.java @@ -0,0 +1,204 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.edit.CDOItemProviderAdapter; +import org.eclipse.emf.cdo.examples.company.Addressable; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; + +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.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +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.examples.company.Addressable} object. <!-- + * begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + */ +public class AddressableItemProvider extends CDOItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public AddressableItemProvider(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); + addStreetPropertyDescriptor(object); + addCityPropertyDescriptor(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_Addressable_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Addressable_name_feature", "_UI_Addressable_type"), + CompanyPackage.Literals.ADDRESSABLE__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null)); + } + + /** + * This adds a property descriptor for the Street feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addStreetPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Addressable_street_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Addressable_street_feature", "_UI_Addressable_type"), + CompanyPackage.Literals.ADDRESSABLE__STREET, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null)); + } + + /** + * This adds a property descriptor for the City feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addCityPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Addressable_city_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Addressable_city_feature", "_UI_Addressable_type"), + CompanyPackage.Literals.ADDRESSABLE__CITY, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean hasChildren(Object object) + { + return hasChildren(object, true); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + String label = ((Addressable)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Addressable_type") : getString("_UI_Addressable_type") + + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Addressable.class)) + { + case CompanyPackage.ADDRESSABLE__NAME: + case CompanyPackage.ADDRESSABLE__STREET: + case CompanyPackage.ADDRESSABLE__CITY: + 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CategoryItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CategoryItemProvider.java new file mode 100644 index 0000000000..7b1eb64b19 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CategoryItemProvider.java @@ -0,0 +1,226 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.edit.CDOItemProviderAdapter; +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.CompanyFactory; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; + +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.IChildCreationExtender; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +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.examples.company.Category} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class CategoryItemProvider extends CDOItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CategoryItemProvider(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); + } + 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_Category_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Category_name_feature", "_UI_Category_type"), + CompanyPackage.Literals.CATEGORY__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) + { + if (childrenFeatures == null) + { + super.getChildrenFeatures(object); + childrenFeatures.add(CompanyPackage.Literals.CATEGORY__CATEGORIES); + childrenFeatures.add(CompanyPackage.Literals.CATEGORY__PRODUCTS); + } + 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); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean hasChildren(Object object) + { + return hasChildren(object, true); + } + + /** + * This returns Category.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Category")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + String label = ((Category)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Category_type") : getString("_UI_Category_type") + " " + + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Category.class)) + { + case CompanyPackage.CATEGORY__NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case CompanyPackage.CATEGORY__CATEGORIES: + case CompanyPackage.CATEGORY__PRODUCTS: + 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(CompanyPackage.Literals.CATEGORY__CATEGORIES, + CompanyFactory.eINSTANCE.createCategory())); + + newChildDescriptors.add(createChildParameter(CompanyPackage.Literals.CATEGORY__PRODUCTS, + CompanyFactory.eINSTANCE.createProduct())); + } + + /** + * 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyEditPlugin.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyEditPlugin.java new file mode 100644 index 0000000000..18e3eb6d81 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyEditPlugin.java @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.common.EMFPlugin; +import org.eclipse.emf.common.util.ResourceLocator; + +/** + * This is the central singleton for the Company edit plugin. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public final class CompanyEditPlugin extends EMFPlugin +{ + /** + * Keep track of the singleton. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public static final CompanyEditPlugin INSTANCE = new CompanyEditPlugin(); + + /** + * 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 CompanyEditPlugin() + { + 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProvider.java new file mode 100644 index 0000000000..055c14e0bd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProvider.java @@ -0,0 +1,195 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.examples.company.Company; +import org.eclipse.emf.cdo.examples.company.CompanyFactory; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +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.examples.company.Company} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class CompanyItemProvider extends AddressableItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CompanyItemProvider(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(CompanyPackage.Literals.COMPANY__CATEGORIES); + childrenFeatures.add(CompanyPackage.Literals.COMPANY__SUPPLIERS); + childrenFeatures.add(CompanyPackage.Literals.COMPANY__CUSTOMERS); + childrenFeatures.add(CompanyPackage.Literals.COMPANY__PURCHASE_ORDERS); + childrenFeatures.add(CompanyPackage.Literals.COMPANY__SALES_ORDERS); + } + 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 Company.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Company")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + String label = ((Company)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Company_type") : getString("_UI_Company_type") + " " + + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Company.class)) + { + case CompanyPackage.COMPANY__CATEGORIES: + case CompanyPackage.COMPANY__SUPPLIERS: + case CompanyPackage.COMPANY__CUSTOMERS: + case CompanyPackage.COMPANY__PURCHASE_ORDERS: + case CompanyPackage.COMPANY__SALES_ORDERS: + 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(CompanyPackage.Literals.COMPANY__CATEGORIES, + CompanyFactory.eINSTANCE.createCategory())); + + newChildDescriptors.add(createChildParameter(CompanyPackage.Literals.COMPANY__SUPPLIERS, + CompanyFactory.eINSTANCE.createSupplier())); + + newChildDescriptors.add(createChildParameter(CompanyPackage.Literals.COMPANY__CUSTOMERS, + CompanyFactory.eINSTANCE.createCustomer())); + + newChildDescriptors.add(createChildParameter(CompanyPackage.Literals.COMPANY__PURCHASE_ORDERS, + CompanyFactory.eINSTANCE.createPurchaseOrder())); + + newChildDescriptors.add(createChildParameter(CompanyPackage.Literals.COMPANY__SALES_ORDERS, + CompanyFactory.eINSTANCE.createSalesOrder())); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProviderAdapterFactory.java new file mode 100644 index 0000000000..67199c8ed2 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CompanyItemProviderAdapterFactory.java @@ -0,0 +1,487 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.util.CompanyAdapterFactory; + +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.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * 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 CompanyItemProviderAdapterFactory extends CompanyAdapterFactory 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( + CompanyEditPlugin.INSTANCE, CompanyPackage.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 CompanyItemProviderAdapterFactory() + { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + supportedTypes.add(ITableItemLabelProvider.class); + supportedTypes.add(ITableItemColorProvider.class); + supportedTypes.add(ITableItemFontProvider.class); + supportedTypes.add(IItemColorProvider.class); + supportedTypes.add(IItemFontProvider.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.Supplier} instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected SupplierItemProvider supplierItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.Supplier}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createSupplierAdapter() + { + if (supplierItemProvider == null) + { + supplierItemProvider = new SupplierItemProvider(this); + } + + return supplierItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder} + * instances. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected PurchaseOrderItemProvider purchaseOrderItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder}. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Adapter createPurchaseOrderAdapter() + { + if (purchaseOrderItemProvider == null) + { + purchaseOrderItemProvider = new PurchaseOrderItemProvider(this); + } + + return purchaseOrderItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.OrderDetail} + * instances. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected OrderDetailItemProvider orderDetailItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.OrderDetail}. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + @Override + public Adapter createOrderDetailAdapter() + { + if (orderDetailItemProvider == null) + { + orderDetailItemProvider = new OrderDetailItemProvider(this); + } + + return orderDetailItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.Category} instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected CategoryItemProvider categoryItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.Category}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createCategoryAdapter() + { + if (categoryItemProvider == null) + { + categoryItemProvider = new CategoryItemProvider(this); + } + + return categoryItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.Product} instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ProductItemProvider productItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.Product}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createProductAdapter() + { + if (productItemProvider == null) + { + productItemProvider = new ProductItemProvider(this); + } + + return productItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.Company} instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected CompanyItemProvider companyItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.Company}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createCompanyAdapter() + { + if (companyItemProvider == null) + { + companyItemProvider = new CompanyItemProvider(this); + } + + return companyItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.Customer} instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected CustomerItemProvider customerItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.Customer}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createCustomerAdapter() + { + if (customerItemProvider == null) + { + customerItemProvider = new CustomerItemProvider(this); + } + + return customerItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.Order} instances. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected OrderItemProvider orderItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.Order}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createOrderAdapter() + { + if (orderItemProvider == null) + { + orderItemProvider = new OrderItemProvider(this); + } + + return orderItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.emf.cdo.examples.company.SalesOrder} instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected SalesOrderItemProvider salesOrderItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.emf.cdo.examples.company.SalesOrder}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Adapter createSalesOrderAdapter() + { + if (salesOrderItemProvider == null) + { + salesOrderItemProvider = new SalesOrderItemProvider(this); + } + + return salesOrderItemProvider; + } + + /** + * 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 (companyItemProvider != null) + companyItemProvider.dispose(); + if (supplierItemProvider != null) + supplierItemProvider.dispose(); + if (customerItemProvider != null) + customerItemProvider.dispose(); + if (orderItemProvider != null) + orderItemProvider.dispose(); + if (orderDetailItemProvider != null) + orderDetailItemProvider.dispose(); + if (purchaseOrderItemProvider != null) + purchaseOrderItemProvider.dispose(); + if (salesOrderItemProvider != null) + salesOrderItemProvider.dispose(); + if (categoryItemProvider != null) + categoryItemProvider.dispose(); + if (productItemProvider != null) + productItemProvider.dispose(); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CustomerItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CustomerItemProvider.java new file mode 100644 index 0000000000..5caeaa4a3e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/CustomerItemProvider.java @@ -0,0 +1,145 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +import java.util.Collection; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.examples.company.Customer} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class CustomerItemProvider extends AddressableItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CustomerItemProvider(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); + + addSalesOrdersPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Sales Orders feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addSalesOrdersPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Customer_salesOrders_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Customer_salesOrders_feature", "_UI_Customer_type"), + CompanyPackage.Literals.CUSTOMER__SALES_ORDERS, true, false, true, null, null, null)); + } + + /** + * This returns Customer.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Customer")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + String label = ((Customer)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Customer_type") : getString("_UI_Customer_type") + " " + + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created under + * this object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) + { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/OrderDetailItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/OrderDetailItemProvider.java new file mode 100644 index 0000000000..05c0020767 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/OrderDetailItemProvider.java @@ -0,0 +1,194 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.edit.CDOItemProviderAdapter; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.OrderDetail; + +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.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +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.examples.company.OrderDetail} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class OrderDetailItemProvider extends CDOItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public OrderDetailItemProvider(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); + + addProductPropertyDescriptor(object); + addPricePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Product feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addProductPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_OrderDetail_product_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_OrderDetail_product_feature", "_UI_OrderDetail_type"), + CompanyPackage.Literals.ORDER_DETAIL__PRODUCT, true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Price feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addPricePropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_OrderDetail_price_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_OrderDetail_price_feature", "_UI_OrderDetail_type"), + CompanyPackage.Literals.ORDER_DETAIL__PRICE, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, + null)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean hasChildren(Object object) + { + return hasChildren(object, true); + } + + /** + * This returns OrderDetail.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/OrderDetail")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + OrderDetail orderDetail = (OrderDetail)object; + return getString("_UI_OrderDetail_type") + " " + orderDetail.getPrice(); + } + + /** + * 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(OrderDetail.class)) + { + case CompanyPackage.ORDER_DETAIL__PRICE: + 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/OrderItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/OrderItemProvider.java new file mode 100644 index 0000000000..414b047e8c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/OrderItemProvider.java @@ -0,0 +1,198 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.edit.CDOItemProviderAdapter; +import org.eclipse.emf.cdo.examples.company.CompanyFactory; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Order; + +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.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +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.examples.company.Order} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class OrderItemProvider extends CDOItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public OrderItemProvider(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(CompanyPackage.Literals.ORDER__ORDER_DETAILS); + } + 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); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean hasChildren(Object object) + { + return hasChildren(object, true); + } + + /** + * This returns Order.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Order")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + return getString("_UI_Order_type"); + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Order.class)) + { + case CompanyPackage.ORDER__ORDER_DETAILS: + 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(CompanyPackage.Literals.ORDER__ORDER_DETAILS, + CompanyFactory.eINSTANCE.createOrderDetail())); + } + + /** + * 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/ProductItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/ProductItemProvider.java new file mode 100644 index 0000000000..cef78613b9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/ProductItemProvider.java @@ -0,0 +1,247 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.edit.CDOItemProviderAdapter; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Product; + +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.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +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.examples.company.Company} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class ProductItemProvider extends CDOItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public ProductItemProvider(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); + addOrderDetailsPropertyDescriptor(object); + addVatPropertyDescriptor(object); + addDescriptionPropertyDescriptor(object); + addPricePropertyDescriptor(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_Product_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Product_name_feature", "_UI_Product_type"), + CompanyPackage.Literals.PRODUCT__NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); + } + + /** + * This adds a property descriptor for the Order Details feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addOrderDetailsPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Product_orderDetails_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Product_orderDetails_feature", "_UI_Product_type"), + CompanyPackage.Literals.PRODUCT__ORDER_DETAILS, true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Vat feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addVatPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Product_vat_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Product_vat_feature", "_UI_Product_type"), + CompanyPackage.Literals.PRODUCT__VAT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, + null)); + } + + /** + * This adds a property descriptor for the Description feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addDescriptionPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Product_description_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Product_description_feature", "_UI_Product_type"), + CompanyPackage.Literals.PRODUCT__DESCRIPTION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null)); + } + + /** + * This adds a property descriptor for the Price feature. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + */ + protected void addPricePropertyDescriptor(Object object) + { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Product_price_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Product_price_feature", "_UI_Product_type"), + CompanyPackage.Literals.PRODUCT__PRICE, true, false, false, ItemPropertyDescriptor.REAL_VALUE_IMAGE, null, + null)); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean hasChildren(Object object) + { + return hasChildren(object, true); + } + + /** + * This returns Product.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Product")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + String label = ((Product)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Product_type") : getString("_UI_Product_type") + " " + + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Product.class)) + { + case CompanyPackage.PRODUCT__NAME: + case CompanyPackage.PRODUCT__VAT: + case CompanyPackage.PRODUCT__DESCRIPTION: + case CompanyPackage.PRODUCT__PRICE: + 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.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/PurchaseOrderItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/PurchaseOrderItemProvider.java new file mode 100644 index 0000000000..27ff2c4fbb --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/PurchaseOrderItemProvider.java @@ -0,0 +1,175 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import java.util.Collection; +import java.util.Date; +import java.util.List; + +/** + * This is the item provider adapter for a {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class PurchaseOrderItemProvider extends OrderItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public PurchaseOrderItemProvider(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); + + addDatePropertyDescriptor(object); + addSupplierPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Date feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addDatePropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_PurchaseOrder_date_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_PurchaseOrder_date_feature", "_UI_PurchaseOrder_type"), + CompanyPackage.Literals.PURCHASE_ORDER__DATE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, null)); + } + + /** + * This adds a property descriptor for the Supplier feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addSupplierPropertyDescriptor(Object object) + { + itemPropertyDescriptors + .add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_PurchaseOrder_supplier_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_PurchaseOrder_supplier_feature", + "_UI_PurchaseOrder_type"), CompanyPackage.Literals.PURCHASE_ORDER__SUPPLIER, true, false, true, null, + null, null)); + } + + /** + * This returns PurchaseOrder.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/PurchaseOrder")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + Date labelValue = ((PurchaseOrder)object).getDate(); + String label = labelValue == null ? null : labelValue.toString(); + return label == null || label.length() == 0 ? getString("_UI_PurchaseOrder_type") + : getString("_UI_PurchaseOrder_type") + " " + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(PurchaseOrder.class)) + { + case CompanyPackage.PURCHASE_ORDER__DATE: + 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); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/SalesOrderItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/SalesOrderItemProvider.java new file mode 100644 index 0000000000..fa43f961e5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/SalesOrderItemProvider.java @@ -0,0 +1,169 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.SalesOrder; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +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.examples.company.SalesOrder} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class SalesOrderItemProvider extends OrderItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public SalesOrderItemProvider(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); + + addIdPropertyDescriptor(object); + addCustomerPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Id feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addIdPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_SalesOrder_id_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_SalesOrder_id_feature", "_UI_SalesOrder_type"), + CompanyPackage.Literals.SALES_ORDER__ID, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, + null)); + } + + /** + * This adds a property descriptor for the Customer feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addCustomerPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_SalesOrder_customer_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_SalesOrder_customer_feature", "_UI_SalesOrder_type"), + CompanyPackage.Literals.SALES_ORDER__CUSTOMER, true, false, true, null, null, null)); + } + + /** + * This returns SalesOrder.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/SalesOrder")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + SalesOrder salesOrder = (SalesOrder)object; + return getString("_UI_SalesOrder_type") + " " + salesOrder.getId(); + } + + /** + * 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(SalesOrder.class)) + { + case CompanyPackage.SALES_ORDER__ID: + 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); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/SupplierItemProvider.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/SupplierItemProvider.java new file mode 100644 index 0000000000..684d5007b3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model.edit/src/org/eclipse/emf/cdo/examples/company/provider/SupplierItemProvider.java @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2004 - 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.examples.company.provider; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemColorProvider; +import org.eclipse.emf.edit.provider.IItemFontProvider; +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.ITableItemColorProvider; +import org.eclipse.emf.edit.provider.ITableItemFontProvider; +import org.eclipse.emf.edit.provider.ITableItemLabelProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +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.examples.company.Supplier} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class SupplierItemProvider extends AddressableItemProvider implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, + ITableItemLabelProvider, ITableItemColorProvider, ITableItemFontProvider, IItemColorProvider, IItemFontProvider +{ + /** + * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public SupplierItemProvider(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); + + addPurchaseOrdersPropertyDescriptor(object); + addPreferredPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Purchase Orders feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addPurchaseOrdersPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Supplier_purchaseOrders_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Supplier_purchaseOrders_feature", "_UI_Supplier_type"), + CompanyPackage.Literals.SUPPLIER__PURCHASE_ORDERS, true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Preferred feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addPreferredPropertyDescriptor(Object object) + { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_Supplier_preferred_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Supplier_preferred_feature", "_UI_Supplier_type"), + CompanyPackage.Literals.SUPPLIER__PREFERRED, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, null)); + } + + /** + * This returns Supplier.gif. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) + { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Supplier")); + } + + /** + * <!-- 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 + */ + @Override + public String getText(Object object) + { + String label = ((Supplier)object).getName(); + return label == null || label.length() == 0 ? getString("_UI_Supplier_type") : getString("_UI_Supplier_type") + " " + + label; + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating a + * viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) + { + updateChildren(notification); + + switch (notification.getFeatureID(Supplier.class)) + { + case CompanyPackage.SUPPLIER__PREFERRED: + 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); + } + +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.classpath b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.classpath new file mode 100644 index 0000000000..64c5e31b7a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.classpath @@ -0,0 +1,7 @@ +<?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"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.project b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.project new file mode 100644 index 0000000000..37eb5ddec8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.project @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.emf.cdo.examples.company</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.pde.api.tools.apiAnalysisBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.emf.cdo.releng.version.VersionBuilder</name> + <arguments> + <dictionary> + <key>release.path</key> + <value>/org.eclipse.emf.cdo.releng/release.xml</value> + </dictionary> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> + <nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/.api_filters b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/.api_filters new file mode 100644 index 0000000000..47fced87dc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/.api_filters @@ -0,0 +1,219 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<component id="org.eclipse.emf.cdo.examples.company" version="2"> + <resource path="src/org/eclipse/emf/cdo/examples/company/Addressable.java" type="org.eclipse.emf.cdo.examples.company.Addressable"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Addressable"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/Category.java" type="org.eclipse.emf.cdo.examples.company.Category"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Category"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/Company.java" type="org.eclipse.emf.cdo.examples.company.Company"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Company"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/CompanyFactory.java" type="org.eclipse.emf.cdo.examples.company.CompanyFactory"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.CompanyFactory"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/CompanyPackage.java" type="org.eclipse.emf.cdo.examples.company.CompanyPackage"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.CompanyPackage"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/Customer.java" type="org.eclipse.emf.cdo.examples.company.Customer"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Customer"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/Order.java" type="org.eclipse.emf.cdo.examples.company.Order"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Order"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/OrderDetail.java" type="org.eclipse.emf.cdo.examples.company.OrderDetail"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.OrderDetail"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/Product.java" type="org.eclipse.emf.cdo.examples.company.Product"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Product"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/PurchaseOrder.java" type="org.eclipse.emf.cdo.examples.company.PurchaseOrder"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.PurchaseOrder"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/SalesOrder.java" type="org.eclipse.emf.cdo.examples.company.SalesOrder"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.SalesOrder"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/Supplier.java" type="org.eclipse.emf.cdo.examples.company.Supplier"> + <filter id="405864542"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.Supplier"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/VAT.java" type="org.eclipse.emf.cdo.examples.company.VAT"> + <filter id="372310110"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.VAT"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/AddressableImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.AddressableImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.AddressableImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/CategoryImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.CategoryImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.CategoryImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/CompanyFactoryImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.CompanyFactoryImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.CompanyFactoryImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/CompanyImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.CompanyImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.CompanyImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/CompanyPackageImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/CustomerImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.CustomerImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.CustomerImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/OrderDetailImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/OrderImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.OrderImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.OrderImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/ProductImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.ProductImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.ProductImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/PurchaseOrderImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/SalesOrderImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/impl/SupplierImpl.java" type="org.eclipse.emf.cdo.examples.company.impl.SupplierImpl"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.impl.SupplierImpl"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/util/CompanyAdapterFactory.java" type="org.eclipse.emf.cdo.examples.company.util.CompanyAdapterFactory"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.util.CompanyAdapterFactory"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> + <resource path="src/org/eclipse/emf/cdo/examples/company/util/CompanySwitch.java" type="org.eclipse.emf.cdo.examples.company.util.CompanySwitch"> + <filter id="338755678"> + <message_arguments> + <message_argument value="org.eclipse.emf.cdo.examples.company.util.CompanySwitch"/> + <message_argument value="copyright"/> + </message_arguments> + </filter> + </resource> +</component> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..461c07441a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +encoding//model/company.genmodel=UTF-8 +encoding//model/org.eclipse.emf.cdo.defs.ecorediag=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..378912727b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,382 @@ +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.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.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.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.missingDeprecatedAnnotation=warning +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.nullReference=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.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +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.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_member=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.examples.installer/examples/model/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..4343e2f963 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.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 - 2012 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.examples.installer/examples/model/.settings/org.eclipse.ltk.core.refactoring.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000000..864e30fe5d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.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.examples.installer/examples/model/.settings/org.eclipse.mylyn.tasks.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000000..b050639a54 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.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.examples.installer/examples/model/.settings/org.eclipse.mylyn.team.ui.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000000..2f50f36c0c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.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.examples.installer/examples/model/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.pde.api.tools.prefs new file mode 100644 index 0000000000..f8d0a0660e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.pde.api.tools.prefs @@ -0,0 +1,94 @@ +#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=Ignore +LEAK_EXTEND=Warning +LEAK_FIELD_DECL=Warning +LEAK_IMPLEMENT=Warning +LEAK_METHOD_PARAM=Warning +LEAK_METHOD_RETURN_TYPE=Warning +METHOD_ELEMENT_TYPE_ADDED_RESTRICTIONS=Error +METHOD_ELEMENT_TYPE_ADDED_TYPE_PARAMETER=Error +METHOD_ELEMENT_TYPE_CHANGED_DECREASE_ACCESS=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_ABSTRACT_TO_ABSTRACT=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_FINAL_TO_FINAL=Error +METHOD_ELEMENT_TYPE_CHANGED_NON_STATIC_TO_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_STATIC_TO_NON_STATIC=Error +METHOD_ELEMENT_TYPE_CHANGED_VARARGS_TO_ARRAY=Error +METHOD_ELEMENT_TYPE_REMOVED_ANNOTATION_DEFAULT_VALUE=Error +METHOD_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error +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.examples.installer/examples/model/.settings/org.eclipse.pde.prefs b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000000..c6b96bb45e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/.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=1 +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.examples.installer/examples/model/META-INF/CDO.MF b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/META-INF/CDO.MF new file mode 100644 index 0000000000..bbfa1b0550 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/META-INF/CDO.MF @@ -0,0 +1 @@ +This is a marker file for bundles with CDO native models. diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..50ab946909 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.emf.cdo.examples.company; singleton:=true +Bundle-Version: 4.0.100.qualifier +Bundle-Name: %pluginName +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ClassPath: . +Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", + org.eclipse.emf.cdo;bundle-version="[4.0.0,5.0.0)";visibility:=reexport +Export-Package: org.eclipse.emf.cdo.examples.company;version="4.0.100", + org.eclipse.emf.cdo.examples.company.impl;version="4.0.100", + org.eclipse.emf.cdo.examples.company.util;version="4.0.100", + org.eclipse.emf.cdo.examples.company.validation;version="4.0.100" diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/about.html b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/about.html new file mode 100644 index 0000000000..d35d5aed64 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 5, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. +For purposes of the EPL, "Program" will mean the Content.</p> + +<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p> + +</body> +</html> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/build.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/build.properties new file mode 100644 index 0000000000..61060efc37 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/build.properties @@ -0,0 +1,25 @@ +# Copyright (c) 2004 - 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 + +# NLS_MESSAGEFORMAT_VAR + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html,\ + copyright.txt +jars.compile.order = . +source.. = src/ +output.. = bin/ +src.includes = about.html,\ + copyright.txt + +generateSourceReferences = true diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/copyright.txt b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/copyright.txt new file mode 100644 index 0000000000..0a0f67e6d7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/copyright.txt @@ -0,0 +1,8 @@ +Copyright (c) 2004 - 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
\ No newline at end of file diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.ecore b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.ecore new file mode 100644 index 0000000000..81045425fb --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.ecore @@ -0,0 +1,93 @@ +<?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="company" + nsURI="http://www.eclipse.org/emf/CDO/examples/company/1.0.0" nsPrefix="company"> + <eAnnotations source="teneo.jpa"> + <details key="value" value="@hbGenericGenerators({@GenericGenerator(name="system-uuid", strategy = "org.eclipse.emf.cdo.examples.hibernate.server.CDOExampleUUIDHexGenerator")})"/> + </eAnnotations> + <eClassifiers xsi:type="ecore:EClass" name="Addressable" abstract="true"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Company" eSuperTypes="#//Addressable"> + <eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1" + eType="#//Category" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="suppliers" upperBound="-1" + eType="#//Supplier" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="customers" upperBound="-1" + eType="#//Customer" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrders" upperBound="-1" + eType="#//PurchaseOrder" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="salesOrders" upperBound="-1" + eType="#//SalesOrder" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Supplier" eSuperTypes="#//Addressable"> + <eStructuralFeatures xsi:type="ecore:EReference" name="purchaseOrders" upperBound="-1" + eType="#//PurchaseOrder" eOpposite="#//PurchaseOrder/supplier"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="preferred" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" + defaultValueLiteral="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Customer" eSuperTypes="#//Addressable"> + <eStructuralFeatures xsi:type="ecore:EReference" name="salesOrders" upperBound="-1" + eType="#//SalesOrder" eOpposite="#//SalesOrder/customer"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Order"> + <eAnnotations source="teneo.jpa"> + <details key="value" value="@Entity(name="BaseOrder")"/> + </eAnnotations> + <eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" upperBound="-1" + eType="#//OrderDetail" containment="true" eOpposite="#//OrderDetail/order"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="OrderDetail"> + <eStructuralFeatures xsi:type="ecore:EReference" name="order" lowerBound="1" eType="#//Order" + eOpposite="#//Order/orderDetails"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="product" eType="#//Product" + eOpposite="#//Product/orderDetails"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="PurchaseOrder" eSuperTypes="#//Order"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="date" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="supplier" lowerBound="1" + eType="#//Supplier" eOpposite="#//Supplier/purchaseOrders"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="SalesOrder" eSuperTypes="#//Order"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="customer" lowerBound="1" + eType="#//Customer" eOpposite="#//Customer/salesOrders"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Category"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> + <eAnnotations source="teneo.jpa"> + <details key="value" value="@Id @GeneratedValue(generator="system-uuid")"/> + </eAnnotations> + </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1" + eType="#//Category" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="products" upperBound="-1" + eType="#//Product" containment="true"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="Product"> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> + <eAnnotations source="teneo.jpa"> + <details key="value" value="@Id"/> + </eAnnotations> + </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EReference" name="orderDetails" upperBound="-1" + eType="#//OrderDetail" eOpposite="#//OrderDetail/product"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="vat" eType="#//VAT" defaultValueLiteral="vat15"> + <eAnnotations source="teneo.jpa"> + <details key="value" value="@Basic(optional=false)
@Column(nullable=false)"/> + </eAnnotations> + </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" + transient="true"/> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> + </eClassifiers> + <eClassifiers xsi:type="ecore:EEnum" name="VAT"> + <eLiterals name="vat0"/> + <eLiterals name="vat7" value="7"/> + <eLiterals name="vat15" value="15"/> + </eClassifiers> +</ecore:EPackage> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.ecorediag b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.ecorediag new file mode 100644 index 0000000000..f738f582af --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.ecorediag @@ -0,0 +1,414 @@ +<?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="_pzz0sSkqEeCFv7at4UGIsQ" type="EcoreTools" name="company.ecorediag" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_JZV4ACkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_JZV4AykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_JZV4BCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_JZV4BSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_JZV4BikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_JZV4BykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_JZV4CCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_JZV4CSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_JZfpACkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_JZfpASkrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_JZV4ASkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Addressable"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JZV4AikrEeCFv7at4UGIsQ" x="408" y="30"/> + </children> + <children xmi:type="notation:Node" xmi:id="_L2AHsCkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_L2AHsykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_L2AHtCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_L2AHtSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_L2AHtikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_L2AHtykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_L2AHuCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_L2AHuSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_L2AHuikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_L2AHuykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_L2AHsSkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Company"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_L2AHsikrEeCFv7at4UGIsQ" x="415" y="189"/> + </children> + <children xmi:type="notation:Node" xmi:id="_McYyQCkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_McYyQykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_McYyRCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_McYyRSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_McYyRikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_McYyRykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_McYySCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_McYySSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_McYySikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_McYySykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_McYyQSkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Supplier"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_McYyQikrEeCFv7at4UGIsQ" x="77" y="185"/> + </children> + <children xmi:type="notation:Node" xmi:id="_M1hrACkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_M1hrAykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_M1hrBCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_M1hrBSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_M1hrBikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_M1hrBykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_M1hrCCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_M1hrCSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_M1hrCikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_M1hrCykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_M1hrASkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Customer"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_M1hrAikrEeCFv7at4UGIsQ" x="730" y="189"/> + </children> + <children xmi:type="notation:Node" xmi:id="_PPgaICkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_PPgaIykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_PPgaJCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_PPgaJSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_PPgaJikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_PPgaJykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_PPgaKCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_PPgaKSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_PPgaKikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_PPgaKykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_PPgaISkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Order"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PPgaIikrEeCFv7at4UGIsQ" x="545" y="585"/> + </children> + <children xmi:type="notation:Node" xmi:id="_PvycsCkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_Pv8NsCkrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_Pv8NsSkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Pv8NsikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Pv8NsykrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Pv8NtCkrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Pv8NtSkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Pv8NtikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Pv8NtykrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Pv8NuCkrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_PvycsSkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//OrderDetail"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PvycsikrEeCFv7at4UGIsQ" x="545" y="466"/> + </children> + <children xmi:type="notation:Node" xmi:id="_QLwnACkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_QLwnAykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_QLwnBCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_QLwnBSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_QLwnBikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_QLwnBykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_QLwnCCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_QLwnCSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_QLwnCikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_QLwnCykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_QLwnASkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//PurchaseOrder"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QLwnAikrEeCFv7at4UGIsQ" x="100" y="414"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Q38XkCkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_Q38XkykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_Q38XlCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Q38XlSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Q4GIkCkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Q4GIkSkrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Q4GIkikrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_Q4GIkykrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_Q4GIlCkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_Q4GIlSkrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_Q38XkSkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//SalesOrder"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Q38XkikrEeCFv7at4UGIsQ" x="730" y="410"/> + </children> + <children xmi:type="notation:Node" xmi:id="_gb-tMCkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_gb-tMykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_gb-tNCkrEeCFv7at4UGIsQ" type="5001"> + <children xmi:type="notation:Node" xmi:id="_WbzU0ClDEeCFv7at4UGIsQ" type="2001"> + <element xmi:type="ecore:EAttribute" href="company.ecore#//Product/name"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_WbzU0SlDEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_WbzU0ilDEeCFv7at4UGIsQ" type="2001"> + <element xmi:type="ecore:EAttribute" href="company.ecore#//Product/vat"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_WbzU0ylDEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_WbzU1ClDEeCFv7at4UGIsQ" type="2001"> + <element xmi:type="ecore:EAttribute" href="company.ecore#//Product/description"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_WbzU1SlDEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_rICTUClDEeCFv7at4UGIsQ" type="2001"> + <element xmi:type="ecore:EAttribute" href="company.ecore#//Product/price"/> + <layoutConstraint xmi:type="notation:Location" xmi:id="_rICTUSlDEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:DrawerStyle" xmi:id="_gb-tNSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_gb-tNikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_gb-tNykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_gb-tOCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_gb-tOSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_gb-tOikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_gb-tOykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_gb-tMSkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Product"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gb-tMikrEeCFv7at4UGIsQ" x="260" y="445"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g9mzkCkrEeCFv7at4UGIsQ" type="1001"> + <children xmi:type="notation:Node" xmi:id="_g9mzkykrEeCFv7at4UGIsQ" type="4001"/> + <children xmi:type="notation:Node" xmi:id="_g9mzlCkrEeCFv7at4UGIsQ" type="5001"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_g9mzlSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_g9mzlikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_g9mzlykrEeCFv7at4UGIsQ"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g9mzmCkrEeCFv7at4UGIsQ" type="5002"> + <styles xmi:type="notation:DrawerStyle" xmi:id="_g9mzmSkrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:SortingStyle" xmi:id="_g9mzmikrEeCFv7at4UGIsQ"/> + <styles xmi:type="notation:FilteringStyle" xmi:id="_g9mzmykrEeCFv7at4UGIsQ"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_g9mzkSkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10" fillColor="13761016" lineColor="8421504"/> + <element xmi:type="ecore:EClass" href="company.ecore#//Category"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_g9mzkikrEeCFv7at4UGIsQ" x="408" y="305"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_pzz0sikqEeCFv7at4UGIsQ"/> + <element xmi:type="ecore:EPackage" href="company.ecore#/"/> + <edges xmi:type="notation:Edge" xmi:id="_L2JRoCkrEeCFv7at4UGIsQ" type="3003" source="_L2AHsCkrEeCFv7at4UGIsQ" target="_JZV4ACkrEeCFv7at4UGIsQ"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_L2JRoSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_L2JRoikrEeCFv7at4UGIsQ" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_L2JRoykrEeCFv7at4UGIsQ" points="[-1, -20, -1, 126]$[-1, -113, -1, 33]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_McYyTCkrEeCFv7at4UGIsQ" type="3003" source="_McYyQCkrEeCFv7at4UGIsQ" target="_JZV4ACkrEeCFv7at4UGIsQ"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_McYyTSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_McYyTikrEeCFv7at4UGIsQ" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_McYyTykrEeCFv7at4UGIsQ" points="[0, -24, -298, 77]$[0, -55, -298, 46]$[288, -55, -10, 46]$[288, -96, -10, 5]"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_aSoJUCkrEeCFv7at4UGIsQ" id="(0.3706896551724138,0.9411764705882353)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_McYyUCkrEeCFv7at4UGIsQ" type="3002" source="_L2AHsCkrEeCFv7at4UGIsQ" target="_McYyQCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_McYyVCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_McYyVSkrEeCFv7at4UGIsQ" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_McYyVikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_McYyVykrEeCFv7at4UGIsQ" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_McYyUSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_McYyUikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Company/suppliers"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_McYyUykrEeCFv7at4UGIsQ" points="[-50, 0, 180, 0]$[-180, 0, 50, 0]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_M1rcACkrEeCFv7at4UGIsQ" type="3003" source="_M1hrACkrEeCFv7at4UGIsQ" target="_JZV4ACkrEeCFv7at4UGIsQ"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_M1rcASkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_M1rcAikrEeCFv7at4UGIsQ" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_M1rcAykrEeCFv7at4UGIsQ" points="[1, -20, 308, 84]$[1, -54, 308, 50]$[-290, -54, 17, 50]$[-290, -96, 17, 8]"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bGi5kCkrEeCFv7at4UGIsQ" id="(0.5775862068965517,0.9117647058823529)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_M1rcBCkrEeCFv7at4UGIsQ" type="3002" source="_L2AHsCkrEeCFv7at4UGIsQ" target="_M1hrACkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_M1rcCCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_M1rcCSkrEeCFv7at4UGIsQ" x="-10" y="-10"/> + </children> + <children xmi:type="notation:Node" xmi:id="_M1rcCikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_M1rcCykrEeCFv7at4UGIsQ" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_M1rcBSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_M1rcBikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Company/customers"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_M1rcBykrEeCFv7at4UGIsQ" points="[50, 0, -205, 0]$[205, 0, -50, 0]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_PwFXoCkrEeCFv7at4UGIsQ" type="3002" source="_PvycsCkrEeCFv7at4UGIsQ" target="_PPgaICkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_PwFXpCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_PwFXpSkrEeCFv7at4UGIsQ" x="-5" y="-26"/> + </children> + <children xmi:type="notation:Node" xmi:id="_PwFXpikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_PwFXpykrEeCFv7at4UGIsQ" x="-5" y="11"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_PwFXoSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_PwFXoikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//OrderDetail/order"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PwFXoykrEeCFv7at4UGIsQ" points="[0, 25, 2, -90]$[0, 95, 2, -20]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PwPIoikrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PwPIoykrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_PwFXqCkrEeCFv7at4UGIsQ" type="3002" source="_PPgaICkrEeCFv7at4UGIsQ" target="_PvycsCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_PwFXrCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_PwFXrSkrEeCFv7at4UGIsQ" y="41"/> + </children> + <children xmi:type="notation:Node" xmi:id="_PwFXrikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_PwFXrykrEeCFv7at4UGIsQ" y="-11"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_PwFXqSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_PwFXqikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Order/orderDetails"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PwFXqykrEeCFv7at4UGIsQ" points="[2, -20, 0, 95]$[2, -90, 0, 25]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bBrgUikuEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bBrgUykuEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_QL6YACkrEeCFv7at4UGIsQ" type="3002" source="_QLwnACkrEeCFv7at4UGIsQ" target="_McYyQCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_QL6YBCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_QL6YBSkrEeCFv7at4UGIsQ" x="10" y="-27"/> + </children> + <children xmi:type="notation:Node" xmi:id="_QL6YBikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_QL6YBykrEeCFv7at4UGIsQ" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_QL6YASkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_QL6YAikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//PurchaseOrder/supplier"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QL6YAykrEeCFv7at4UGIsQ" points="[-1, -24, 0, 205]$[-1, -204, 0, 25]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QMNS8ikrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QMNS8ykrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_QMDh8CkrEeCFv7at4UGIsQ" type="3003" source="_QLwnACkrEeCFv7at4UGIsQ" target="_PPgaICkrEeCFv7at4UGIsQ"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_QMDh8SkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_QMDh8ikrEeCFv7at4UGIsQ" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QMDh8ykrEeCFv7at4UGIsQ" points="[-43, 17, -413, -168]$[-43, 167, -413, -18]$[350, 167, -20, -18]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rirU0CkrEeCFv7at4UGIsQ" id="(0.8981481481481481,0.6046511627906976)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_qO6m4CkrEeCFv7at4UGIsQ" id="(0.20588235294117646,0.9302325581395349)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_QMDh9CkrEeCFv7at4UGIsQ" type="3002" source="_L2AHsCkrEeCFv7at4UGIsQ" target="_QLwnACkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_QMDh-CkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_QMDh-SkrEeCFv7at4UGIsQ" x="50" y="-52"/> + </children> + <children xmi:type="notation:Node" xmi:id="_QMDh-ikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_QMDh-ykrEeCFv7at4UGIsQ" x="35" y="-14"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_QMDh9SkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_QMDh9ikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Company/purchaseOrders"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QMDh9ykrEeCFv7at4UGIsQ" points="[-25, 21, 287, -208]$[-25, 52, 287, -177]$[-290, 52, 22, -177]$[-290, 205, 22, -24]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_QMDh_CkrEeCFv7at4UGIsQ" type="3002" source="_McYyQCkrEeCFv7at4UGIsQ" target="_QLwnACkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_QMDiACkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_QMDiASkrEeCFv7at4UGIsQ" x="12" y="51"/> + </children> + <children xmi:type="notation:Node" xmi:id="_QMDiAikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_QMDiAykrEeCFv7at4UGIsQ" x="-3" y="14"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_QMDh_SkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_QMDh_ikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Supplier/purchaseOrders"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QMDh_ykrEeCFv7at4UGIsQ" points="[0, 25, -1, -204]$[0, 205, -1, -24]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZMmOAikuEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZMmOAykuEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_Q4GImCkrEeCFv7at4UGIsQ" type="3002" source="_Q38XkCkrEeCFv7at4UGIsQ" target="_M1hrACkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_Q4GInCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Q4GInSkrEeCFv7at4UGIsQ" x="14" y="32"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Q4GInikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Q4GInykrEeCFv7at4UGIsQ" x="14" y="-11"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_Q4GImSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_Q4GImikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//SalesOrder/customer"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q4GImykrEeCFv7at4UGIsQ" points="[1, 0, -751, -210]$[702, 196, -50, -14]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q4PSgikrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q4PSgykrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_Q4GIoCkrEeCFv7at4UGIsQ" type="3003" source="_Q38XkCkrEeCFv7at4UGIsQ" target="_PPgaICkrEeCFv7at4UGIsQ"> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_Q4GIoSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_Q4GIoikrEeCFv7at4UGIsQ" fontName="Segoe UI"/> + <element xsi:nil="true"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q4GIoykrEeCFv7at4UGIsQ" points="[49, 27, 164, -161]$[49, 173, 164, -15]$[-85, 173, 30, -15]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_tZiv0CkrEeCFv7at4UGIsQ" id="(0.0,0.45098039215686275)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_szdnQCkrEeCFv7at4UGIsQ" id="(0.7058823529411765,0.8604651162790697)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_Q4GIpCkrEeCFv7at4UGIsQ" type="3002" source="_L2AHsCkrEeCFv7at4UGIsQ" target="_Q38XkCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_Q4GIqCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Q4GIqSkrEeCFv7at4UGIsQ" x="45" y="40"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Q4GIqikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Q4GIqykrEeCFv7at4UGIsQ" x="30" y="16"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_Q4GIpSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_Q4GIpikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Company/salesOrders"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q4GIpykrEeCFv7at4UGIsQ" points="[25, 21, -290, -204]$[25, 51, -290, -174]$[290, 51, -25, -174]$[290, 201, -25, -24]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_Q4GIrCkrEeCFv7at4UGIsQ" type="3002" source="_M1hrACkrEeCFv7at4UGIsQ" target="_Q38XkCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_Q4GIsCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Q4GIsSkrEeCFv7at4UGIsQ" x="10" y="-40"/> + </children> + <children xmi:type="notation:Node" xmi:id="_Q4GIsikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_Q4GIsykrEeCFv7at4UGIsQ" x="-5" y="-14"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_Q4GIrSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_Q4GIrikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Customer/salesOrders"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q4GIrykrEeCFv7at4UGIsQ" points="[-50, -14, 702, 196]$[-751, -210, 1, 0]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q4PSgCkrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q4PSgSkrEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_gb-tQikrEeCFv7at4UGIsQ" type="3002" source="_gb-tMCkrEeCFv7at4UGIsQ" target="_PvycsCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_gcIeMCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_gcIeMSkrEeCFv7at4UGIsQ" x="-18" y="-12"/> + </children> + <children xmi:type="notation:Node" xmi:id="_gcIeMikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_gcIeMykrEeCFv7at4UGIsQ" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_gb-tQykrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_gb-tRCkrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Product/orderDetails"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gb-tRSkrEeCFv7at4UGIsQ" points="[73, -1, -191, 4]$[212, -1, -52, 4]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_wsgBcilDEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_wsgBcylDEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_gcIeNCkrEeCFv7at4UGIsQ" type="3002" source="_PvycsCkrEeCFv7at4UGIsQ" target="_gb-tMCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_gcIeOCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_gcIeOSkrEeCFv7at4UGIsQ" x="-4" y="-12"/> + </children> + <children xmi:type="notation:Node" xmi:id="_gcIeOikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_gcIeOykrEeCFv7at4UGIsQ" x="10" y="10"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_gcIeNSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_gcIeNikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//OrderDetail/product"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gcIeNykrEeCFv7at4UGIsQ" points="[-52, 4, 212, -1]$[-191, 4, 73, -1]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_TGWogCkuEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_TGWogSkuEeCFv7at4UGIsQ" id="(0.5,0.5)"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_g9wkkCkrEeCFv7at4UGIsQ" type="3002" source="_g9mzkCkrEeCFv7at4UGIsQ" target="_g9mzkCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_g9wklCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g9wklSkrEeCFv7at4UGIsQ" x="9" y="-35"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g9wklikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g9wklykrEeCFv7at4UGIsQ" x="9" y="17"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_g9wkkSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_g9wkkikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Category/categories"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_g9wkkykrEeCFv7at4UGIsQ" points="[57, 10, 57, 10]$[86, 10, 86, 10]$[86, 61, 86, 61]$[30, 61, 30, 61]$[30, 25, 30, 25]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_g9wkmCkrEeCFv7at4UGIsQ" type="3002" source="_g9mzkCkrEeCFv7at4UGIsQ" target="_gb-tMCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_g9wknCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g9wknSkrEeCFv7at4UGIsQ" x="7" y="-34"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g9wknikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g9wknykrEeCFv7at4UGIsQ" x="7" y="13"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_g9wkmSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_g9wkmikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Category/products"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_g9wkmykrEeCFv7at4UGIsQ" points="[-50, 0, 82, -161]$[-133, 0, -1, -161]$[-133, 120, -1, -41]"/> + </edges> + <edges xmi:type="notation:Edge" xmi:id="_g9wkoCkrEeCFv7at4UGIsQ" type="3002" source="_L2AHsCkrEeCFv7at4UGIsQ" target="_g9mzkCkrEeCFv7at4UGIsQ"> + <children xmi:type="notation:Node" xmi:id="_g9wkpCkrEeCFv7at4UGIsQ" type="4011"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g9wkpSkrEeCFv7at4UGIsQ" x="-6" y="-37"/> + </children> + <children xmi:type="notation:Node" xmi:id="_g9wkpikrEeCFv7at4UGIsQ" type="4012"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_g9wkpykrEeCFv7at4UGIsQ" x="-6" y="14"/> + </children> + <styles xmi:type="notation:ConnectorStyle" xmi:id="_g9wkoSkrEeCFv7at4UGIsQ" routing="Rectilinear" lineColor="4210752"/> + <styles xmi:type="notation:FontStyle" xmi:id="_g9wkoikrEeCFv7at4UGIsQ" fontColor="4210752" fontName="Segoe UI" fontHeight="10"/> + <element xmi:type="ecore:EReference" href="company.ecore#//Company/categories"/> + <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_g9wkoykrEeCFv7at4UGIsQ" points="[8, 3, 3, -135]$[8, 118, 3, -20]"/> + <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_6xS0ECkrEeCFv7at4UGIsQ" id="(0.45098039215686275,0.9302325581395349)"/> + </edges> +</notation:Diagram> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.genmodel b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.genmodel new file mode 100644 index 0000000000..67010a05a9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.genmodel @@ -0,0 +1,72 @@ +<?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.examples.company/src" creationIcons="false" + editDirectory="/org.eclipse.emf.cdo.examples.company.edit/src" editorDirectory="" + modelPluginID="org.eclipse.emf.cdo.examples.company" modelName="Company" editPluginClass="org.eclipse.emf.cdo.examples.company.provider.CompanyEditPlugin" + editorPluginClass="" updateClasspath="false" rootExtendsClass="org.eclipse.emf.internal.cdo.CDOObjectImpl" + reflectiveDelegation="true" codeFormatting="true" testsDirectory="" testSuiteClass="org.eclipse.emf.cdo.examples.company.tests.CompanyAllTests" + importerID="org.eclipse.emf.importer.ecore" featureDelegation="Reflective" complianceLevel="5.0" + providerRootExtendsClass="org.eclipse.emf.cdo.edit.CDOItemProviderAdapter" editPluginID="org.eclipse.emf.cdo.examples.company.edit" + editorPluginID="org.eclipse.emf.cdo.examples.company.editor" testsPluginID="org.eclipse.emf.cdo.examples.company.editor" + optimizedHasChildren="true" tableProviders="true" colorProviders="true" fontProviders="true" + runtimeVersion="2.6"> + <foreignModel>company.ecore</foreignModel> + <modelPluginVariables>CDO=org.eclipse.emf.cdo</modelPluginVariables> + <genPackages prefix="Company" basePackage="org.eclipse.emf.cdo.examples" disposableProviderFactory="true" + extensibleProviderFactory="true" childCreationExtenders="true" ecorePackage="company.ecore#/"> + <genEnums typeSafeEnumCompatible="false" ecoreEnum="company.ecore#//VAT"> + <genEnumLiterals ecoreEnumLiteral="company.ecore#//VAT/vat0"/> + <genEnumLiterals ecoreEnumLiteral="company.ecore#//VAT/vat7"/> + <genEnumLiterals ecoreEnumLiteral="company.ecore#//VAT/vat15"/> + </genEnums> + <genClasses image="false" ecoreClass="company.ecore#//Addressable"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Addressable/name"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Addressable/street"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Addressable/city"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//Company"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Company/categories"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Company/suppliers"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Company/customers"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Company/purchaseOrders"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Company/salesOrders"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//Supplier"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference company.ecore#//Supplier/purchaseOrders"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Supplier/preferred"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//Customer"> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference company.ecore#//Customer/salesOrders"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//Order"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Order/orderDetails"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//OrderDetail"> + <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference company.ecore#//OrderDetail/order"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference company.ecore#//OrderDetail/product"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//OrderDetail/price"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//PurchaseOrder"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//PurchaseOrder/date"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference company.ecore#//PurchaseOrder/supplier"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//SalesOrder"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//SalesOrder/id"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference company.ecore#//SalesOrder/customer"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//Category"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Category/name"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Category/categories"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference company.ecore#//Category/products"/> + </genClasses> + <genClasses ecoreClass="company.ecore#//Product"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Product/name"/> + <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference company.ecore#//Product/orderDetails"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Product/vat"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Product/description"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute company.ecore#//Product/price"/> + </genClasses> + </genPackages> +</genmodel:GenModel> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.png b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.png Binary files differnew file mode 100644 index 0000000000..f75666810d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/model/company.png diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/plugin.properties b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/plugin.properties new file mode 100644 index 0000000000..b731c24f87 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/plugin.properties @@ -0,0 +1,11 @@ +# Copyright (c) 2004 - 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 + +pluginName = CDO Model Repository Examples Company +providerName = Eclipse Modeling Project diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/plugin.xml b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/plugin.xml new file mode 100644 index 0000000000..4872b7b7e2 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/plugin.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<!-- + Copyright (c) 2004 - 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"> + <package + uri = "http://www.eclipse.org/emf/CDO/examples/company/1.0.0" + class = "org.eclipse.emf.cdo.examples.company.CompanyPackage" + genModel = "model/company.genmodel"/> + </extension> + + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Addressable.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Addressable.java new file mode 100644 index 0000000000..64c0fcbbf8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Addressable.java @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Addressable</b></em>'. + * + * @since 4.0 <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Addressable#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Addressable#getStreet <em>Street</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Addressable#getCity <em>City</em>}</li> + * </ul> + * </p> + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getAddressable() + * @model abstract="true" + * @generated + */ +public interface Addressable extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getAddressable_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Addressable#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Street</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Street</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Street</em>' attribute. + * @see #setStreet(String) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getAddressable_Street() + * @model + * @generated + */ + String getStreet(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Addressable#getStreet <em>Street</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Street</em>' attribute. + * @see #getStreet() + * @generated + */ + void setStreet(String value); + + /** + * Returns the value of the '<em><b>City</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>City</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>City</em>' attribute. + * @see #setCity(String) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getAddressable_City() + * @model + * @generated + */ + String getCity(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Addressable#getCity <em>City</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>City</em>' attribute. + * @see #getCity() + * @generated + */ + void setCity(String value); + +} // Addressable diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Category.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Category.java new file mode 100644 index 0000000000..60e181ca3a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Category.java @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Category</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Category#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Category#getCategories <em>Categories</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Category#getProducts <em>Products</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCategory() + * @model + * @generated + */ +public interface Category extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCategory_Name() + * @model annotation="teneo.jpa value='@Id @GeneratedValue(generator=\"system-uuid\")'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Category#getName <em>Name</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Categories</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.Category}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Categories</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>Categories</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCategory_Categories() + * @model containment="true" + * @generated + */ + EList<Category> getCategories(); + + /** + * Returns the value of the '<em><b>Products</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.Product}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Products</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>Products</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCategory_Products() + * @model containment="true" + * @generated + */ + EList<Product> getProducts(); + +} // Category diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Company.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Company.java new file mode 100644 index 0000000000..78b86a8aa6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Company.java @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Company</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Company#getCategories <em>Categories</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Company#getSuppliers <em>Suppliers</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Company#getCustomers <em>Customers</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Company#getPurchaseOrders <em>Purchase Orders</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Company#getSalesOrders <em>Sales Orders</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCompany() + * @model + * @generated + */ +public interface Company extends Addressable +{ + /** + * Returns the value of the '<em><b>Categories</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.Category}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Categories</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>Categories</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCompany_Categories() + * @model containment="true" + * @generated + */ + EList<Category> getCategories(); + + /** + * Returns the value of the '<em><b>Suppliers</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.Supplier}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Suppliers</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>Suppliers</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCompany_Suppliers() + * @model containment="true" + * @generated + */ + EList<Supplier> getSuppliers(); + + /** + * Returns the value of the '<em><b>Purchase Orders</b></em>' containment reference list. The list contents are of + * type {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Purchase Orders</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>Purchase Orders</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCompany_PurchaseOrders() + * @model containment="true" + * @generated + */ + EList<PurchaseOrder> getPurchaseOrders(); + + /** + * Returns the value of the '<em><b>Customers</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.Customer}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Customers</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>Customers</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCompany_Customers() + * @model containment="true" + * @generated + */ + EList<Customer> getCustomers(); + + /** + * Returns the value of the '<em><b>Sales Orders</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.SalesOrder}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sales Orders</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>Sales Orders</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCompany_SalesOrders() + * @model containment="true" + * @generated + */ + EList<SalesOrder> getSalesOrders(); + +} // Company diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/CompanyFactory.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/CompanyFactory.java new file mode 100644 index 0000000000..3826e09c27 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/CompanyFactory.java @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +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.examples.company.CompanyPackage + * @generated + */ +public interface CompanyFactory extends EFactory +{ + /** + * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + CompanyFactory eINSTANCE = org.eclipse.emf.cdo.examples.company.impl.CompanyFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Supplier</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Supplier</em>'. + * @generated + */ + Supplier createSupplier(); + + /** + * Returns a new object of class '<em>Purchase Order</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Purchase Order</em>'. + * @generated + */ + PurchaseOrder createPurchaseOrder(); + + /** + * Returns a new object of class '<em>Order Detail</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Order Detail</em>'. + * @generated + */ + OrderDetail createOrderDetail(); + + /** + * Returns a new object of class '<em>Category</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Category</em>'. + * @generated + */ + Category createCategory(); + + /** + * Returns a new object of class '<em>Product</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Product</em>'. + * @generated + */ + Product createProduct(); + + /** + * Returns a new object of class '<em>Company</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Company</em>'. + * @generated + */ + Company createCompany(); + + /** + * Returns a new object of class '<em>Customer</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Customer</em>'. + * @generated + */ + Customer createCustomer(); + + /** + * Returns a new object of class '<em>Order</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Order</em>'. + * @generated + */ + Order createOrder(); + + /** + * Returns a new object of class '<em>Sales Order</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>Sales Order</em>'. + * @generated + */ + SalesOrder createSalesOrder(); + + /** + * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the package supported by this factory. + * @generated + */ + CompanyPackage getCompanyPackage(); + +} // CompanyFactory diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/CompanyPackage.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/CompanyPackage.java new file mode 100644 index 0000000000..36cee1f303 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/CompanyPackage.java @@ -0,0 +1,1355 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +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 enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyFactory + * @model kind="package" annotation="teneo.jpa value='@hbGenericGenerators( {@GenericGenerator(name=\"system-uuid\", + * strategy = + * \"org.eclipse.emf.cdo.examples.hibernate.server.CDOExampleUUIDHexGenerator\")})'" + * @generated + */ +public interface CompanyPackage extends EPackage +{ + /** + * The package name. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + String eNAME = "company"; + + /** + * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/examples/company/1.0.0"; + + /** + * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + String eNS_PREFIX = "company"; + + /** + * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + CompanyPackage eINSTANCE = org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.AddressableImpl <em>Addressable</em>}' + * class. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @see org.eclipse.emf.cdo.examples.company.impl.AddressableImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getAddressable() + * @generated + */ + int ADDRESSABLE = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + * @ordered + */ + int ADDRESSABLE__NAME = 0; + + /** + * The feature id for the '<em><b>Street</b></em>' attribute. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + * @ordered + */ + int ADDRESSABLE__STREET = 1; + + /** + * The feature id for the '<em><b>City</b></em>' attribute. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + * @ordered + */ + int ADDRESSABLE__CITY = 2; + + /** + * The number of structural features of the '<em>Addressable</em>' class. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + * @ordered + */ + int ADDRESSABLE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.SupplierImpl <em>Supplier</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.SupplierImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getSupplier() + * @generated + */ + int SUPPLIER = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl + * <em>Purchase Order</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getPurchaseOrder() + * @generated + */ + int PURCHASE_ORDER = 6; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl <em>Order Detail</em>} + * ' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getOrderDetail() + * @generated + */ + int ORDER_DETAIL = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.CategoryImpl <em>Category</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.CategoryImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getCategory() + * @generated + */ + int CATEGORY = 8; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl <em>Company</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getCompany() + * @generated + */ + int COMPANY = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__NAME = ADDRESSABLE__NAME; + + /** + * The feature id for the '<em><b>Street</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__STREET = ADDRESSABLE__STREET; + + /** + * The feature id for the '<em><b>City</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__CITY = ADDRESSABLE__CITY; + + /** + * The feature id for the '<em><b>Categories</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__CATEGORIES = ADDRESSABLE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Suppliers</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__SUPPLIERS = ADDRESSABLE_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Customers</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__CUSTOMERS = ADDRESSABLE_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Purchase Orders</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__PURCHASE_ORDERS = ADDRESSABLE_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Sales Orders</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY__SALES_ORDERS = ADDRESSABLE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Company</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int COMPANY_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUPPLIER__NAME = ADDRESSABLE__NAME; + + /** + * The feature id for the '<em><b>Street</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUPPLIER__STREET = ADDRESSABLE__STREET; + + /** + * The feature id for the '<em><b>City</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUPPLIER__CITY = ADDRESSABLE__CITY; + + /** + * The feature id for the '<em><b>Purchase Orders</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int SUPPLIER__PURCHASE_ORDERS = ADDRESSABLE_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Preferred</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUPPLIER__PREFERRED = ADDRESSABLE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Supplier</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SUPPLIER_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.CustomerImpl <em>Customer</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.CustomerImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getCustomer() + * @generated + */ + int CUSTOMER = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CUSTOMER__NAME = ADDRESSABLE__NAME; + + /** + * The feature id for the '<em><b>Street</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CUSTOMER__STREET = ADDRESSABLE__STREET; + + /** + * The feature id for the '<em><b>City</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CUSTOMER__CITY = ADDRESSABLE__CITY; + + /** + * The feature id for the '<em><b>Sales Orders</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CUSTOMER__SALES_ORDERS = ADDRESSABLE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Customer</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CUSTOMER_FEATURE_COUNT = ADDRESSABLE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.OrderImpl <em>Order</em>}' class. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.OrderImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getOrder() + * @generated + */ + int ORDER = 4; + + /** + * The feature id for the '<em><b>Order Details</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int ORDER__ORDER_DETAILS = 0; + + /** + * The number of structural features of the '<em>Order</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ORDER_FEATURE_COUNT = 1; + + /** + * The feature id for the '<em><b>Order</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ORDER_DETAIL__ORDER = 0; + + /** + * The feature id for the '<em><b>Product</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ORDER_DETAIL__PRODUCT = 1; + + /** + * The feature id for the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int ORDER_DETAIL__PRICE = 2; + + /** + * The number of structural features of the '<em>Order Detail</em>' class. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int ORDER_DETAIL_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl <em>Sales Order</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getSalesOrder() + * @generated + */ + int SALES_ORDER = 7; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl <em>Product</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.ProductImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getProduct() + * @generated + */ + int PRODUCT = 9; + + /** + * The feature id for the '<em><b>Order Details</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int PURCHASE_ORDER__ORDER_DETAILS = ORDER__ORDER_DETAILS; + + /** + * The feature id for the '<em><b>Date</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PURCHASE_ORDER__DATE = ORDER_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Supplier</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PURCHASE_ORDER__SUPPLIER = ORDER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Purchase Order</em>' class. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int PURCHASE_ORDER_FEATURE_COUNT = ORDER_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Order Details</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int SALES_ORDER__ORDER_DETAILS = ORDER__ORDER_DETAILS; + + /** + * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SALES_ORDER__ID = ORDER_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Customer</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int SALES_ORDER__CUSTOMER = ORDER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Sales Order</em>' class. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int SALES_ORDER_FEATURE_COUNT = ORDER_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CATEGORY__NAME = 0; + + /** + * The feature id for the '<em><b>Categories</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int CATEGORY__CATEGORIES = 1; + + /** + * The feature id for the '<em><b>Products</b></em>' containment reference list. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + * @ordered + */ + int CATEGORY__PRODUCTS = 2; + + /** + * The number of structural features of the '<em>Category</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int CATEGORY_FEATURE_COUNT = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PRODUCT__NAME = 0; + + /** + * The feature id for the '<em><b>Order Details</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int PRODUCT__ORDER_DETAILS = 1; + + /** + * The feature id for the '<em><b>Vat</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PRODUCT__VAT = 2; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PRODUCT__DESCRIPTION = 3; + + /** + * The feature id for the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + * @ordered + */ + int PRODUCT__PRICE = 4; + + /** + * The number of structural features of the '<em>Product</em>' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int PRODUCT_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.examples.company.VAT <em>VAT</em>}' enum. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.VAT + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getVAT() + * @generated + */ + int VAT = 10; + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Addressable <em>Addressable</em>}'. + * <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @return the meta object for class '<em>Addressable</em>'. + * @see org.eclipse.emf.cdo.examples.company.Addressable + * @generated + */ + EClass getAddressable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Addressable#getName + * <em>Name</em>}'. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.cdo.examples.company.Addressable#getName() + * @see #getAddressable() + * @generated + */ + EAttribute getAddressable_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Addressable#getStreet + * <em>Street</em>}'. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @return the meta object for the attribute '<em>Street</em>'. + * @see org.eclipse.emf.cdo.examples.company.Addressable#getStreet() + * @see #getAddressable() + * @generated + */ + EAttribute getAddressable_Street(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Addressable#getCity + * <em>City</em>}'. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @return the meta object for the attribute '<em>City</em>'. + * @see org.eclipse.emf.cdo.examples.company.Addressable#getCity() + * @see #getAddressable() + * @generated + */ + EAttribute getAddressable_City(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Supplier <em>Supplier</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Supplier</em>'. + * @see org.eclipse.emf.cdo.examples.company.Supplier + * @generated + */ + EClass getSupplier(); + + /** + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Supplier#getPurchaseOrders <em>Purchase Orders</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Purchase Orders</em>'. + * @see org.eclipse.emf.cdo.examples.company.Supplier#getPurchaseOrders() + * @see #getSupplier() + * @generated + */ + EReference getSupplier_PurchaseOrders(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Supplier#isPreferred + * <em>Preferred</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Preferred</em>'. + * @see org.eclipse.emf.cdo.examples.company.Supplier#isPreferred() + * @see #getSupplier() + * @generated + */ + EAttribute getSupplier_Preferred(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder + * <em>Purchase Order</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Purchase Order</em>'. + * @see org.eclipse.emf.cdo.examples.company.PurchaseOrder + * @generated + */ + EClass getPurchaseOrder(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getDate + * <em>Date</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Date</em>'. + * @see org.eclipse.emf.cdo.examples.company.PurchaseOrder#getDate() + * @see #getPurchaseOrder() + * @generated + */ + EAttribute getPurchaseOrder_Date(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getSupplier + * <em>Supplier</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Supplier</em>'. + * @see org.eclipse.emf.cdo.examples.company.PurchaseOrder#getSupplier() + * @see #getPurchaseOrder() + * @generated + */ + EReference getPurchaseOrder_Supplier(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.OrderDetail <em>Order Detail</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Order Detail</em>'. + * @see org.eclipse.emf.cdo.examples.company.OrderDetail + * @generated + */ + EClass getOrderDetail(); + + /** + * Returns the meta object for the container reference ' + * {@link org.eclipse.emf.cdo.examples.company.OrderDetail#getOrder <em>Order</em>}'. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @return the meta object for the container reference '<em>Order</em>'. + * @see org.eclipse.emf.cdo.examples.company.OrderDetail#getOrder() + * @see #getOrderDetail() + * @generated + */ + EReference getOrderDetail_Order(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getProduct + * <em>Product</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Product</em>'. + * @see org.eclipse.emf.cdo.examples.company.OrderDetail#getProduct() + * @see #getOrderDetail() + * @generated + */ + EReference getOrderDetail_Product(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getPrice + * <em>Price</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Price</em>'. + * @see org.eclipse.emf.cdo.examples.company.OrderDetail#getPrice() + * @see #getOrderDetail() + * @generated + */ + EAttribute getOrderDetail_Price(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.cdo.examples.company.VAT <em>VAT</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for enum '<em>VAT</em>'. + * @see org.eclipse.emf.cdo.examples.company.VAT + * @generated + */ + EEnum getVAT(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Category <em>Category</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Category</em>'. + * @see org.eclipse.emf.cdo.examples.company.Category + * @generated + */ + EClass getCategory(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Category#getName + * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.cdo.examples.company.Category#getName() + * @see #getCategory() + * @generated + */ + EAttribute getCategory_Name(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Category#getCategories <em>Categories</em>}'. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Categories</em>'. + * @see org.eclipse.emf.cdo.examples.company.Category#getCategories() + * @see #getCategory() + * @generated + */ + EReference getCategory_Categories(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Category#getProducts <em>Products</em>}'. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Products</em>'. + * @see org.eclipse.emf.cdo.examples.company.Category#getProducts() + * @see #getCategory() + * @generated + */ + EReference getCategory_Products(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Product <em>Product</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Product</em>'. + * @see org.eclipse.emf.cdo.examples.company.Product + * @generated + */ + EClass getProduct(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Product#getName + * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.cdo.examples.company.Product#getName() + * @see #getProduct() + * @generated + */ + EAttribute getProduct_Name(); + + /** + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Product#getOrderDetails <em>Order Details</em>}'. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Order Details</em>'. + * @see org.eclipse.emf.cdo.examples.company.Product#getOrderDetails() + * @see #getProduct() + * @generated + */ + EReference getProduct_OrderDetails(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Product#getVat <em>Vat</em>} + * '. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Vat</em>'. + * @see org.eclipse.emf.cdo.examples.company.Product#getVat() + * @see #getProduct() + * @generated + */ + EAttribute getProduct_Vat(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Product#getDescription + * <em>Description</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.eclipse.emf.cdo.examples.company.Product#getDescription() + * @see #getProduct() + * @generated + */ + EAttribute getProduct_Description(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.Product#getPrice + * <em>Price</em>}'. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @return the meta object for the attribute '<em>Price</em>'. + * @see org.eclipse.emf.cdo.examples.company.Product#getPrice() + * @see #getProduct() + * @generated + */ + EAttribute getProduct_Price(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Company <em>Company</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Company</em>'. + * @see org.eclipse.emf.cdo.examples.company.Company + * @generated + */ + EClass getCompany(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Company#getCategories <em>Categories</em>}'. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Categories</em>'. + * @see org.eclipse.emf.cdo.examples.company.Company#getCategories() + * @see #getCompany() + * @generated + */ + EReference getCompany_Categories(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Company#getSuppliers <em>Suppliers</em>}'. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Suppliers</em>'. + * @see org.eclipse.emf.cdo.examples.company.Company#getSuppliers() + * @see #getCompany() + * @generated + */ + EReference getCompany_Suppliers(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Company#getPurchaseOrders <em>Purchase Orders</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Purchase Orders</em>'. + * @see org.eclipse.emf.cdo.examples.company.Company#getPurchaseOrders() + * @see #getCompany() + * @generated + */ + EReference getCompany_PurchaseOrders(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Company#getCustomers <em>Customers</em>}'. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Customers</em>'. + * @see org.eclipse.emf.cdo.examples.company.Company#getCustomers() + * @see #getCompany() + * @generated + */ + EReference getCompany_Customers(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Company#getSalesOrders <em>Sales Orders</em>}'. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Sales Orders</em>'. + * @see org.eclipse.emf.cdo.examples.company.Company#getSalesOrders() + * @see #getCompany() + * @generated + */ + EReference getCompany_SalesOrders(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Customer <em>Customer</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Customer</em>'. + * @see org.eclipse.emf.cdo.examples.company.Customer + * @generated + */ + EClass getCustomer(); + + /** + * Returns the meta object for the reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Customer#getSalesOrders <em>Sales Orders</em>}'. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @return the meta object for the reference list '<em>Sales Orders</em>'. + * @see org.eclipse.emf.cdo.examples.company.Customer#getSalesOrders() + * @see #getCustomer() + * @generated + */ + EReference getCustomer_SalesOrders(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.Order <em>Order</em>}'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Order</em>'. + * @see org.eclipse.emf.cdo.examples.company.Order + * @generated + */ + EClass getOrder(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.examples.company.Order#getOrderDetails <em>Order Details</em>}'. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @return the meta object for the containment reference list '<em>Order Details</em>'. + * @see org.eclipse.emf.cdo.examples.company.Order#getOrderDetails() + * @see #getOrder() + * @generated + */ + EReference getOrder_OrderDetails(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.examples.company.SalesOrder <em>Sales Order</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for class '<em>Sales Order</em>'. + * @see org.eclipse.emf.cdo.examples.company.SalesOrder + * @generated + */ + EClass getSalesOrder(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.examples.company.SalesOrder#getId + * <em>Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the attribute '<em>Id</em>'. + * @see org.eclipse.emf.cdo.examples.company.SalesOrder#getId() + * @see #getSalesOrder() + * @generated + */ + EAttribute getSalesOrder_Id(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.examples.company.SalesOrder#getCustomer + * <em>Customer</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the reference '<em>Customer</em>'. + * @see org.eclipse.emf.cdo.examples.company.SalesOrder#getCustomer() + * @see #getSalesOrder() + * @generated + */ + EReference getSalesOrder_Customer(); + + /** + * 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 + */ + CompanyFactory getCompanyFactory(); + + /** + * <!-- 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 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.examples.company.impl.AddressableImpl + * <em>Addressable</em>}' class. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @see org.eclipse.emf.cdo.examples.company.impl.AddressableImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getAddressable() + * @generated + */ + EClass ADDRESSABLE = eINSTANCE.getAddressable(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + */ + EAttribute ADDRESSABLE__NAME = eINSTANCE.getAddressable_Name(); + + /** + * The meta object literal for the '<em><b>Street</b></em>' attribute feature. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + */ + EAttribute ADDRESSABLE__STREET = eINSTANCE.getAddressable_Street(); + + /** + * The meta object literal for the '<em><b>City</b></em>' attribute feature. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + */ + EAttribute ADDRESSABLE__CITY = eINSTANCE.getAddressable_City(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.SupplierImpl <em>Supplier</em>} + * ' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.SupplierImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getSupplier() + * @generated + */ + EClass SUPPLIER = eINSTANCE.getSupplier(); + + /** + * The meta object literal for the '<em><b>Purchase Orders</b></em>' reference list feature. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference SUPPLIER__PURCHASE_ORDERS = eINSTANCE.getSupplier_PurchaseOrders(); + + /** + * The meta object literal for the '<em><b>Preferred</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute SUPPLIER__PREFERRED = eINSTANCE.getSupplier_Preferred(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl + * <em>Purchase Order</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getPurchaseOrder() + * @generated + */ + EClass PURCHASE_ORDER = eINSTANCE.getPurchaseOrder(); + + /** + * The meta object literal for the '<em><b>Date</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute PURCHASE_ORDER__DATE = eINSTANCE.getPurchaseOrder_Date(); + + /** + * The meta object literal for the '<em><b>Supplier</b></em>' reference feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EReference PURCHASE_ORDER__SUPPLIER = eINSTANCE.getPurchaseOrder_Supplier(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl + * <em>Order Detail</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getOrderDetail() + * @generated + */ + EClass ORDER_DETAIL = eINSTANCE.getOrderDetail(); + + /** + * The meta object literal for the '<em><b>Order</b></em>' container reference feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EReference ORDER_DETAIL__ORDER = eINSTANCE.getOrderDetail_Order(); + + /** + * The meta object literal for the '<em><b>Product</b></em>' reference feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EReference ORDER_DETAIL__PRODUCT = eINSTANCE.getOrderDetail_Product(); + + /** + * The meta object literal for the '<em><b>Price</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute ORDER_DETAIL__PRICE = eINSTANCE.getOrderDetail_Price(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.VAT <em>VAT</em>}' enum. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.VAT + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getVAT() + * @generated + */ + EEnum VAT = eINSTANCE.getVAT(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.CategoryImpl <em>Category</em>} + * ' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.CategoryImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getCategory() + * @generated + */ + EClass CATEGORY = eINSTANCE.getCategory(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute CATEGORY__NAME = eINSTANCE.getCategory_Name(); + + /** + * The meta object literal for the '<em><b>Categories</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference CATEGORY__CATEGORIES = eINSTANCE.getCategory_Categories(); + + /** + * The meta object literal for the '<em><b>Products</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference CATEGORY__PRODUCTS = eINSTANCE.getCategory_Products(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl <em>Product</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.ProductImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getProduct() + * @generated + */ + EClass PRODUCT = eINSTANCE.getProduct(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute PRODUCT__NAME = eINSTANCE.getProduct_Name(); + + /** + * The meta object literal for the '<em><b>Order Details</b></em>' reference list feature. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference PRODUCT__ORDER_DETAILS = eINSTANCE.getProduct_OrderDetails(); + + /** + * The meta object literal for the '<em><b>Vat</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute PRODUCT__VAT = eINSTANCE.getProduct_Vat(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EAttribute PRODUCT__DESCRIPTION = eINSTANCE.getProduct_Description(); + + /** + * The meta object literal for the '<em><b>Price</b></em>' attribute feature. <!-- begin-user-doc --> + * + * @since 4.0<!-- end-user-doc --> + * @generated + */ + EAttribute PRODUCT__PRICE = eINSTANCE.getProduct_Price(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl <em>Company</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getCompany() + * @generated + */ + EClass COMPANY = eINSTANCE.getCompany(); + + /** + * The meta object literal for the '<em><b>Categories</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference COMPANY__CATEGORIES = eINSTANCE.getCompany_Categories(); + + /** + * The meta object literal for the '<em><b>Suppliers</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference COMPANY__SUPPLIERS = eINSTANCE.getCompany_Suppliers(); + + /** + * The meta object literal for the '<em><b>Purchase Orders</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference COMPANY__PURCHASE_ORDERS = eINSTANCE.getCompany_PurchaseOrders(); + + /** + * The meta object literal for the '<em><b>Customers</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference COMPANY__CUSTOMERS = eINSTANCE.getCompany_Customers(); + + /** + * The meta object literal for the '<em><b>Sales Orders</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference COMPANY__SALES_ORDERS = eINSTANCE.getCompany_SalesOrders(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.CustomerImpl <em>Customer</em>} + * ' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.CustomerImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getCustomer() + * @generated + */ + EClass CUSTOMER = eINSTANCE.getCustomer(); + + /** + * The meta object literal for the '<em><b>Sales Orders</b></em>' reference list feature. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + EReference CUSTOMER__SALES_ORDERS = eINSTANCE.getCustomer_SalesOrders(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.OrderImpl <em>Order</em>}' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.OrderImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getOrder() + * @generated + */ + EClass ORDER = eINSTANCE.getOrder(); + + /** + * The meta object literal for the '<em><b>Order Details</b></em>' containment reference list feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference ORDER__ORDER_DETAILS = eINSTANCE.getOrder_OrderDetails(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl + * <em>Sales Order</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl + * @see org.eclipse.emf.cdo.examples.company.impl.CompanyPackageImpl#getSalesOrder() + * @generated + */ + EClass SALES_ORDER = eINSTANCE.getSalesOrder(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + */ + EAttribute SALES_ORDER__ID = eINSTANCE.getSalesOrder_Id(); + + /** + * The meta object literal for the '<em><b>Customer</b></em>' reference feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EReference SALES_ORDER__CUSTOMER = eINSTANCE.getSalesOrder_Customer(); + + } + +} // CompanyPackage diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Customer.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Customer.java new file mode 100644 index 0000000000..32fc1a006c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Customer.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Customer</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Customer#getSalesOrders <em>Sales Orders</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCustomer() + * @model + * @generated + */ +public interface Customer extends Addressable +{ + /** + * Returns the value of the '<em><b>Sales Orders</b></em>' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.SalesOrder}. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.SalesOrder#getCustomer <em>Customer</em>}'. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sales Orders</em>' reference list isn't clear, there really should be more of a + * description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Sales Orders</em>' reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getCustomer_SalesOrders() + * @see org.eclipse.emf.cdo.examples.company.SalesOrder#getCustomer + * @model opposite="customer" + * @generated + */ + EList<SalesOrder> getSalesOrders(); + +} // Customer diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Order.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Order.java new file mode 100644 index 0000000000..33a340aae5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Order.java @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Order</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Order#getOrderDetails <em>Order Details</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getOrder() + * @model annotation="teneo.jpa value='@Entity(name=\"BaseOrder\")'" + * @generated + */ +public interface Order extends EObject +{ + /** + * Returns the value of the '<em><b>Order Details</b></em>' containment reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.OrderDetail}. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.OrderDetail#getOrder <em>Order</em>}'. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Order Details</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>Order Details</em>' containment reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getOrder_OrderDetails() + * @see org.eclipse.emf.cdo.examples.company.OrderDetail#getOrder + * @model opposite="order" containment="true" + * @generated + */ + EList<OrderDetail> getOrderDetails(); + +} // Order diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/OrderDetail.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/OrderDetail.java new file mode 100644 index 0000000000..efd499c6bb --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/OrderDetail.java @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Order Detail</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getOrder <em>Order</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getProduct <em>Product</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getPrice <em>Price</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getOrderDetail() + * @model + * @generated + */ +public interface OrderDetail extends EObject +{ + /** + * Returns the value of the '<em><b>Order</b></em>' container reference. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.Order#getOrderDetails <em>Order Details</em>}'. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Order</em>' container reference isn't clear, there really should be more of a + * description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Order</em>' container reference. + * @see #setOrder(Order) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getOrderDetail_Order() + * @see org.eclipse.emf.cdo.examples.company.Order#getOrderDetails + * @model opposite="orderDetails" required="true" transient="false" + * @generated + */ + Order getOrder(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getOrder <em>Order</em>}' container + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Order</em>' container reference. + * @see #getOrder() + * @generated + */ + void setOrder(Order value); + + /** + * Returns the value of the '<em><b>Product</b></em>' reference. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.Product#getOrderDetails <em>Order Details</em>}'. <!-- begin-user-doc + * --> + * <p> + * If the meaning of the '<em>Product</em>' reference isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Product</em>' reference. + * @see #setProduct(Product) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getOrderDetail_Product() + * @see org.eclipse.emf.cdo.examples.company.Product#getOrderDetails + * @model opposite="orderDetails" + * @generated + */ + Product getProduct(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getProduct <em>Product</em>}' + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Product</em>' reference. + * @see #getProduct() + * @generated + */ + void setProduct(Product value); + + /** + * Returns the value of the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Price</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Price</em>' attribute. + * @see #setPrice(float) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getOrderDetail_Price() + * @model + * @generated + */ + float getPrice(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.OrderDetail#getPrice <em>Price</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Price</em>' attribute. + * @see #getPrice() + * @generated + */ + void setPrice(float value); + +} // OrderDetail diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Product.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Product.java new file mode 100644 index 0000000000..b5207437b4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Product.java @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Product</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Product#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Product#getOrderDetails <em>Order Details</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Product#getVat <em>Vat</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Product#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Product#getPrice <em>Price</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getProduct() + * @model + * @generated + */ +public interface Product extends EObject +{ + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getProduct_Name() + * @model annotation="teneo.jpa value='@Id'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Product#getName <em>Name</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Order Details</b></em>' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.OrderDetail}. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.OrderDetail#getProduct <em>Product</em>}'. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Order Details</em>' reference list isn't clear, there really should be more of a + * description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Order Details</em>' reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getProduct_OrderDetails() + * @see org.eclipse.emf.cdo.examples.company.OrderDetail#getProduct + * @model opposite="product" + * @generated + */ + EList<OrderDetail> getOrderDetails(); + + /** + * Returns the value of the '<em><b>Vat</b></em>' attribute. The default value is <code>"vat15"</code>. The literals + * are from the enumeration {@link org.eclipse.emf.cdo.examples.company.VAT}. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vat</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Vat</em>' attribute. + * @see org.eclipse.emf.cdo.examples.company.VAT + * @see #setVat(VAT) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getProduct_Vat() + * @model default="vat15" annotation="teneo.jpa value='@Basic(optional=false)\n@Column(nullable=false)'" + * @generated + */ + VAT getVat(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Product#getVat <em>Vat</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Vat</em>' attribute. + * @see org.eclipse.emf.cdo.examples.company.VAT + * @see #getVat() + * @generated + */ + void setVat(VAT value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getProduct_Description() + * @model transient="true" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Product#getDescription <em>Description</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Price</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Price</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * + * @since 4.0 <!-- end-user-doc --> + * @return the value of the '<em>Price</em>' attribute. + * @see #setPrice(float) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getProduct_Price() + * @model + * @generated + */ + float getPrice(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Product#getPrice <em>Price</em>}' attribute. + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @param value + * the new value of the '<em>Price</em>' attribute. + * @see #getPrice() + * @generated + */ + void setPrice(float value); + +} // Product diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/PurchaseOrder.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/PurchaseOrder.java new file mode 100644 index 0000000000..47b13b42e8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/PurchaseOrder.java @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import java.util.Date; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Purchase Order</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getDate <em>Date</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getSupplier <em>Supplier</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getPurchaseOrder() + * @model + * @generated + */ +public interface PurchaseOrder extends Order +{ + /** + * Returns the value of the '<em><b>Date</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Date</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Date</em>' attribute. + * @see #setDate(Date) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getPurchaseOrder_Date() + * @model + * @generated + */ + Date getDate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getDate <em>Date</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Date</em>' attribute. + * @see #getDate() + * @generated + */ + void setDate(Date value); + + /** + * Returns the value of the '<em><b>Supplier</b></em>' reference. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.Supplier#getPurchaseOrders <em>Purchase Orders</em>}'. <!-- + * begin-user-doc --> + * <p> + * If the meaning of the '<em>Supplier</em>' reference isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Supplier</em>' reference. + * @see #setSupplier(Supplier) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getPurchaseOrder_Supplier() + * @see org.eclipse.emf.cdo.examples.company.Supplier#getPurchaseOrders + * @model opposite="purchaseOrders" required="true" + * @generated + */ + Supplier getSupplier(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getSupplier <em>Supplier</em>}' + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Supplier</em>' reference. + * @see #getSupplier() + * @generated + */ + void setSupplier(Supplier value); + +} // PurchaseOrder diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/SalesOrder.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/SalesOrder.java new file mode 100644 index 0000000000..e4695f733d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/SalesOrder.java @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Sales Order</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.SalesOrder#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.SalesOrder#getCustomer <em>Customer</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getSalesOrder() + * @model + * @generated + */ +public interface SalesOrder extends Order +{ + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Id</em>' attribute. + * @see #setId(int) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getSalesOrder_Id() + * @model + * @generated + */ + int getId(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.SalesOrder#getId <em>Id</em>}' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(int value); + + /** + * Returns the value of the '<em><b>Customer</b></em>' reference. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.Customer#getSalesOrders <em>Sales Orders</em>}'. <!-- begin-user-doc + * --> + * <p> + * If the meaning of the '<em>Customer</em>' reference isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Customer</em>' reference. + * @see #setCustomer(Customer) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getSalesOrder_Customer() + * @see org.eclipse.emf.cdo.examples.company.Customer#getSalesOrders + * @model opposite="salesOrders" required="true" + * @generated + */ + Customer getCustomer(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.SalesOrder#getCustomer <em>Customer</em>}' + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Customer</em>' reference. + * @see #getCustomer() + * @generated + */ + void setCustomer(Customer value); + +} // SalesOrder diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Supplier.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Supplier.java new file mode 100644 index 0000000000..0d863e602d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/Supplier.java @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.EList; + +/** + * <!-- begin-user-doc --> A representation of the model object '<em><b>Supplier</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.Supplier#getPurchaseOrders <em>Purchase Orders</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.Supplier#isPreferred <em>Preferred</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getSupplier() + * @model + * @generated + */ +public interface Supplier extends Addressable +{ + /** + * Returns the value of the '<em><b>Purchase Orders</b></em>' reference list. The list contents are of type + * {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder}. It is bidirectional and its opposite is ' + * {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder#getSupplier <em>Supplier</em>}'. <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Purchase Orders</em>' reference list isn't clear, there really should be more of a + * description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Purchase Orders</em>' reference list. + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getSupplier_PurchaseOrders() + * @see org.eclipse.emf.cdo.examples.company.PurchaseOrder#getSupplier + * @model opposite="supplier" + * @generated + */ + EList<PurchaseOrder> getPurchaseOrders(); + + /** + * Returns the value of the '<em><b>Preferred</b></em>' attribute. The default value is <code>"true"</code>. <!-- + * begin-user-doc --> + * <p> + * If the meaning of the '<em>Preferred</em>' attribute isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Preferred</em>' attribute. + * @see #setPreferred(boolean) + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getSupplier_Preferred() + * @model default="true" + * @generated + */ + boolean isPreferred(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.examples.company.Supplier#isPreferred <em>Preferred</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>Preferred</em>' attribute. + * @see #isPreferred() + * @generated + */ + void setPreferred(boolean value); + +} // Supplier diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/VAT.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/VAT.java new file mode 100644 index 0000000000..76819dbd60 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/VAT.java @@ -0,0 +1,247 @@ +/* + * Copyright (c) 2004 - 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.examples.company; + +import org.eclipse.emf.common.util.Enumerator; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>VAT</b></em>', and utility + * methods for working with them. <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.examples.company.CompanyPackage#getVAT() + * @model + * @generated + */ +public enum VAT implements Enumerator +{ + /** + * The '<em><b>Vat0</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #VAT0_VALUE + * @generated + * @ordered + */ + VAT0(0, "vat0", "vat0"), + + /** + * The '<em><b>Vat7</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #VAT7_VALUE + * @generated + * @ordered + */ + VAT7(7, "vat7", "vat7"), + + /** + * The '<em><b>Vat15</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #VAT15_VALUE + * @generated + * @ordered + */ + VAT15(15, "vat15", "vat15"); + + /** + * The '<em><b>Vat0</b></em>' literal value. <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Vat0</b></em>' literal object isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @see #VAT0 + * @model name="vat0" + * @generated + * @ordered + */ + public static final int VAT0_VALUE = 0; + + /** + * The '<em><b>Vat7</b></em>' literal value. <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Vat7</b></em>' literal object isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @see #VAT7 + * @model name="vat7" + * @generated + * @ordered + */ + public static final int VAT7_VALUE = 7; + + /** + * The '<em><b>Vat15</b></em>' literal value. <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Vat15</b></em>' literal object isn't clear, there really should be more of a description + * here... + * </p> + * <!-- end-user-doc --> + * + * @see #VAT15 + * @model name="vat15" + * @generated + * @ordered + */ + public static final int VAT15_VALUE = 15; + + /** + * An array of all the '<em><b>VAT</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private static final VAT[] VALUES_ARRAY = new VAT[] { VAT0, VAT7, VAT15, }; + + /** + * A public read-only list of all the '<em><b>VAT</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public static final List<VAT> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>VAT</b></em>' literal with the specified literal value. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + public static VAT get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + VAT result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>VAT</b></em>' literal with the specified name. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public static VAT getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + VAT result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>VAT</b></em>' literal with the specified integer value. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + public static VAT get(int value) + { + switch (value) + { + case VAT0_VALUE: + return VAT0; + case VAT7_VALUE: + return VAT7; + case VAT15_VALUE: + return VAT15; + } + return null; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private VAT(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} // VAT diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/AddressableImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/AddressableImpl.java new file mode 100644 index 0000000000..a1a072d4b5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/AddressableImpl.java @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.Addressable; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; + +import org.eclipse.emf.internal.cdo.CDOObjectImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Addressable</b></em>'. + * + * @since 4.0 <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.AddressableImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.AddressableImpl#getStreet <em>Street</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.AddressableImpl#getCity <em>City</em>}</li> + * </ul> + * </p> + * @generated + */ +public abstract class AddressableImpl extends CDOObjectImpl implements Addressable +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected AddressableImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.ADDRESSABLE; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected int eStaticFeatureCount() + { + return 0; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getName() + { + return (String)eGet(CompanyPackage.Literals.ADDRESSABLE__NAME, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setName(String newName) + { + eSet(CompanyPackage.Literals.ADDRESSABLE__NAME, newName); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getStreet() + { + return (String)eGet(CompanyPackage.Literals.ADDRESSABLE__STREET, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setStreet(String newStreet) + { + eSet(CompanyPackage.Literals.ADDRESSABLE__STREET, newStreet); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getCity() + { + return (String)eGet(CompanyPackage.Literals.ADDRESSABLE__CITY, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setCity(String newCity) + { + eSet(CompanyPackage.Literals.ADDRESSABLE__CITY, newCity); + } + +} // AddressableImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CategoryImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CategoryImpl.java new file mode 100644 index 0000000000..0cf89a4cd5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CategoryImpl.java @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Product; + +import org.eclipse.emf.internal.cdo.CDOObjectImpl; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Category</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CategoryImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CategoryImpl#getCategories <em>Categories</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CategoryImpl#getProducts <em>Products</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CategoryImpl extends CDOObjectImpl implements Category +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected CategoryImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.CATEGORY; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected int eStaticFeatureCount() + { + return 0; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getName() + { + return (String)eGet(CompanyPackage.Literals.CATEGORY__NAME, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setName(String newName) + { + eSet(CompanyPackage.Literals.CATEGORY__NAME, newName); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<Category> getCategories() + { + return (EList<Category>)eGet(CompanyPackage.Literals.CATEGORY__CATEGORIES, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<Product> getProducts() + { + return (EList<Product>)eGet(CompanyPackage.Literals.CATEGORY__PRODUCTS, true); + } + +} // CategoryImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyFactoryImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyFactoryImpl.java new file mode 100644 index 0000000000..9f12bf805c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyFactoryImpl.java @@ -0,0 +1,285 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Company; +import org.eclipse.emf.cdo.examples.company.CompanyFactory; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.Product; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; +import org.eclipse.emf.cdo.examples.company.VAT; + +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; + +/** + * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc --> + * + * @generated + */ +public class CompanyFactoryImpl extends EFactoryImpl implements CompanyFactory +{ + /** + * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public static CompanyFactory init() + { + try + { + CompanyFactory theCompanyFactory = (CompanyFactory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/examples/company/1.0.0"); + if (theCompanyFactory != null) + { + return theCompanyFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new CompanyFactoryImpl(); + } + + /** + * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CompanyFactoryImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case CompanyPackage.COMPANY: + return createCompany(); + case CompanyPackage.SUPPLIER: + return createSupplier(); + case CompanyPackage.CUSTOMER: + return createCustomer(); + case CompanyPackage.ORDER: + return createOrder(); + case CompanyPackage.ORDER_DETAIL: + return createOrderDetail(); + case CompanyPackage.PURCHASE_ORDER: + return createPurchaseOrder(); + case CompanyPackage.SALES_ORDER: + return createSalesOrder(); + case CompanyPackage.CATEGORY: + return createCategory(); + case CompanyPackage.PRODUCT: + return createProduct(); + 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 CompanyPackage.VAT: + return createVATFromString(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 CompanyPackage.VAT: + return convertVATToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Supplier createSupplier() + { + SupplierImpl supplier = new SupplierImpl(); + return supplier; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public PurchaseOrder createPurchaseOrder() + { + PurchaseOrderImpl purchaseOrder = new PurchaseOrderImpl(); + return purchaseOrder; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public OrderDetail createOrderDetail() + { + OrderDetailImpl orderDetail = new OrderDetailImpl(); + return orderDetail; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public VAT createVATFromString(EDataType eDataType, String initialValue) + { + VAT result = VAT.get(initialValue); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String convertVATToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Category createCategory() + { + CategoryImpl category = new CategoryImpl(); + return category; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Product createProduct() + { + ProductImpl product = new ProductImpl(); + return product; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Company createCompany() + { + CompanyImpl company = new CompanyImpl(); + return company; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Customer createCustomer() + { + CustomerImpl customer = new CustomerImpl(); + return customer; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Order createOrder() + { + OrderImpl order = new OrderImpl(); + return order; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public SalesOrder createSalesOrder() + { + SalesOrderImpl salesOrder = new SalesOrderImpl(); + return salesOrder; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CompanyPackage getCompanyPackage() + { + return (CompanyPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @deprecated + * @generated + */ + @Deprecated + public static CompanyPackage getPackage() + { + return CompanyPackage.eINSTANCE; + } + +} // CompanyFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyImpl.java new file mode 100644 index 0000000000..3936780d02 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyImpl.java @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Company; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Company</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl#getCategories <em>Categories</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl#getSuppliers <em>Suppliers</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl#getCustomers <em>Customers</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl#getPurchaseOrders <em>Purchase Orders</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CompanyImpl#getSalesOrders <em>Sales Orders</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CompanyImpl extends AddressableImpl implements Company +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected CompanyImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.COMPANY; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<Category> getCategories() + { + return (EList<Category>)eGet(CompanyPackage.Literals.COMPANY__CATEGORIES, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<Supplier> getSuppliers() + { + return (EList<Supplier>)eGet(CompanyPackage.Literals.COMPANY__SUPPLIERS, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<PurchaseOrder> getPurchaseOrders() + { + return (EList<PurchaseOrder>)eGet(CompanyPackage.Literals.COMPANY__PURCHASE_ORDERS, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<Customer> getCustomers() + { + return (EList<Customer>)eGet(CompanyPackage.Literals.COMPANY__CUSTOMERS, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<SalesOrder> getSalesOrders() + { + return (EList<SalesOrder>)eGet(CompanyPackage.Literals.COMPANY__SALES_ORDERS, true); + } + +} // CompanyImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyPackageImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyPackageImpl.java new file mode 100644 index 0000000000..97e3176938 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CompanyPackageImpl.java @@ -0,0 +1,809 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.Addressable; +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Company; +import org.eclipse.emf.cdo.examples.company.CompanyFactory; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.Product; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +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 CompanyPackageImpl extends EPackageImpl implements CompanyPackage +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass addressableEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass supplierEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass purchaseOrderEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass orderDetailEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EEnum vatEEnum = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass categoryEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass productEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass companyEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass customerEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass orderEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + private EClass salesOrderEClass = 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.examples.company.CompanyPackage#eNS_URI + * @see #init() + * @generated + */ + private CompanyPackageImpl() + { + super(eNS_URI, CompanyFactory.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 CompanyPackage#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 CompanyPackage init() + { + if (isInited) + return (CompanyPackage)EPackage.Registry.INSTANCE.getEPackage(CompanyPackage.eNS_URI); + + // Obtain or create and register package + CompanyPackageImpl theCompanyPackage = (CompanyPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CompanyPackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new CompanyPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theCompanyPackage.createPackageContents(); + + // Initialize created meta-data + theCompanyPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCompanyPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CompanyPackage.eNS_URI, theCompanyPackage); + return theCompanyPackage; + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public EClass getAddressable() + { + return addressableEClass; + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddressable_Name() + { + return (EAttribute)addressableEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddressable_Street() + { + return (EAttribute)addressableEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddressable_City() + { + return (EAttribute)addressableEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getSupplier() + { + return supplierEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getSupplier_PurchaseOrders() + { + return (EReference)supplierEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getSupplier_Preferred() + { + return (EAttribute)supplierEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getPurchaseOrder() + { + return purchaseOrderEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getPurchaseOrder_Date() + { + return (EAttribute)purchaseOrderEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getPurchaseOrder_Supplier() + { + return (EReference)purchaseOrderEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getOrderDetail() + { + return orderDetailEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getOrderDetail_Order() + { + return (EReference)orderDetailEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getOrderDetail_Product() + { + return (EReference)orderDetailEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getOrderDetail_Price() + { + return (EAttribute)orderDetailEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EEnum getVAT() + { + return vatEEnum; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getCategory() + { + return categoryEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getCategory_Name() + { + return (EAttribute)categoryEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCategory_Categories() + { + return (EReference)categoryEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCategory_Products() + { + return (EReference)categoryEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getProduct() + { + return productEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getProduct_Name() + { + return (EAttribute)productEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getProduct_OrderDetails() + { + return (EReference)productEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getProduct_Vat() + { + return (EAttribute)productEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getProduct_Description() + { + return (EAttribute)productEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public EAttribute getProduct_Price() + { + return (EAttribute)productEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getCompany() + { + return companyEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCompany_Categories() + { + return (EReference)companyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCompany_Suppliers() + { + return (EReference)companyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCompany_PurchaseOrders() + { + return (EReference)companyEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCompany_Customers() + { + return (EReference)companyEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCompany_SalesOrders() + { + return (EReference)companyEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getCustomer() + { + return customerEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getCustomer_SalesOrders() + { + return (EReference)customerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getOrder() + { + return orderEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getOrder_OrderDetails() + { + return (EReference)orderEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EClass getSalesOrder() + { + return salesOrderEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EAttribute getSalesOrder_Id() + { + return (EAttribute)salesOrderEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public EReference getSalesOrder_Customer() + { + return (EReference)salesOrderEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CompanyFactory getCompanyFactory() + { + return (CompanyFactory)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 + addressableEClass = createEClass(ADDRESSABLE); + createEAttribute(addressableEClass, ADDRESSABLE__NAME); + createEAttribute(addressableEClass, ADDRESSABLE__STREET); + createEAttribute(addressableEClass, ADDRESSABLE__CITY); + + companyEClass = createEClass(COMPANY); + createEReference(companyEClass, COMPANY__CATEGORIES); + createEReference(companyEClass, COMPANY__SUPPLIERS); + createEReference(companyEClass, COMPANY__CUSTOMERS); + createEReference(companyEClass, COMPANY__PURCHASE_ORDERS); + createEReference(companyEClass, COMPANY__SALES_ORDERS); + + supplierEClass = createEClass(SUPPLIER); + createEReference(supplierEClass, SUPPLIER__PURCHASE_ORDERS); + createEAttribute(supplierEClass, SUPPLIER__PREFERRED); + + customerEClass = createEClass(CUSTOMER); + createEReference(customerEClass, CUSTOMER__SALES_ORDERS); + + orderEClass = createEClass(ORDER); + createEReference(orderEClass, ORDER__ORDER_DETAILS); + + orderDetailEClass = createEClass(ORDER_DETAIL); + createEReference(orderDetailEClass, ORDER_DETAIL__ORDER); + createEReference(orderDetailEClass, ORDER_DETAIL__PRODUCT); + createEAttribute(orderDetailEClass, ORDER_DETAIL__PRICE); + + purchaseOrderEClass = createEClass(PURCHASE_ORDER); + createEAttribute(purchaseOrderEClass, PURCHASE_ORDER__DATE); + createEReference(purchaseOrderEClass, PURCHASE_ORDER__SUPPLIER); + + salesOrderEClass = createEClass(SALES_ORDER); + createEAttribute(salesOrderEClass, SALES_ORDER__ID); + createEReference(salesOrderEClass, SALES_ORDER__CUSTOMER); + + categoryEClass = createEClass(CATEGORY); + createEAttribute(categoryEClass, CATEGORY__NAME); + createEReference(categoryEClass, CATEGORY__CATEGORIES); + createEReference(categoryEClass, CATEGORY__PRODUCTS); + + productEClass = createEClass(PRODUCT); + createEAttribute(productEClass, PRODUCT__NAME); + createEReference(productEClass, PRODUCT__ORDER_DETAILS); + createEAttribute(productEClass, PRODUCT__VAT); + createEAttribute(productEClass, PRODUCT__DESCRIPTION); + createEAttribute(productEClass, PRODUCT__PRICE); + + // Create enums + vatEEnum = createEEnum(VAT); + } + + /** + * <!-- 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 + companyEClass.getESuperTypes().add(this.getAddressable()); + supplierEClass.getESuperTypes().add(this.getAddressable()); + customerEClass.getESuperTypes().add(this.getAddressable()); + purchaseOrderEClass.getESuperTypes().add(this.getOrder()); + salesOrderEClass.getESuperTypes().add(this.getOrder()); + + // Initialize classes and features; add operations and parameters + initEClass(addressableEClass, Addressable.class, "Addressable", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddressable_Name(), ecorePackage.getEString(), "name", null, 0, 1, Addressable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddressable_Street(), ecorePackage.getEString(), "street", null, 0, 1, Addressable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddressable_City(), ecorePackage.getEString(), "city", null, 0, 1, Addressable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(companyEClass, Company.class, "Company", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCompany_Categories(), this.getCategory(), null, "categories", null, 0, -1, Company.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getCompany_Suppliers(), this.getSupplier(), null, "suppliers", null, 0, -1, Company.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getCompany_Customers(), this.getCustomer(), null, "customers", null, 0, -1, Company.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getCompany_PurchaseOrders(), this.getPurchaseOrder(), null, "purchaseOrders", null, 0, -1, + Company.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCompany_SalesOrders(), this.getSalesOrder(), null, "salesOrders", null, 0, -1, Company.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(supplierEClass, Supplier.class, "Supplier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSupplier_PurchaseOrders(), this.getPurchaseOrder(), this.getPurchaseOrder_Supplier(), + "purchaseOrders", null, 0, -1, Supplier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSupplier_Preferred(), ecorePackage.getEBoolean(), "preferred", "true", 0, 1, Supplier.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(customerEClass, Customer.class, "Customer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCustomer_SalesOrders(), this.getSalesOrder(), this.getSalesOrder_Customer(), "salesOrders", null, + 0, -1, Customer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(orderEClass, Order.class, "Order", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOrder_OrderDetails(), this.getOrderDetail(), this.getOrderDetail_Order(), "orderDetails", null, + 0, -1, Order.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(orderDetailEClass, OrderDetail.class, "OrderDetail", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getOrderDetail_Order(), this.getOrder(), this.getOrder_OrderDetails(), "order", null, 1, 1, + OrderDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOrderDetail_Product(), this.getProduct(), this.getProduct_OrderDetails(), "product", null, 0, 1, + OrderDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOrderDetail_Price(), ecorePackage.getEFloat(), "price", null, 0, 1, OrderDetail.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(purchaseOrderEClass, PurchaseOrder.class, "PurchaseOrder", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPurchaseOrder_Date(), ecorePackage.getEDate(), "date", null, 0, 1, PurchaseOrder.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPurchaseOrder_Supplier(), this.getSupplier(), this.getSupplier_PurchaseOrders(), "supplier", + null, 1, 1, PurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(salesOrderEClass, SalesOrder.class, "SalesOrder", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSalesOrder_Id(), ecorePackage.getEInt(), "id", null, 0, 1, SalesOrder.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSalesOrder_Customer(), this.getCustomer(), this.getCustomer_SalesOrders(), "customer", null, 1, + 1, SalesOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCategory_Name(), ecorePackage.getEString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCategory_Categories(), this.getCategory(), null, "categories", null, 0, -1, Category.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getCategory_Products(), this.getProduct(), null, "products", null, 0, -1, Category.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(productEClass, Product.class, "Product", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProduct_Name(), ecorePackage.getEString(), "name", null, 0, 1, Product.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getProduct_OrderDetails(), this.getOrderDetail(), this.getOrderDetail_Product(), "orderDetails", + null, 0, -1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProduct_Vat(), this.getVAT(), "vat", "vat15", 0, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProduct_Description(), ecorePackage.getEString(), "description", null, 0, 1, Product.class, + IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProduct_Price(), ecorePackage.getEFloat(), "price", null, 0, 1, Product.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(vatEEnum, org.eclipse.emf.cdo.examples.company.VAT.class, "VAT"); + addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.examples.company.VAT.VAT0); + addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.examples.company.VAT.VAT7); + addEEnumLiteral(vatEEnum, org.eclipse.emf.cdo.examples.company.VAT.VAT15); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // teneo.jpa + createTeneoAnnotations(); + } + + /** + * Initializes the annotations for <b>teneo.jpa</b>. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void createTeneoAnnotations() + { + String source = "teneo.jpa"; + addAnnotation( + this, + source, + new String[] { + "value", + "@hbGenericGenerators({@GenericGenerator(name=\"system-uuid\", strategy = \"org.eclipse.emf.cdo.examples.hibernate.server.CDOExampleUUIDHexGenerator\")})" }); + addAnnotation(orderEClass, source, new String[] { "value", "@Entity(name=\"BaseOrder\")" }); + addAnnotation(getCategory_Name(), source, + new String[] { "value", "@Id @GeneratedValue(generator=\"system-uuid\")" }); + addAnnotation(getProduct_Name(), source, new String[] { "value", "@Id" }); + addAnnotation(getProduct_Vat(), source, new String[] { "value", "@Basic(optional=false)\n@Column(nullable=false)" }); + } + +} // CompanyPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CustomerImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CustomerImpl.java new file mode 100644 index 0000000000..deb324b294 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/CustomerImpl.java @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.SalesOrder; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Customer</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.CustomerImpl#getSalesOrders <em>Sales Orders</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CustomerImpl extends AddressableImpl implements Customer +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected CustomerImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.CUSTOMER; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<SalesOrder> getSalesOrders() + { + return (EList<SalesOrder>)eGet(CompanyPackage.Literals.CUSTOMER__SALES_ORDERS, true); + } + +} // CustomerImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/OrderDetailImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/OrderDetailImpl.java new file mode 100644 index 0000000000..5900b1e80f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/OrderDetailImpl.java @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.Product; + +import org.eclipse.emf.internal.cdo.CDOObjectImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Order Detail</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl#getOrder <em>Order</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl#getProduct <em>Product</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.OrderDetailImpl#getPrice <em>Price</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OrderDetailImpl extends CDOObjectImpl implements OrderDetail +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected OrderDetailImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.ORDER_DETAIL; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected int eStaticFeatureCount() + { + return 0; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Order getOrder() + { + return (Order)eGet(CompanyPackage.Literals.ORDER_DETAIL__ORDER, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setOrder(Order newOrder) + { + eSet(CompanyPackage.Literals.ORDER_DETAIL__ORDER, newOrder); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Product getProduct() + { + return (Product)eGet(CompanyPackage.Literals.ORDER_DETAIL__PRODUCT, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setProduct(Product newProduct) + { + eSet(CompanyPackage.Literals.ORDER_DETAIL__PRODUCT, newProduct); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public float getPrice() + { + return (Float)eGet(CompanyPackage.Literals.ORDER_DETAIL__PRICE, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setPrice(float newPrice) + { + eSet(CompanyPackage.Literals.ORDER_DETAIL__PRICE, newPrice); + } + +} // OrderDetailImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/OrderImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/OrderImpl.java new file mode 100644 index 0000000000..e172fa77a7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/OrderImpl.java @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.OrderDetail; + +import org.eclipse.emf.internal.cdo.CDOObjectImpl; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Order</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.OrderImpl#getOrderDetails <em>Order Details</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OrderImpl extends CDOObjectImpl implements Order +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected OrderImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.ORDER; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected int eStaticFeatureCount() + { + return 0; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<OrderDetail> getOrderDetails() + { + return (EList<OrderDetail>)eGet(CompanyPackage.Literals.ORDER__ORDER_DETAILS, true); + } + +} // OrderImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/ProductImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/ProductImpl.java new file mode 100644 index 0000000000..50f4f68907 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/ProductImpl.java @@ -0,0 +1,165 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.Product; +import org.eclipse.emf.cdo.examples.company.VAT; + +import org.eclipse.emf.internal.cdo.CDOObjectImpl; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Product</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl#getOrderDetails <em>Order Details</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl#getVat <em>Vat</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.ProductImpl#getPrice <em>Price</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ProductImpl extends CDOObjectImpl implements Product +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ProductImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.PRODUCT; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected int eStaticFeatureCount() + { + return 0; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getName() + { + return (String)eGet(CompanyPackage.Literals.PRODUCT__NAME, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setName(String newName) + { + eSet(CompanyPackage.Literals.PRODUCT__NAME, newName); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<OrderDetail> getOrderDetails() + { + return (EList<OrderDetail>)eGet(CompanyPackage.Literals.PRODUCT__ORDER_DETAILS, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public VAT getVat() + { + return (VAT)eGet(CompanyPackage.Literals.PRODUCT__VAT, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setVat(VAT newVat) + { + eSet(CompanyPackage.Literals.PRODUCT__VAT, newVat); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public String getDescription() + { + return (String)eGet(CompanyPackage.Literals.PRODUCT__DESCRIPTION, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setDescription(String newDescription) + { + eSet(CompanyPackage.Literals.PRODUCT__DESCRIPTION, newDescription); + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public float getPrice() + { + return (Float)eGet(CompanyPackage.Literals.PRODUCT__PRICE, true); + } + + /** + * <!-- begin-user-doc --> + * + * @since 4.0 <!-- end-user-doc --> + * @generated + */ + public void setPrice(float newPrice) + { + eSet(CompanyPackage.Literals.PRODUCT__PRICE, newPrice); + } + +} // ProductImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/PurchaseOrderImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/PurchaseOrderImpl.java new file mode 100644 index 0000000000..bb055dd03d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/PurchaseOrderImpl.java @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.ecore.EClass; + +import java.util.Date; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Purchase Order</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl#getDate <em>Date</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.PurchaseOrderImpl#getSupplier <em>Supplier</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PurchaseOrderImpl extends OrderImpl implements PurchaseOrder +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected PurchaseOrderImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.PURCHASE_ORDER; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Date getDate() + { + return (Date)eGet(CompanyPackage.Literals.PURCHASE_ORDER__DATE, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setDate(Date newDate) + { + eSet(CompanyPackage.Literals.PURCHASE_ORDER__DATE, newDate); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Supplier getSupplier() + { + return (Supplier)eGet(CompanyPackage.Literals.PURCHASE_ORDER__SUPPLIER, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setSupplier(Supplier newSupplier) + { + eSet(CompanyPackage.Literals.PURCHASE_ORDER__SUPPLIER, newSupplier); + } + +} // PurchaseOrderImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/SalesOrderImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/SalesOrderImpl.java new file mode 100644 index 0000000000..22e3347aca --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/SalesOrderImpl.java @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.SalesOrder; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Sales Order</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.SalesOrderImpl#getCustomer <em>Customer</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SalesOrderImpl extends OrderImpl implements SalesOrder +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected SalesOrderImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.SALES_ORDER; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public int getId() + { + return (Integer)eGet(CompanyPackage.Literals.SALES_ORDER__ID, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setId(int newId) + { + eSet(CompanyPackage.Literals.SALES_ORDER__ID, newId); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public Customer getCustomer() + { + return (Customer)eGet(CompanyPackage.Literals.SALES_ORDER__CUSTOMER, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setCustomer(Customer newCustomer) + { + eSet(CompanyPackage.Literals.SALES_ORDER__CUSTOMER, newCustomer); + } + +} // SalesOrderImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/SupplierImpl.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/SupplierImpl.java new file mode 100644 index 0000000000..3e1de10937 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/impl/SupplierImpl.java @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2004 - 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.examples.company.impl; + +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Supplier</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.SupplierImpl#getPurchaseOrders <em>Purchase Orders</em>}</li> + * <li>{@link org.eclipse.emf.cdo.examples.company.impl.SupplierImpl#isPreferred <em>Preferred</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SupplierImpl extends AddressableImpl implements Supplier +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected SupplierImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CompanyPackage.Literals.SUPPLIER; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList<PurchaseOrder> getPurchaseOrders() + { + return (EList<PurchaseOrder>)eGet(CompanyPackage.Literals.SUPPLIER__PURCHASE_ORDERS, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public boolean isPreferred() + { + return (Boolean)eGet(CompanyPackage.Literals.SUPPLIER__PREFERRED, true); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public void setPreferred(boolean newPreferred) + { + eSet(CompanyPackage.Literals.SUPPLIER__PREFERRED, newPreferred); + } + +} // SupplierImpl diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/util/CompanyAdapterFactory.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/util/CompanyAdapterFactory.java new file mode 100644 index 0000000000..7bdbb10b1b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/util/CompanyAdapterFactory.java @@ -0,0 +1,322 @@ +/* + * Copyright (c) 2004 - 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.examples.company.util; + +import org.eclipse.emf.cdo.examples.company.Addressable; +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Company; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.Product; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +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.examples.company.CompanyPackage + * @generated + */ +public class CompanyAdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected static CompanyPackage modelPackage; + + /** + * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CompanyAdapterFactory() + { + if (modelPackage == null) + { + modelPackage = CompanyPackage.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 CompanySwitch<Adapter> modelSwitch = new CompanySwitch<Adapter>() + { + @Override + public Adapter caseAddressable(Addressable object) + { + return createAddressableAdapter(); + } + + @Override + public Adapter caseCompany(Company object) + { + return createCompanyAdapter(); + } + + @Override + public Adapter caseSupplier(Supplier object) + { + return createSupplierAdapter(); + } + + @Override + public Adapter caseCustomer(Customer object) + { + return createCustomerAdapter(); + } + + @Override + public Adapter caseOrder(Order object) + { + return createOrderAdapter(); + } + + @Override + public Adapter caseOrderDetail(OrderDetail object) + { + return createOrderDetailAdapter(); + } + + @Override + public Adapter casePurchaseOrder(PurchaseOrder object) + { + return createPurchaseOrderAdapter(); + } + + @Override + public Adapter caseSalesOrder(SalesOrder object) + { + return createSalesOrderAdapter(); + } + + @Override + public Adapter caseCategory(Category object) + { + return createCategoryAdapter(); + } + + @Override + public Adapter caseProduct(Product object) + { + return createProductAdapter(); + } + + @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.examples.company.Addressable + * <em>Addressable</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. + * + * @since 4.0 <!-- end-user-doc --> + * @return the new adapter. + * @see org.eclipse.emf.cdo.examples.company.Addressable + * @generated + */ + public Adapter createAddressableAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.Supplier + * <em>Supplier</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.examples.company.Supplier + * @generated + */ + public Adapter createSupplierAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.PurchaseOrder + * <em>Purchase Order</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.examples.company.PurchaseOrder + * @generated + */ + public Adapter createPurchaseOrderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.OrderDetail + * <em>Order Detail</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.examples.company.OrderDetail + * @generated + */ + public Adapter createOrderDetailAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.Category + * <em>Category</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.examples.company.Category + * @generated + */ + public Adapter createCategoryAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.Product <em>Product</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.examples.company.Product + * @generated + */ + public Adapter createProductAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.Company <em>Company</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.examples.company.Company + * @generated + */ + public Adapter createCompanyAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.Customer + * <em>Customer</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.examples.company.Customer + * @generated + */ + public Adapter createCustomerAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.Order <em>Order</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.examples.company.Order + * @generated + */ + public Adapter createOrderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.examples.company.SalesOrder + * <em>Sales Order</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.examples.company.SalesOrder + * @generated + */ + public Adapter createSalesOrderAdapter() + { + 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; + } + +} // CompanyAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/util/CompanySwitch.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/util/CompanySwitch.java new file mode 100644 index 0000000000..81bce6bb7d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/util/CompanySwitch.java @@ -0,0 +1,366 @@ +/* + * Copyright (c) 2004 - 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.examples.company.util; + +import org.eclipse.emf.cdo.examples.company.Addressable; +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Company; +import org.eclipse.emf.cdo.examples.company.CompanyPackage; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.Product; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- 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.examples.company.CompanyPackage + * @generated + */ +public class CompanySwitch<T> +{ + /** + * The cached model package <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected static CompanyPackage modelPackage; + + /** + * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public CompanySwitch() + { + if (modelPackage == null) + { + modelPackage = CompanyPackage.eINSTANCE; + } + } + + /** + * 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 + */ + public T doSwitch(EObject theEObject) + { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * 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 + */ + protected T doSwitch(EClass theEClass, EObject theEObject) + { + if (theEClass.eContainer() == modelPackage) + { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else + { + List<EClass> eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * 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 + */ + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case CompanyPackage.ADDRESSABLE: + { + Addressable addressable = (Addressable)theEObject; + T result = caseAddressable(addressable); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.COMPANY: + { + Company company = (Company)theEObject; + T result = caseCompany(company); + if (result == null) + result = caseAddressable(company); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.SUPPLIER: + { + Supplier supplier = (Supplier)theEObject; + T result = caseSupplier(supplier); + if (result == null) + result = caseAddressable(supplier); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.CUSTOMER: + { + Customer customer = (Customer)theEObject; + T result = caseCustomer(customer); + if (result == null) + result = caseAddressable(customer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.ORDER: + { + Order order = (Order)theEObject; + T result = caseOrder(order); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.ORDER_DETAIL: + { + OrderDetail orderDetail = (OrderDetail)theEObject; + T result = caseOrderDetail(orderDetail); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.PURCHASE_ORDER: + { + PurchaseOrder purchaseOrder = (PurchaseOrder)theEObject; + T result = casePurchaseOrder(purchaseOrder); + if (result == null) + result = caseOrder(purchaseOrder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.SALES_ORDER: + { + SalesOrder salesOrder = (SalesOrder)theEObject; + T result = caseSalesOrder(salesOrder); + if (result == null) + result = caseOrder(salesOrder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.CATEGORY: + { + Category category = (Category)theEObject; + T result = caseCategory(category); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case CompanyPackage.PRODUCT: + { + Product product = (Product)theEObject; + T result = caseProduct(product); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Addressable</em>'. <!-- begin-user-doc --> + * This implementation returns null; returning a non-null result will terminate the switch. + * + * @since 4.0 <!-- end-user-doc --> + * @param object + * the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Addressable</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAddressable(Addressable object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Supplier</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>Supplier</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSupplier(Supplier object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Purchase Order</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>Purchase Order</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePurchaseOrder(PurchaseOrder object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Order Detail</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>Order Detail</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOrderDetail(OrderDetail object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Category</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>Category</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCategory(Category object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Product</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>Product</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProduct(Product object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Company</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>Company</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCompany(Company object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Customer</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>Customer</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCustomer(Customer object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Order</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>Order</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOrder(Order object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Sales Order</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>Sales Order</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSalesOrder(SalesOrder 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 + */ + public T defaultCase(EObject object) + { + return null; + } + +} // CompanySwitch diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java new file mode 100644 index 0000000000..790cfcb3bf --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CategoryValidator.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Product; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Category}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface CategoryValidator +{ + boolean validate(); + + boolean validateName(String value); + + boolean validateCategories(EList<Category> value); + + boolean validateProducts(EList<Product> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java new file mode 100644 index 0000000000..391c311362 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CompanyValidator.java @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Category; +import org.eclipse.emf.cdo.examples.company.Customer; +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; +import org.eclipse.emf.cdo.examples.company.SalesOrder; +import org.eclipse.emf.cdo.examples.company.Supplier; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Company}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface CompanyValidator +{ + boolean validate(); + + boolean validateCategories(EList<Category> value); + + boolean validateSuppliers(EList<Supplier> value); + + boolean validatePurchaseOrders(EList<PurchaseOrder> value); + + boolean validateCustomers(EList<Customer> value); + + boolean validateSalesOrders(EList<SalesOrder> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java new file mode 100644 index 0000000000..26f64f7fc6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/CustomerValidator.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.SalesOrder; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Customer}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface CustomerValidator +{ + boolean validate(); + + boolean validateName(String value); + + boolean validateSalesOrders(EList<SalesOrder> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java new file mode 100644 index 0000000000..38c75b3ec5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/OrderDetailValidator.java @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Order; +import org.eclipse.emf.cdo.examples.company.Product; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.OrderDetail}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface OrderDetailValidator +{ + boolean validate(); + + boolean validateOrder(Order value); + + boolean validateProduct(Product value); + + boolean validatePrice(float value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java new file mode 100644 index 0000000000..a1f8166d55 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/OrderValidator.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.OrderDetail; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Order}. This doesn't really do anything, + * and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator plug-in to + * illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface OrderValidator +{ + boolean validate(); + + boolean validateOrderDetails(EList<OrderDetail> value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java new file mode 100644 index 0000000000..676d710ca5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/ProductValidator.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.OrderDetail; +import org.eclipse.emf.cdo.examples.company.VAT; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Product}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ProductValidator +{ + boolean validate(); + + boolean validateName(String value); + + boolean validateOrderDetails(EList<OrderDetail> value); + + boolean validateVat(VAT value); + + boolean validateDescription(String value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java new file mode 100644 index 0000000000..ab9f29de22 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/PurchaseOrderValidator.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Supplier; + +import java.util.Date; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.PurchaseOrder}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface PurchaseOrderValidator +{ + boolean validate(); + + boolean validateDate(Date value); + + boolean validateSupplier(Supplier value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java new file mode 100644 index 0000000000..d7ba32ac64 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/SalesOrderValidator.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.Customer; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.SalesOrder}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface SalesOrderValidator +{ + boolean validate(); + + boolean validateId(int value); + + boolean validateCustomer(Customer value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java new file mode 100644 index 0000000000..d01ea16674 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/model/src/org/eclipse/emf/cdo/examples/company/validation/SupplierValidator.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2004 - 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.examples.company.validation; + +import org.eclipse.emf.cdo.examples.company.PurchaseOrder; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.cdo.examples.company.Supplier}. This doesn't really do + * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator + * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs + * -Dorg.eclipse.emf.examples.generator.validator=false. + * + * @since 2.0 + */ +public interface SupplierValidator +{ + boolean validate(); + + boolean validatePurchaseOrders(EList<PurchaseOrder> value); + + boolean validatePreferred(boolean value); + + boolean validateName(String value); +} diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/icons/full/ctool16/NewEMFExample.gif b/plugins/org.eclipse.emf.cdo.examples.installer/icons/full/ctool16/NewEMFExample.gif Binary files differnew file mode 100644 index 0000000000..9acbbc69a4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/icons/full/ctool16/NewEMFExample.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/icons/full/wizban/NewEMFExample.gif b/plugins/org.eclipse.emf.cdo.examples.installer/icons/full/wizban/NewEMFExample.gif Binary files differnew file mode 100644 index 0000000000..e2498313a5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/icons/full/wizban/NewEMFExample.gif diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/plugin.properties b/plugins/org.eclipse.emf.cdo.examples.installer/plugin.properties index da8c5bba44..e4a4c81ac6 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/plugin.properties +++ b/plugins/org.eclipse.emf.cdo.examples.installer/plugin.properties @@ -9,3 +9,22 @@ pluginName = CDO Model Repository Examples Installer providerName = Eclipse Modeling Project + +CDOExampleCategory_name = CDO Model Repository + +ExampleMasterWizard_name = CDO Master Server Example +ExampleMasterWizard_desc = Create a plug-in project with all the dependencies needed to start an OSGi headless server with a CDO master repository. +ExampleMasterProject_desc = This project contains the needed dependency declarations and an Eclipse application launch config. + +ExampleCloneWizard_name = CDO Clone Server Example +ExampleCloneWizard_desc = Create a Java project with the dependencies and code needed to start a stand-alone CDO clone repository. +ExampleCloneProject_desc = This project contains the needed dependency declarations and an Java application launch config. + +ExampleClientWizard_name = CDO Client Example +ExampleClientWizard_desc = Create plug-in projects with all the dependencies needed to start an Eclipse IDE with a CDO client in it. +ExampleClientProject_desc = This project contains the needed dependency declarations and an Eclipse application launch config. + +ExampleModelWizard_name = CDO Model Example +ExampleModelWizard_desc = Create plug-in projects for an example CDO model and the related edit support. +ExampleModelProject_desc = This project contains the Company model and the implementation generated from it. +ExampleEditProject_desc = This project contains the item providers generated to support viewing and editing instances of the Company model. diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/plugin.xml b/plugins/org.eclipse.emf.cdo.examples.installer/plugin.xml new file mode 100644 index 0000000000..2a81ae25bf --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.examples.installer/plugin.xml @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<!-- + Copyright (c) 2004 - 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.ui.newWizards"> + <category + id="org.eclipse.emf.cdo.examples" + name="%CDOExampleCategory_name" + parentCategory="org.eclipse.ui.Examples"> + </category> + <wizard + canFinishEarly="true" + category="org.eclipse.ui.Examples/org.eclipse.emf.cdo.examples" + class="org.eclipse.emf.common.ui.wizard.ExampleInstallerWizard" + icon="icons/full/ctool16/NewEMFExample.gif" + id="org.eclipse.emf.cdo.examples.ExampleMasterWizard" + name="%ExampleMasterWizard_name" + project="true"> + <description>%ExampleMasterWizard_desc</description> + </wizard> + <wizard + canFinishEarly="true" + category="org.eclipse.ui.Examples/org.eclipse.emf.cdo.examples" + class="org.eclipse.emf.common.ui.wizard.ExampleInstallerWizard" + icon="icons/full/ctool16/NewEMFExample.gif" + id="org.eclipse.emf.cdo.examples.ExampleCloneWizard" + name="%ExampleCloneWizard_name" + project="true"> + <description>%ExampleCloneWizard_desc</description> + </wizard> + <wizard + canFinishEarly="true" + category="org.eclipse.ui.Examples/org.eclipse.emf.cdo.examples" + class="org.eclipse.emf.common.ui.wizard.ExampleInstallerWizard" + icon="icons/full/ctool16/NewEMFExample.gif" + id="org.eclipse.emf.cdo.examples.ExampleClientWizard" + name="%ExampleClientWizard_name" + project="true"> + <description>%ExampleClientWizard_desc</description> + </wizard> + <wizard + canFinishEarly="true" + category="org.eclipse.ui.Examples/org.eclipse.emf.cdo.examples" + class="org.eclipse.emf.common.ui.wizard.ExampleInstallerWizard" + icon="icons/full/ctool16/NewEMFExample.gif" + id="org.eclipse.emf.cdo.examples.ExampleModelWizard" + name="%ExampleModelWizard_name" + project="true"> + <description>%ExampleModelWizard_desc</description> + </wizard> + </extension> + + <extension point="org.eclipse.emf.common.ui.examples"> + <example + id="org.eclipse.emf.cdo.examples.ExampleMasterServer" + wizardID="org.eclipse.emf.cdo.examples.ExampleMasterWizard" + pageImage="icons/full/wizban/NewEMFExample.gif"> + <fileToOpen editorID="org.eclipse.ui.browser.editor" location="cdo.example.master/README.html"/> + <projectDescriptor + name="cdo.example.master" + contentURI="examples/master/" + description="%ExampleMasterProject_desc"/> + </example> + <example + id="org.eclipse.emf.cdo.examples.ExampleCloneServer" + wizardID="org.eclipse.emf.cdo.examples.ExampleCloneWizard" + pageImage="icons/full/wizban/NewEMFExample.gif"> + <fileToOpen editorID="org.eclipse.ui.browser.editor" location="cdo.example.clone/README.html"/> + <projectDescriptor + name="cdo.example.clone" + contentURI="examples/clone/" + description="%ExampleCloneProject_desc"/> + </example> + <example + id="org.eclipse.emf.cdo.examples.ExampleClient" + wizardID="org.eclipse.emf.cdo.examples.ExampleClientWizard" + pageImage="icons/full/wizban/NewEMFExample.gif"> + <fileToOpen editorID="org.eclipse.ui.browser.editor" location="cdo.example.client/README.html"/> + <projectDescriptor + name="cdo.example.client" + contentURI="examples/client/" + description="%ExampleClientProject_desc"/> + <projectDescriptor + name="org.eclipse.emf.cdo.examples.company" + contentURI="examples/model/" + description="%ExampleModelProject_desc"/> + <projectDescriptor + name="org.eclipse.emf.cdo.examples.company.edit" + contentURI="examples/model.edit/" + description="%ExampleEditProject_desc"/> + </example> + <example + id="org.eclipse.emf.cdo.examples.ExampleModel" + wizardID="org.eclipse.emf.cdo.examples.ExampleModelWizard" + pageImage="icons/full/wizban/NewEMFExample.gif"> + <projectDescriptor + name="org.eclipse.emf.cdo.examples.company" + contentURI="examples/model/" + description="%ExampleModelProject_desc"/> + <projectDescriptor + name="org.eclipse.emf.cdo.examples.company.edit" + contentURI="examples/model.edit/" + description="%ExampleEditProject_desc"/> + </example> + </extension> + +</plugin> diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/update.ant b/plugins/org.eclipse.emf.cdo.examples.installer/update.ant index 0f11e509af..fef02a44de 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/update.ant +++ b/plugins/org.eclipse.emf.cdo.examples.installer/update.ant @@ -12,9 +12,11 @@ <project name="UpdateExamplesInstaller" default="main" basedir=".."> <target name="main"> - <ant antfile="org.eclipse.emf.cdo.examples.installer.client/update.ant" /> - <ant antfile="org.eclipse.emf.cdo.examples.installer.clone/update.ant" /> <ant antfile="org.eclipse.emf.cdo.examples.installer.master/update.ant" /> + <ant antfile="org.eclipse.emf.cdo.examples.installer.clone/update.ant" /> + <ant antfile="org.eclipse.emf.cdo.examples.installer.client/update.ant" /> + <ant antfile="org.eclipse.emf.cdo.examples.company/update.ant" /> + <ant antfile="org.eclipse.emf.cdo.examples.company.edit/update.ant" /> </target> </project> |