Skip to content

Commit b80fe2d

Browse files
committed
making aa-api an eclipse plugin, for dev purposese
1 parent e68ded3 commit b80fe2d

5 files changed

Lines changed: 91 additions & 1 deletion

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: androidannotations-api
4+
Bundle-SymbolicName: com.googlecode.androidannotations-api;singleton:=true
5+
Bundle-Version: 1.0.0
6+
Export-Package: com.googlecode.androidannotations.annotations,
7+
com.googlecode.androidannotations.annotations.res,
8+
com.googlecode.androidannotations.annotations.rest,
9+
com.googlecode.androidannotations.annotations.sharedpreferences,
10+
com.googlecode.androidannotations.api,
11+
com.googlecode.androidannotations.api.rest,
12+
com.googlecode.androidannotations.api.sharedpreferences
13+
Bundle-Vendor: androidannotations
14+
Bundle-Activator: com.googlecode.androidannotations.api.Activator
15+
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
16+
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.8.0",
17+
org.eclipse.jdt.apt.core;bundle-version="3.3.500",
18+
androidannotations-dependencies;bundle-version="1.0.0"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source.. = src/main/java/,\
2+
src/test/java/,\
3+
src/main/eclipse/
4+
bin.includes = META-INF/,\
5+
.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
package com.googlecode.androidannotations.api;
2+
/**
3+
* Copyright (C) 2010-2012 eBusiness Information, Excilys Group
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed To in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
19+
import org.eclipse.core.runtime.Plugin;
20+
import org.osgi.framework.BundleContext;
21+
22+
/**
23+
* The activator class controls the plug-in life cycle
24+
*/
25+
public class Activator extends Plugin {
26+
27+
// The plug-in ID
28+
public static final String PLUGIN_ID = "com.googlecode.androidannotations-api";
29+
30+
// The shared instance
31+
private static Activator plugin;
32+
33+
/**
34+
* The constructor
35+
*/
36+
public Activator() {
37+
}
38+
39+
/*
40+
* (non-Javadoc)
41+
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
42+
*/
43+
public void start(BundleContext context) throws Exception {
44+
super.start(context);
45+
plugin = this;
46+
}
47+
48+
/*
49+
* (non-Javadoc)
50+
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
51+
*/
52+
public void stop(BundleContext context) throws Exception {
53+
plugin = null;
54+
super.stop(context);
55+
}
56+
57+
/**
58+
* Returns the shared instance
59+
*
60+
* @return the shared instance
61+
*/
62+
public static Activator getDefault() {
63+
return plugin;
64+
}
65+
}

‎AndroidAnnotations/androidannotations/.settings/org.eclipse.core.resources.prefs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ encoding//src/main/java=UTF-8
33
encoding//src/main/resources=UTF-8
44
encoding//src/main/resources/rebel.xml=UTF-8
55
encoding//src/test/java=UTF-8
6+
encoding//src/test/resources=UTF-8
67
encoding/<project>=UTF-8

‎AndroidAnnotations/androidannotations/META-INF/MANIFEST.MF‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Export-Package: com.googlecode.androidannotations,
2222
Bundle-Vendor: androidannotations
2323
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.6.0",
2424
org.eclipse.jdt.apt.core;bundle-version="3.3.402",
25-
androidannotations-dependencies;bundle-version="1.0.0"
25+
androidannotations-dependencies;bundle-version="1.0.0",
26+
com.googlecode.androidannotations-api;bundle-version="1.0.0"
2627
Import-Package: com.googlecode.androidannotations
2728
Bundle-Activator: com.googlecode.androidannotations.Activator
2829
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

0 commit comments

Comments
 (0)