Skip to content

Commit c304bab

Browse files
committed
updates
1 parent 0d32b31 commit c304bab

55 files changed

Lines changed: 3391 additions & 286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

aaa.hamburg/.classpath

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

aaa.hamburg/.project

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>aaa.hamburg</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.pde.PluginNature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
</natures>
28+
</projectDescription>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
4+
org.eclipse.jdt.core.compiler.compliance=1.6
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.6

aaa.hamburg/META-INF/MANIFEST.MF

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Hamburg
4+
Bundle-SymbolicName: aaa.hamburg; singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Activator: aaa.hamburg.Activator
7+
Require-Bundle: org.eclipse.ui,
8+
org.eclipse.core.runtime,
9+
org.eclipse.core.databinding,
10+
org.eclipse.core.databinding.beans,
11+
org.eclipse.core.databinding.observable,
12+
org.eclipse.core.databinding.property,
13+
org.eclipse.jface.databinding,
14+
com.ibm.icu
15+
Bundle-ActivationPolicy: lazy
16+
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

aaa.hamburg/build.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source.. = src/
2+
output.. = bin/
3+
bin.includes = plugin.xml,\
4+
META-INF/,\
5+
.
637 Bytes
Loading
1.16 KB
Loading

aaa.hamburg/plugin.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.4"?>
3+
<plugin>
4+
5+
<extension
6+
id="application"
7+
point="org.eclipse.core.runtime.applications">
8+
<application>
9+
<run
10+
class="aaa.hamburg.Application">
11+
</run>
12+
</application>
13+
</extension>
14+
<extension
15+
point="org.eclipse.ui.perspectives">
16+
<perspective
17+
name="Perspective"
18+
class="aaa.hamburg.Perspective"
19+
id="aaa.hamburg.perspective">
20+
</perspective>
21+
</extension>
22+
<extension
23+
point="org.eclipse.ui.views">
24+
<view
25+
name="View"
26+
class="aaa.hamburg.View"
27+
id="aaa.hamburg.view">
28+
</view>
29+
</extension>
30+
<extension
31+
point="org.eclipse.ui.perspectiveExtensions">
32+
<perspectiveExtension
33+
targetID="*">
34+
<view
35+
standalone="true"
36+
minimized="false"
37+
relative="org.eclipse.ui.editorss"
38+
relationship="left"
39+
id="aaa.hamburg.view">
40+
</view>
41+
</perspectiveExtension>
42+
</extension>
43+
<extension
44+
point="org.eclipse.ui.menus">
45+
<menuContribution
46+
locationURI="menu:org.eclipse.ui.main.menu">
47+
<menu
48+
label="File">
49+
<command
50+
commandId="org.eclipse.ui.file.exit"
51+
label="Exit">
52+
</command>
53+
</menu>
54+
</menuContribution>
55+
</extension>
56+
57+
</plugin>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
package aaa.hamburg;
2+
3+
import org.eclipse.jface.resource.ImageDescriptor;
4+
import org.eclipse.ui.plugin.AbstractUIPlugin;
5+
import org.osgi.framework.BundleContext;
6+
7+
/**
8+
* The activator class controls the plug-in life cycle
9+
*/
10+
public class Activator extends AbstractUIPlugin {
11+
12+
// The plug-in ID
13+
public static final String PLUGIN_ID = "aaa.hamburg"; //$NON-NLS-1$
14+
15+
// The shared instance
16+
private static Activator plugin;
17+
18+
/**
19+
* The constructor
20+
*/
21+
public Activator() {
22+
}
23+
24+
/*
25+
* (non-Javadoc)
26+
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
27+
*/
28+
public void start(BundleContext context) throws Exception {
29+
super.start(context);
30+
plugin = this;
31+
}
32+
33+
/*
34+
* (non-Javadoc)
35+
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
36+
*/
37+
public void stop(BundleContext context) throws Exception {
38+
plugin = null;
39+
super.stop(context);
40+
}
41+
42+
/**
43+
* Returns the shared instance
44+
*
45+
* @return the shared instance
46+
*/
47+
public static Activator getDefault() {
48+
return plugin;
49+
}
50+
51+
/**
52+
* Returns an image descriptor for the image file at the given
53+
* plug-in relative path
54+
*
55+
* @param path the path
56+
* @return the image descriptor
57+
*/
58+
public static ImageDescriptor getImageDescriptor(String path) {
59+
return imageDescriptorFromPlugin(PLUGIN_ID, path);
60+
}
61+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package aaa.hamburg;
2+
3+
import org.eclipse.equinox.app.IApplication;
4+
import org.eclipse.equinox.app.IApplicationContext;
5+
import org.eclipse.swt.widgets.Display;
6+
import org.eclipse.ui.IWorkbench;
7+
import org.eclipse.ui.PlatformUI;
8+
9+
/**
10+
* This class controls all aspects of the application's execution
11+
*/
12+
public class Application implements IApplication {
13+
14+
/* (non-Javadoc)
15+
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
16+
*/
17+
public Object start(IApplicationContext context) {
18+
Display display = PlatformUI.createDisplay();
19+
try {
20+
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
21+
if (returnCode == PlatformUI.RETURN_RESTART) {
22+
return IApplication.EXIT_RESTART;
23+
}
24+
return IApplication.EXIT_OK;
25+
} finally {
26+
display.dispose();
27+
}
28+
}
29+
30+
/* (non-Javadoc)
31+
* @see org.eclipse.equinox.app.IApplication#stop()
32+
*/
33+
public void stop() {
34+
if (!PlatformUI.isWorkbenchRunning())
35+
return;
36+
final IWorkbench workbench = PlatformUI.getWorkbench();
37+
final Display display = workbench.getDisplay();
38+
display.syncExec(new Runnable() {
39+
public void run() {
40+
if (!display.isDisposed())
41+
workbench.close();
42+
}
43+
});
44+
}
45+
}

0 commit comments

Comments
 (0)