Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Constructed from executing exercise 4
- Loading branch information
Showing
36 changed files
with
427 additions
and
590 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
2 changes: 1 addition & 1 deletion
2
exercises/Exercise_05_Add_Product/tychodemo.bundle.tests/build.properties
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source.. = src/ | ||
output.. = target/classes/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
. |
12 changes: 6 additions & 6 deletions
12
exercises/Exercise_05_Add_Product/tychodemo.bundle.tests/pom.xml
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>tychodemo</groupId> | ||
<artifactId>tychodemo.parent</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<relativePath>../tychodemo.parent/pom.xml</relativePath> | ||
<relativePath>../tychodemo.parent</relativePath> | ||
</parent> | ||
|
||
<artifactId>tychodemo.bundle.tests</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>eclipse-test-plugin</packaging> | ||
|
||
</project> |
18 changes: 0 additions & 18 deletions
18
exercises/Exercise_05_Add_Product/tychodemo.bundle.tests/src/tychodemo/SimpleTest.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...05_Add_Product/tychodemo.bundle.tests/src/tychodemo/bundle/handlers/AboutHandlerTest.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,18 @@ | ||
package tychodemo.bundle.handlers; | ||
|
||
import static org.junit.Assert.*; | ||
import static org.junit.matchers.JUnitMatchers.containsString; | ||
|
||
import org.hamcrest.CoreMatchers; | ||
import org.junit.Test; | ||
import org.junit.matchers.JUnitMatchers; | ||
|
||
public class AboutHandlerTest { | ||
|
||
@Test | ||
public void testGetGreeting() { | ||
AboutHandler aboutHandler = new AboutHandler(); | ||
assertThat(aboutHandler.getGreeting(), containsString("Hello Tycho Demo")); | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
exercises/Exercise_05_Add_Product/tychodemo.bundle/Application.e4xmi
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,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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="_XS7TUHHYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.ide.application" bindingContexts="_XS7TUXHYEeGdaqKGFl0Tiw"> | ||
<children xsi:type="basic:TrimmedWindow" xmi:id="_XS76Z3HYEeGdaqKGFl0Tiw" label="tychodemo.bundle" width="500" height="400"> | ||
<children xsi:type="advanced:PerspectiveStack" xmi:id="_XS76b3HYEeGdaqKGFl0Tiw"> | ||
<children xsi:type="advanced:Perspective" xmi:id="_XS76cHHYEeGdaqKGFl0Tiw"> | ||
<children xsi:type="basic:PartSashContainer" xmi:id="_XS76cXHYEeGdaqKGFl0Tiw"> | ||
<children xsi:type="basic:PartStack" xmi:id="_XS8hcHHYEeGdaqKGFl0Tiw"/> | ||
</children> | ||
</children> | ||
</children> | ||
<mainMenu xmi:id="_XS76aHHYEeGdaqKGFl0Tiw" elementId="menu:org.eclipse.ui.main.menu"> | ||
<children xsi:type="menu:Menu" xmi:id="_XS76aXHYEeGdaqKGFl0Tiw" label="File"> | ||
<children xsi:type="menu:HandledMenuItem" xmi:id="_XS76anHYEeGdaqKGFl0Tiw" label="Open" iconURI="platform:/plugin/tychodemo.bundle/icons/sample.gif" command="_XS7TXnHYEeGdaqKGFl0Tiw"/> | ||
<children xsi:type="menu:HandledMenuItem" xmi:id="_XS76a3HYEeGdaqKGFl0Tiw" label="Save" iconURI="platform:/plugin/tychodemo.bundle/icons/save_edit.gif" command="_XS76YXHYEeGdaqKGFl0Tiw"/> | ||
<children xsi:type="menu:HandledMenuItem" xmi:id="_XS76bHHYEeGdaqKGFl0Tiw" label="Quit" command="_XS7TWnHYEeGdaqKGFl0Tiw"/> | ||
</children> | ||
<children xsi:type="menu:Menu" xmi:id="_XS76bXHYEeGdaqKGFl0Tiw" label="Help"> | ||
<children xsi:type="menu:HandledMenuItem" xmi:id="_XS76bnHYEeGdaqKGFl0Tiw" label="About" command="_XS76ZHHYEeGdaqKGFl0Tiw"/> | ||
</children> | ||
</mainMenu> | ||
<trimBars xmi:id="_XS8hcXHYEeGdaqKGFl0Tiw"> | ||
<children xsi:type="menu:ToolBar" xmi:id="_XS8hcnHYEeGdaqKGFl0Tiw" elementId="toolbar:org.eclipse.ui.main.toolbar"> | ||
<children xsi:type="menu:HandledToolItem" xmi:id="_XS8hc3HYEeGdaqKGFl0Tiw" iconURI="platform:/plugin/tychodemo.bundle/icons/sample.gif" command="_XS7TXnHYEeGdaqKGFl0Tiw"/> | ||
<children xsi:type="menu:HandledToolItem" xmi:id="_XS8hdHHYEeGdaqKGFl0Tiw" iconURI="platform:/plugin/tychodemo.bundle/icons/save_edit.gif" command="_XS76YXHYEeGdaqKGFl0Tiw"/> | ||
</children> | ||
</trimBars> | ||
</children> | ||
<handlers xmi:id="_XS7TW3HYEeGdaqKGFl0Tiw" contributionURI="bundleclass://tychodemo.bundle/tychodemo.bundle.handlers.QuitHandler" command="_XS7TWnHYEeGdaqKGFl0Tiw"/> | ||
<handlers xmi:id="_XS7TX3HYEeGdaqKGFl0Tiw" contributionURI="bundleclass://tychodemo.bundle/tychodemo.bundle.handlers.OpenHandler" command="_XS7TXnHYEeGdaqKGFl0Tiw"/> | ||
<handlers xmi:id="_XS76YnHYEeGdaqKGFl0Tiw" contributionURI="bundleclass://tychodemo.bundle/tychodemo.bundle.handlers.SaveHandler" command="_XS76YXHYEeGdaqKGFl0Tiw"/> | ||
<handlers xmi:id="_XS76ZXHYEeGdaqKGFl0Tiw" contributionURI="bundleclass://tychodemo.bundle/tychodemo.bundle.handlers.AboutHandler" command="_XS76ZHHYEeGdaqKGFl0Tiw"/> | ||
<bindingTables xmi:id="_XS7TXHHYEeGdaqKGFl0Tiw" bindingContext="_XS7TUXHYEeGdaqKGFl0Tiw"> | ||
<bindings xmi:id="_XS7TXXHYEeGdaqKGFl0Tiw" keySequence="Ctrl+Q" command="_XS7TWnHYEeGdaqKGFl0Tiw"/> | ||
<bindings xmi:id="_XS76YHHYEeGdaqKGFl0Tiw" keySequence="Ctrl+O" command="_XS7TXnHYEeGdaqKGFl0Tiw"/> | ||
<bindings xmi:id="_XS76Y3HYEeGdaqKGFl0Tiw" keySequence="Ctrl+S" command="_XS76YXHYEeGdaqKGFl0Tiw"/> | ||
<bindings xmi:id="_XS76ZnHYEeGdaqKGFl0Tiw" keySequence="Ctrl+A" command="_XS76ZHHYEeGdaqKGFl0Tiw"/> | ||
</bindingTables> | ||
<rootContext xmi:id="_XS7TUXHYEeGdaqKGFl0Tiw" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows"> | ||
<children xmi:id="_XS7TUnHYEeGdaqKGFl0Tiw" elementId="org.eclipse.ui.contexts.window" name="In Windows"/> | ||
<children xmi:id="_XS7TU3HYEeGdaqKGFl0Tiw" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/> | ||
</rootContext> | ||
<commands xmi:id="_XS7TWnHYEeGdaqKGFl0Tiw" elementId="tychodemo.bundle.quitCommand" commandName="quitCommand"/> | ||
<commands xmi:id="_XS7TXnHYEeGdaqKGFl0Tiw" elementId="tychodemo.bundle.openCommand" commandName="openCommand"/> | ||
<commands xmi:id="_XS76YXHYEeGdaqKGFl0Tiw" elementId="tychodemo.bundle.saveCommand" commandName="saveCommand"/> | ||
<commands xmi:id="_XS76ZHHYEeGdaqKGFl0Tiw" elementId="tychodemo.bundle.aboutCommand" commandName="aboutCommand"/> | ||
<addons xmi:id="_XS7TVHHYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/> | ||
<addons xmi:id="_XS7TVXHYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/> | ||
<addons xmi:id="_XS7TVnHYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/> | ||
<addons xmi:id="_XS7TV3HYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/> | ||
<addons xmi:id="_XS7TWHHYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/> | ||
<addons xmi:id="_XS7TWXHYEeGdaqKGFl0Tiw" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/> | ||
</application: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
12 changes: 6 additions & 6 deletions
12
exercises/Exercise_05_Add_Product/tychodemo.bundle/build.properties
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
source.. = src/ | ||
output.. = target/classes/ | ||
bin.includes = plugin.xml,\ | ||
META-INF/,\ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
icons/,\ | ||
splash.bmp | ||
plugin.xml,\ | ||
css/default.css,\ | ||
Application.e4xmi | ||
source.. = src/ |
Empty file.
Binary file removed
BIN
-4.61 KB
exercises/Exercise_05_Add_Product/tychodemo.bundle/expected_rcp_screenshot.png
Binary file not shown.
Binary file removed
BIN
-9.12 KB
exercises/Exercise_05_Add_Product/tychodemo.bundle/icons/alt_about.gif
Binary file not shown.
Binary file removed
BIN
-50 KB
exercises/Exercise_05_Add_Product/tychodemo.bundle/icons/alt_launcher.icns
Binary file not shown.
Binary file removed
BIN
-26.1 KB
exercises/Exercise_05_Add_Product/tychodemo.bundle/icons/alt_launcher.ico
Binary file not shown.
Oops, something went wrong.