Révision 308
tmp/org.txm.utils/META-INF/MANIFEST.MF (revision 308) | ||
---|---|---|
3 | 3 |
Bundle-Name: Utils |
4 | 4 |
Bundle-SymbolicName: org.txm.utils |
5 | 5 |
Bundle-Version: 1.0.0.qualifier |
6 |
Bundle-Activator: org.txm.utils.Activator |
|
7 | 6 |
Require-Bundle: org.eclipse.osgi.util;bundle-version="3.3.0";visibility:=reexport, |
8 | 7 |
org.eclipse.core.runtime, |
9 | 8 |
org.txm.libs.saxon;bundle-version="9.0.0";visibility:=reexport, |
10 | 9 |
org.eclipse.core.net;bundle-version="1.2.200" |
11 | 10 |
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 |
12 |
Bundle-ActivationPolicy: lazy |
|
13 | 11 |
Export-Package: org.apache.commons.cli, |
14 | 12 |
org.apache.commons.io;uses:="org.apache.commons.io.filefilter", |
15 | 13 |
org.apache.commons.io.comparator;uses:="org.apache.commons.io", |
tmp/org.txm.utils/src/org/txm/utils/Activator.java (revision 308) | ||
---|---|---|
1 |
package org.txm.utils; |
|
2 |
|
|
3 |
import org.eclipse.core.runtime.Plugin; |
|
4 |
import org.osgi.framework.BundleContext; |
|
5 |
|
|
6 |
/** |
|
7 |
* The activator class controls the plug-in life cycle |
|
8 |
*/ |
|
9 |
public class Activator extends Plugin { |
|
10 |
|
|
11 |
// The plug-in ID |
|
12 |
public static final String PLUGIN_ID = "org.txm.utils"; //$NON-NLS-1$ |
|
13 |
|
|
14 |
// The shared instance |
|
15 |
private static Activator plugin; |
|
16 |
|
|
17 |
/** |
|
18 |
* The constructor |
|
19 |
*/ |
|
20 |
public Activator() { |
|
21 |
} |
|
22 |
|
|
23 |
/* |
|
24 |
* (non-Javadoc) |
|
25 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
|
26 |
*/ |
|
27 |
public void start(BundleContext context) throws Exception { |
|
28 |
super.start(context); |
|
29 |
plugin = this; |
|
30 |
} |
|
31 |
|
|
32 |
/* |
|
33 |
* (non-Javadoc) |
|
34 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |
|
35 |
*/ |
|
36 |
public void stop(BundleContext context) throws Exception { |
|
37 |
plugin = null; |
|
38 |
super.stop(context); |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* Returns the shared instance |
|
43 |
* |
|
44 |
* @return the shared instance |
|
45 |
*/ |
|
46 |
public static Activator getDefault() { |
|
47 |
return plugin; |
|
48 |
} |
|
49 |
|
|
50 |
} |
Formats disponibles : Unified diff