blob: dcbeeb8d1cd0474f63a57b7ad8b8d59bc0712ca0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* Copyright (c) 2006, 2007 Borland Software Corporation
*
* 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:
* Artem Tikhomirov (Borland) - initial API and implementation
*/
«EXTENSION Util»
/*
* FIXME add a simple model (either non-generated, .ecore only?) to descripbe GenConfig
*/
«DEFINE Init(pluginID : String, pluginActivatorQualifiedName : String, exportedPackages : Sequence(String), referencedBundles : Sequence(String)) FOR OclAny-»
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: «pluginID»; singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: %providerName
Bundle-Activator: «pluginActivatorQualifiedName»
Bundle-Localization: plugin
Export-Package:«EXPAND exportPackageHeader FOR exportedPackages»
Require-Bundle:«EXPAND requireBundleHeader FOR requiredBundles(referencedBundles)»
Eclipse-LazyStart: true
«EXPAND additions-»
«ENDDEFINE»
«DEFINE exportPackageHeader FOR Sequence(String)-»
«EXPAND print FOREACH self SEPARATOR ',\n'-»
«ENDDEFINE»
«REM»FIXME Set[String] - improve union recognition«ENDREM»
«DEFINE requireBundleHeader FOR Collection(OclAny)-»
«EXPAND print FOREACH (self->collect(it | it))[String]->asSequence() SEPARATOR ',\n'-»
«ENDDEFINE»
«DEFINE print FOR String» «self»«ENDDEFINE»
«DEFINE additions FOR OclAny»«ENDDEFINE»
|