Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d5eb87bb3afac5c59e9787511f31dc0e6235d309 (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
/*
 * Copyright (c) 2006 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
 */

«DEFINE Init(String pluginID, String pluginActivatorQualifiedName, List[String] exportedPackages, List[String] requiredBundles) FOR Object-»
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»
«LET requiredBundles.union({"org.eclipse.core.runtime","org.eclipse.draw2d"}) AS s-»
Require-Bundle:«EXPAND requireBundleHeader FOR s»
«ENDLET-»
Eclipse-LazyStart: true
«ENDDEFINE»

«DEFINE exportPackageHeader FOR List[String]-»
«EXPAND print FOREACH this SEPARATOR ",\n"-»
«ENDDEFINE»

«REM»FIXME Set[String] - improve union recognition«ENDREM»
«DEFINE requireBundleHeader FOR Set[Object]-»
«EXPAND print FOREACH this.typeSelect(String) SEPARATOR ",\n"-»
«ENDDEFINE»

«DEFINE print FOR string» «this»«ENDDEFINE»

Back to the top