Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Activator.java
Go to the documentation of this file.
1
package
javafxmlpackage;
2
3
import
org.eclipse.ui.plugin.AbstractUIPlugin;
4
import
org.osgi.framework.BundleContext;
5
6
/**
7
* The activator class controls the plug-in life cycle
8
*/
9
public
class
Activator
extends
AbstractUIPlugin {
10
11
// The plug-in ID
12
/**
13
* The plug-in ID
14
*/
15
public
static
final
String
PLUGIN_ID
=
"javaFXMLpackage"
;
//$NON-NLS-1$
16
17
// The shared instance
18
private
static
Activator
plugin
;
19
20
/**
21
* The constructor
22
*/
23
public
Activator
() {
24
}
25
26
/*
27
* (non-Javadoc)
28
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
29
*/
30
@Override
31
public
void
start
(BundleContext context)
throws
Exception {
32
super.start(context);
33
plugin
=
this
;
34
}
35
36
/*
37
* (non-Javadoc)
38
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
39
*/
40
@Override
41
public
void
stop
(BundleContext context)
throws
Exception {
42
plugin
= null;
43
super.
stop
(context);
44
}
45
46
/**
47
* Returns the shared instance
48
*
49
* @return the shared instance
50
*/
51
public
static
Activator
getDefault
() {
52
return
plugin
;
53
}
54
55
}
trunk
FXMLPackage
src
javafxmlpackage
Activator.java
Generated on Sat Feb 4 2017 23:18:40 by
1.8.3