Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
3,391 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>aaa.hamburg</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | ||
org.eclipse.jdt.core.compiler.compliance=1.6 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Hamburg | ||
Bundle-SymbolicName: aaa.hamburg; singleton:=true | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-Activator: aaa.hamburg.Activator | ||
Require-Bundle: org.eclipse.ui, | ||
org.eclipse.core.runtime, | ||
org.eclipse.core.databinding, | ||
org.eclipse.core.databinding.beans, | ||
org.eclipse.core.databinding.observable, | ||
org.eclipse.core.databinding.property, | ||
org.eclipse.jface.databinding, | ||
com.ibm.icu | ||
Bundle-ActivationPolicy: lazy | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = plugin.xml,\ | ||
META-INF/,\ | ||
. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.4"?> | ||
<plugin> | ||
|
||
<extension | ||
id="application" | ||
point="org.eclipse.core.runtime.applications"> | ||
<application> | ||
<run | ||
class="aaa.hamburg.Application"> | ||
</run> | ||
</application> | ||
</extension> | ||
<extension | ||
point="org.eclipse.ui.perspectives"> | ||
<perspective | ||
name="Perspective" | ||
class="aaa.hamburg.Perspective" | ||
id="aaa.hamburg.perspective"> | ||
</perspective> | ||
</extension> | ||
<extension | ||
point="org.eclipse.ui.views"> | ||
<view | ||
name="View" | ||
class="aaa.hamburg.View" | ||
id="aaa.hamburg.view"> | ||
</view> | ||
</extension> | ||
<extension | ||
point="org.eclipse.ui.perspectiveExtensions"> | ||
<perspectiveExtension | ||
targetID="*"> | ||
<view | ||
standalone="true" | ||
minimized="false" | ||
relative="org.eclipse.ui.editorss" | ||
relationship="left" | ||
id="aaa.hamburg.view"> | ||
</view> | ||
</perspectiveExtension> | ||
</extension> | ||
<extension | ||
point="org.eclipse.ui.menus"> | ||
<menuContribution | ||
locationURI="menu:org.eclipse.ui.main.menu"> | ||
<menu | ||
label="File"> | ||
<command | ||
commandId="org.eclipse.ui.file.exit" | ||
label="Exit"> | ||
</command> | ||
</menu> | ||
</menuContribution> | ||
</extension> | ||
|
||
</plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package aaa.hamburg; | ||
|
||
import org.eclipse.jface.resource.ImageDescriptor; | ||
import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
import org.osgi.framework.BundleContext; | ||
|
||
/** | ||
* The activator class controls the plug-in life cycle | ||
*/ | ||
public class Activator extends AbstractUIPlugin { | ||
|
||
// The plug-in ID | ||
public static final String PLUGIN_ID = "aaa.hamburg"; //$NON-NLS-1$ | ||
|
||
// The shared instance | ||
private static Activator plugin; | ||
|
||
/** | ||
* The constructor | ||
*/ | ||
public Activator() { | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) | ||
*/ | ||
public void start(BundleContext context) throws Exception { | ||
super.start(context); | ||
plugin = this; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) | ||
*/ | ||
public void stop(BundleContext context) throws Exception { | ||
plugin = null; | ||
super.stop(context); | ||
} | ||
|
||
/** | ||
* Returns the shared instance | ||
* | ||
* @return the shared instance | ||
*/ | ||
public static Activator getDefault() { | ||
return plugin; | ||
} | ||
|
||
/** | ||
* Returns an image descriptor for the image file at the given | ||
* plug-in relative path | ||
* | ||
* @param path the path | ||
* @return the image descriptor | ||
*/ | ||
public static ImageDescriptor getImageDescriptor(String path) { | ||
return imageDescriptorFromPlugin(PLUGIN_ID, path); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package aaa.hamburg; | ||
|
||
import org.eclipse.equinox.app.IApplication; | ||
import org.eclipse.equinox.app.IApplicationContext; | ||
import org.eclipse.swt.widgets.Display; | ||
import org.eclipse.ui.IWorkbench; | ||
import org.eclipse.ui.PlatformUI; | ||
|
||
/** | ||
* This class controls all aspects of the application's execution | ||
*/ | ||
public class Application implements IApplication { | ||
|
||
/* (non-Javadoc) | ||
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext) | ||
*/ | ||
public Object start(IApplicationContext context) { | ||
Display display = PlatformUI.createDisplay(); | ||
try { | ||
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor()); | ||
if (returnCode == PlatformUI.RETURN_RESTART) { | ||
return IApplication.EXIT_RESTART; | ||
} | ||
return IApplication.EXIT_OK; | ||
} finally { | ||
display.dispose(); | ||
} | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.eclipse.equinox.app.IApplication#stop() | ||
*/ | ||
public void stop() { | ||
if (!PlatformUI.isWorkbenchRunning()) | ||
return; | ||
final IWorkbench workbench = PlatformUI.getWorkbench(); | ||
final Display display = workbench.getDisplay(); | ||
display.syncExec(new Runnable() { | ||
public void run() { | ||
if (!display.isDisposed()) | ||
workbench.close(); | ||
} | ||
}); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
aaa.hamburg/src/aaa/hamburg/ApplicationActionBarAdvisor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package aaa.hamburg; | ||
|
||
import org.eclipse.ui.application.ActionBarAdvisor; | ||
import org.eclipse.ui.application.IActionBarConfigurer; | ||
|
||
/** | ||
* An action bar advisor is responsible for creating, adding, and disposing of | ||
* the actions added to a workbench window. Each window will be populated with | ||
* new actions. | ||
*/ | ||
public class ApplicationActionBarAdvisor extends ActionBarAdvisor { | ||
|
||
// Actions - important to allocate these only in makeActions, and then use | ||
// them | ||
// in the fill methods. This ensures that the actions aren't recreated | ||
// when fillActionBars is called with FILL_PROXY. | ||
|
||
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { | ||
super(configurer); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
aaa.hamburg/src/aaa/hamburg/ApplicationWorkbenchAdvisor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package aaa.hamburg; | ||
|
||
import org.eclipse.ui.application.IWorkbenchWindowConfigurer; | ||
import org.eclipse.ui.application.WorkbenchAdvisor; | ||
import org.eclipse.ui.application.WorkbenchWindowAdvisor; | ||
|
||
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor { | ||
|
||
private static final String PERSPECTIVE_ID = "aaa.hamburg.perspective"; | ||
|
||
public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor( | ||
IWorkbenchWindowConfigurer configurer) { | ||
return new ApplicationWorkbenchWindowAdvisor(configurer); | ||
} | ||
|
||
public String getInitialWindowPerspectiveId() { | ||
return PERSPECTIVE_ID; | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
aaa.hamburg/src/aaa/hamburg/ApplicationWorkbenchWindowAdvisor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package aaa.hamburg; | ||
|
||
import org.eclipse.swt.graphics.Point; | ||
import org.eclipse.ui.application.ActionBarAdvisor; | ||
import org.eclipse.ui.application.IActionBarConfigurer; | ||
import org.eclipse.ui.application.IWorkbenchWindowConfigurer; | ||
import org.eclipse.ui.application.WorkbenchWindowAdvisor; | ||
|
||
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { | ||
|
||
public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { | ||
super(configurer); | ||
} | ||
|
||
public ActionBarAdvisor createActionBarAdvisor( | ||
IActionBarConfigurer configurer) { | ||
return new ApplicationActionBarAdvisor(configurer); | ||
} | ||
|
||
public void preWindowOpen() { | ||
IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); | ||
configurer.setInitialSize(new Point(400, 300)); | ||
configurer.setShowCoolBar(false); | ||
configurer.setShowStatusLine(false); | ||
configurer.setTitle("RCP Application"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package aaa.hamburg; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class Group { | ||
List<Person> person = new ArrayList<Person>(); | ||
|
||
public List<Person> getPerson() { | ||
return person; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package aaa.hamburg; | ||
|
||
public class Person { | ||
private String firstName; | ||
private String lastName; | ||
private boolean married; | ||
|
||
public String getFirstName() { | ||
return firstName; | ||
} | ||
|
||
public void setFirstName(String firstName) { | ||
this.firstName = firstName; | ||
} | ||
|
||
public String getLastName() { | ||
return lastName; | ||
} | ||
|
||
public void setLastName(String lastName) { | ||
this.lastName = lastName; | ||
} | ||
|
||
public boolean isMarried() { | ||
return married; | ||
} | ||
|
||
public void setMarried(boolean married) { | ||
this.married = married; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package aaa.hamburg; | ||
|
||
import org.eclipse.ui.IPageLayout; | ||
import org.eclipse.ui.IPerspectiveFactory; | ||
|
||
public class Perspective implements IPerspectiveFactory { | ||
|
||
public void createInitialLayout(IPageLayout layout) { | ||
layout.setEditorAreaVisible(false); | ||
layout.setFixed(true); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.