Skip to content

Commit 1acacaf

Browse files
committed
Adds Java8 lambda example from Simon
1 parent d7d63a9 commit 1acacaf

File tree

25 files changed

+369
-0
lines changed

25 files changed

+369
-0
lines changed

com.vogella.eclipse.e3.coreexpressions/plugin.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@
115115
</with>
116116
</visibleWhen>
117117
</command>
118+
<command
119+
commandId="org.eclipse.ui.file.exit"
120+
label="Exit visible per perspective"
121+
style="push">
122+
<visibleWhen
123+
checkEnabled="false">
124+
<reference
125+
definitionId="isPerspectiveInstance">
126+
</reference>
127+
</visibleWhen>
128+
</command>
118129
</toolbar>
119130
</menuContribution>
120131
</extension>

com.vogella.java8.swt/.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.8"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>

com.vogella.java8.swt/.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>com.vogella.java8.swt</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.8
4+
org.eclipse.jdt.core.compiler.compliance=1.8
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.8
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_6wlLcMgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.application" bindingContexts="_6wlLecgZEeSyMNYR5xypkQ">
3+
<children xsi:type="basic:TrimmedWindow" xmi:id="_6wlLccgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.window.main" label="Eclipse 4 RCP Application" width="500" height="400">
4+
<children xsi:type="advanced:PerspectiveStack" xmi:id="_6wlLkMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.ide.perspectivestack">
5+
<children xsi:type="advanced:Perspective" xmi:id="_6wlLkcgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.perspective.sample">
6+
<children xsi:type="basic:PartSashContainer" xmi:id="_6wlLksgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.partsashcontainer.sample">
7+
<children xsi:type="basic:PartStack" xmi:id="_6wlLk8gZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.partstack.sample">
8+
<children xsi:type="basic:Part" xmi:id="_6wlLlMgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.part.sample" contributionURI="bundleclass://com.vogella.java8.swt/com.vogella.java8.swt.parts.SamplePart" label="Sample Part"/>
9+
</children>
10+
</children>
11+
</children>
12+
</children>
13+
<mainMenu xmi:id="_6wlLicgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.menu">
14+
<children xsi:type="menu:Menu" xmi:id="_6wlLisgZEeSyMNYR5xypkQ" elementId="file" label="File">
15+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLi8gZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handleditem.file.open" label="Open" iconURI="platform:/plugin/com.vogella.java8.swt/icons/sample.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
16+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjMgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handleditem.save" label="Save" iconURI="platform:/plugin/com.vogella.java8.swt/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
17+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLjcgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handleditem.quit" label="Quit" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
18+
</children>
19+
<children xsi:type="menu:Menu" xmi:id="_6wlLjsgZEeSyMNYR5xypkQ" elementId="help" label="Help">
20+
<children xsi:type="menu:HandledMenuItem" xmi:id="_6wlLj8gZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handleditem.about" label="About" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
21+
</children>
22+
</mainMenu>
23+
<trimBars xmi:id="_6wlLlcgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.trimbar.top">
24+
<children xsi:type="menu:ToolBar" xmi:id="_6wlLlsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.main.toolbar">
25+
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLl8gZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handleditem.trimbar.top.open" iconURI="platform:/plugin/com.vogella.java8.swt/icons/sample.png" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
26+
<children xsi:type="menu:HandledToolItem" xmi:id="_6wlLmMgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handleditem.trimbar.top.save" iconURI="platform:/plugin/com.vogella.java8.swt/icons/save_edit.png" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
27+
</children>
28+
</trimBars>
29+
</children>
30+
<handlers xmi:id="_6wlLfcgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handler.quitCommand" contributionURI="bundleclass://com.vogella.java8.swt/com.vogella.java8.swt.handlers.QuitHandler" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
31+
<handlers xmi:id="_6wlLgcgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handler.openCommand" contributionURI="bundleclass://com.vogella.java8.swt/com.vogella.java8.swt.handlers.OpenHandler" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
32+
<handlers xmi:id="_6wlLhMgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handler.saveCommand" contributionURI="bundleclass://com.vogella.java8.swt/com.vogella.java8.swt.handlers.SaveHandler" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
33+
<handlers xmi:id="_6wlLh8gZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.handler.aboutCommand" contributionURI="bundleclass://com.vogella.java8.swt/com.vogella.java8.swt.handlers.AboutHandler" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
34+
<bindingTables xmi:id="_6wlLfsgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.bindingtable" bindingContext="_6wlLecgZEeSyMNYR5xypkQ">
35+
<bindings xmi:id="_6wlLf8gZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.keybinding.m1q" keySequence="M1+Q" command="_6wlLfMgZEeSyMNYR5xypkQ"/>
36+
<bindings xmi:id="_6wlLgsgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.keybinding.m1o" keySequence="M1+O" command="_6wlLgMgZEeSyMNYR5xypkQ"/>
37+
<bindings xmi:id="_6wlLhcgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.keybinding.m1s" keySequence="M1+S" command="_6wlLg8gZEeSyMNYR5xypkQ"/>
38+
<bindings xmi:id="_6wlLiMgZEeSyMNYR5xypkQ" elementId="com.vogella.java8.swt.keybinding.m1a" keySequence="M1+A" command="_6wlLhsgZEeSyMNYR5xypkQ"/>
39+
</bindingTables>
40+
<rootContext xmi:id="_6wlLecgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows">
41+
<children xmi:id="_6wlLesgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.window" name="In Windows"/>
42+
<children xmi:id="_6wlLe8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
43+
</rootContext>
44+
<commands xmi:id="_6wlLfMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.exit" commandName="quitCommand"/>
45+
<commands xmi:id="_6wlLgMgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.open" commandName="openCommand"/>
46+
<commands xmi:id="_6wlLg8gZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.file.save" commandName="saveCommand"/>
47+
<commands xmi:id="_6wlLhsgZEeSyMNYR5xypkQ" elementId="org.eclipse.ui.help.aboutAction" commandName="aboutCommand"/>
48+
<addons xmi:id="_6wlLcsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
49+
<addons xmi:id="_6wlLc8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
50+
<addons xmi:id="_6wlLdMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
51+
<addons xmi:id="_6wlLdcgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
52+
<addons xmi:id="_6wlLdsgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
53+
<addons xmi:id="_6wlLd8gZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
54+
<addons xmi:id="_6wlLeMgZEeSyMNYR5xypkQ" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
55+
</application:Application>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Swt
4+
Bundle-SymbolicName: com.vogella.java8.swt;singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: VOGELLA
7+
Require-Bundle: javax.inject;bundle-version="0.0.0",
8+
org.eclipse.core.runtime;bundle-version="0.0.0",
9+
org.eclipse.swt;bundle-version="0.0.0",
10+
org.eclipse.e4.ui.model.workbench;bundle-version="0.0.0",
11+
org.eclipse.jface;bundle-version="0.0.0",
12+
org.eclipse.e4.ui.services;bundle-version="0.0.0",
13+
org.eclipse.e4.ui.workbench;bundle-version="0.0.0",
14+
org.eclipse.e4.core.di;bundle-version="0.0.0",
15+
org.eclipse.e4.ui.di;bundle-version="0.0.0",
16+
org.eclipse.e4.core.contexts;bundle-version="0.0.0"
17+
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)