diff --git a/demo/README.md b/demo/README.md new file mode 100644 index 0000000000..315f0e2e67 --- /dev/null +++ b/demo/README.md @@ -0,0 +1,25 @@ +Tycho Demo Projects +=================== + +Sample projects demonstrating how to use Tycho. + +* `itp01/`: Simple application that demonstrates how to build an eclipse plug-in and execute JUnit tests +* `itp02/`: Simple application that demonstrates [use of pom-first dependencies](https://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts) +* `itp03-crossplatform/`: _(Deprecated)_ Trivial cross-platform RCP application that displays a SWT MessageBox with current OSGi os/ws/arch properties. Specify either -Pe35 or -Pe36 to build for specified eclipse version +* `itp04-rcp/`: [Trivial cross-platform RCP product application with root files which can be updated by means of p2](https://wiki.eclipse.org/Tycho/Demo_Projects/RCP_Application) + +Each demo project (except itp02) can be built by executing: + + mvn clean install + +in the corresponding folder. + +About Tycho +=========== + + * [Project Homepage](http://www.eclipse.org/tycho/) + * [Documentation](http://eclipse.org/tycho/documentation.php) + * [Bug Tracker](https://bugs.eclipse.org/bugs/buglist.cgi?product=Tycho) + * [How to Contribute](http://wiki.eclipse.org/Tycho/Contributor_Guide) + * [Contact Us](https://dev.eclipse.org/mailman/listinfo/tycho-user) + diff --git a/demo/itp01/pom.xml b/demo/itp01/pom.xml new file mode 100644 index 0000000000..21277e98ab --- /dev/null +++ b/demo/itp01/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + tycho.demo.itp01 + parent + 1.0.0-SNAPSHOT + pom + + tycho.demo.itp01 + tycho.demo.itp01.tests + + + + 2.3.0 + + + + + helios + p2 + http://download.eclipse.org/releases/helios + + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + + + diff --git a/demo/itp01/tycho.demo.itp01.tests/META-INF/MANIFEST.MF b/demo/itp01/tycho.demo.itp01.tests/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..d368d19398 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01.tests/META-INF/MANIFEST.MF @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Tests Plug-in +Bundle-SymbolicName: tycho.demo.itp01.tests +Bundle-Version: 1.0.0.qualifier +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.junit4, + tycho.demo.itp01;bundle-version="1.0.0", + org.eclipse.ui diff --git a/demo/itp01/tycho.demo.itp01.tests/build.properties b/demo/itp01/tycho.demo.itp01.tests/build.properties new file mode 100644 index 0000000000..34d2e4d2da --- /dev/null +++ b/demo/itp01/tycho.demo.itp01.tests/build.properties @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . diff --git a/demo/itp01/tycho.demo.itp01.tests/pom.xml b/demo/itp01/tycho.demo.itp01.tests/pom.xml new file mode 100644 index 0000000000..d5a7eee5d0 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01.tests/pom.xml @@ -0,0 +1,52 @@ + + + 4.0.0 + + + tycho.demo.itp01 + parent + 1.0.0-SNAPSHOT + + + tycho.demo.itp01.tests + eclipse-test-plugin + + + + + org.eclipse.tycho + tycho-surefire-plugin + ${tycho-version} + + true + + + + + + + + osx + + + mac + + + + + + + org.eclipse.tycho + tycho-surefire-plugin + ${tycho-version} + + -XstartOnFirstThread + + + + + + + + + diff --git a/demo/itp01/tycho.demo.itp01.tests/src/tycho/demo/itp01/tests/ITP01Test.java b/demo/itp01/tycho.demo.itp01.tests/src/tycho/demo/itp01/tests/ITP01Test.java new file mode 100644 index 0000000000..b34537ca21 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01.tests/src/tycho/demo/itp01/tests/ITP01Test.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp01.tests; + +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.PlatformUI; +import org.junit.Test; + +import tycho.demo.itp01.actions.SampleAction; + +public class ITP01Test { + + @Test + public void sampleAction() { + IWorkbench workbench = PlatformUI.getWorkbench(); + + SampleAction action = new SampleAction(); + action.init(workbench.getActiveWorkbenchWindow()); + +// action.run(null); + } + +} diff --git a/demo/itp01/tycho.demo.itp01/META-INF/MANIFEST.MF b/demo/itp01/tycho.demo.itp01/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..07e9bee0d5 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/META-INF/MANIFEST.MF @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Itp Plug-in +Bundle-SymbolicName: tycho.demo.itp01;singleton:=true +Bundle-Version: 1.0.0.qualifier +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.ui +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: tycho.demo.itp01.actions;x-friends:="tycho.demo.itp01.tests" diff --git a/demo/itp01/tycho.demo.itp01/build.properties b/demo/itp01/tycho.demo.itp01/build.properties new file mode 100644 index 0000000000..2b0d95b6b0 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/build.properties @@ -0,0 +1,5 @@ +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + . diff --git a/demo/itp01/tycho.demo.itp01/icons/alt_about.gif b/demo/itp01/tycho.demo.itp01/icons/alt_about.gif new file mode 100644 index 0000000000..20d9ad2d98 Binary files /dev/null and b/demo/itp01/tycho.demo.itp01/icons/alt_about.gif differ diff --git a/demo/itp01/tycho.demo.itp01/icons/alt_launcher.icns b/demo/itp01/tycho.demo.itp01/icons/alt_launcher.icns new file mode 100644 index 0000000000..b77a6a6393 Binary files /dev/null and b/demo/itp01/tycho.demo.itp01/icons/alt_launcher.icns differ diff --git a/demo/itp01/tycho.demo.itp01/icons/alt_launcher.ico b/demo/itp01/tycho.demo.itp01/icons/alt_launcher.ico new file mode 100644 index 0000000000..d548f71093 Binary files /dev/null and b/demo/itp01/tycho.demo.itp01/icons/alt_launcher.ico differ diff --git a/demo/itp01/tycho.demo.itp01/icons/alt_launcher.xpm b/demo/itp01/tycho.demo.itp01/icons/alt_launcher.xpm new file mode 100644 index 0000000000..0ff90332a7 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/icons/alt_launcher.xpm @@ -0,0 +1,307 @@ +/* XPM */ +static char * icon48_xpm[] = { +"48 48 256 2", +" c #4B4B3B3B9090", +". c #0D0D0E0E5454", +"X c #11110E0E5B5B", +"o c #17170F0F6363", +"O c #1D1D13136969", +"+ c #212114146C6C", +"@ c #252514147171", +"# c #282811116C6C", +"$ c #26260D0D6363", +"% c #22220B0B5E5E", +"& c #1C1C0B0B5A5A", +"* c #1C1C0B0B5252", +"= c #1B1B05055353", +"- c #161606064D4D", +"; c #161605054949", +": c #111104044848", +"> c #131304044545", +", c #131305054242", +"< c #141410105E5E", +"1 c #2C2C15157373", +"2 c #2B2B1B1B7575", +"3 c #343416167272", +"4 c #313113136E6E", +"5 c #222209095757", +"6 c #1B1B06064D4D", +"7 c #15150B0B4242", +"8 c #13130C0C5555", +"9 c #2E2E1B1B7878", +"0 c #33331F1F7C7C", +"q c #343418187878", +"w c #3B3B1C1C7575", +"e c #2E2E10106767", +"r c #1B1B07074747", +"t c #18180B0B4646", +"y c #151513136262", +"u c #1A1A15156464", +"i c #34341F1F7777", +"p c #40401E1E8080", +"a c #42421B1B7A7A", +"s c #3B3B15157474", +"d c #2B2B0B0B5B5B", +"f c #222207075252", +"g c #373727277A7A", +"h c #474724248484", +"j c #393915156E6E", +"k c #373711116A6A", +"l c #343413136363", +"z c #232319196E6E", +"x c #292919197070", +"c c #3C3C2C2C8282", +"v c #444431318585", +"b c #494934348A8A", +"n c #505026268A8A", +"m c #3D3D1B1B6E6E", +"M c #31310E0E5C5C", +"N c #2B2B0D0D5353", +"B c #222207074A4A", +"V c #52523C3C9292", +"C c #58583C3C9494", +"Z c #5D5D44449797", +"A c #5C5C2E2E9292", +"S c #676733339595", +"D c #424228287575", +"F c #29290A0A4F4F", +"G c #6C6C4A4A9E9E", +"H c #72725454A7A7", +"J c #8C8C6D6DB2B2", +"K c #343424246E6E", +"L c #3A3A23236A6A", +"P c #3A3A1C1C6767", +"I c #24240A0A4B4B", +"U c #151518186161", +"Y c #76766F6FA5A5", +"T c #ADAD9191CCCC", +"R c #98988989D3D3", +"E c #45453B3B8686", +"W c #3C3C35357979", +"Q c #363631317575", +"! c #32322D2D6B6B", +"~ c #323229296363", +"^ c #30301F1F6262", +"/ c #323218185E5E", +"( c #272707074B4B", +") c #202028286C6C", +"_ c #1E1E1D1D6868", +"` c #9A9A8282BBBB", +"' c #C8C8B3B3D3D3", +"] c #B3B3AFAFE7E7", +"[ c #84847272C6C6", +"{ c #58585757A3A3", +"} c #3F3F3C3C8A8A", +"| c #3B3B3A3A8484", +" . c #414139397D7D", +".. c #3D3D39397A7A", +"X. c #37372E2E6E6E", +"o. c #2C2C21215A5A", +"O. c #2E2E1B1B5B5B", +"+. c #F5F5EFEFF5F5", +"@. c #656566669A9A", +"#. c #47474B4B8E8E", +"$. c #3C3C44447B7B", +"%. c #444442428080", +"&. c #45453E3E8181", +"*. c #40403C3C8181", +"=. c #3D3D33337474", +"-. c #3B3B30306E6E", +";. c #38382D2D6969", +":. c #303026265D5D", +">. c #2C2C15155A5A", +",. c #1F1F1C1C7070", +"<. c #25251E1E7171", +"1. c #59595C5C9191", +"2. c #4D4D53538989", +"3. c #4C4C49498484", +"4. c #484845458585", +"5. c #494941418585", +"6. c #494940408181", +"7. c #2F2F1C1C5353", +"8. c #2B2B28287676", +"9. c #323231317F7F", +"0. c #545452528B8B", +"q. c #51514E4E8989", +"w. c #4E4E4B4B8C8C", +"e. c #4C4C47478686", +"r. c #46463D3D7E7E", +"t. c #434336367A7A", +"y. c #2B2B13135555", +"u. c #47473D3D8D8D", +"i. c #575757578E8E", +"p. c #48483E3E7F7F", +"a. c #46463A3A7D7D", +"s. c #424235357575", +"d. c #404034347171", +"f. c #BFBFCBCBFAFA", +"g. c #B8B8A8A8DDDD", +"h. c #5E5E60609292", +"j. c #565655558C8C", +"k. c #4B4B44448282", +"l. c #454539397B7B", +"z. c #434338387878", +"x. c #3F3F32326D6D", +"c. c #3D3D30306969", +"v. c #3A3A2E2E6363", +"b. c #36362A2A5C5C", +"n. c #343424245555", +"m. c #30301E1E4D4D", +"M. c #49493C3C8282", +"N. c #5E5E4F4F8C8C", +"B. c #56563B3B8B8B", +"V. c #545407078585", +"C. c #424234347272", +"Z. c #9797A4A4F7F7", +"A. c #444436367676", +"S. c #7D7D7979D5D5", +"D. c #464640408A8A", +"F. c #44444B4B8282", +"G. c #414107077777", +"H. c #71716161C1C1", +"J. c #303039397979", +"K. c #8E8E8E8EE6E6", +"L. c #404033338B8B", +"P. c #4A4A45458C8C", +"I. c #46463A3A8080", +"U. c #363629295454", +"Y. c #303022224848", +"T. c #424237377575", +"R. c #2E2E1D1D6363", +"E. c #79798383EAEA", +"W. c #74747B7BE4E4", +"Q. c #6D6D7676D6D6", +"!. c #6A6A7171CECE", +"~. c #66666969C6C6", +"^. c #62626565BCBC", +"/. c #5F5F6060B5B5", +"(. c #5B5B5B5BACAC", +"). c #535353539898", +"_. c #4F4F4F4FA4A4", +"`. c #54544D4DA4A4", +"'. c #323204046B6B", +"]. c #303035357979", +"[. c #313122224343", +"{. c #5A5A5B5BB7B7", +"}. c #484846468080", +"|. c #454541417575", +" X c #4B4B31318282", +".X c #47473C3C8484", +"XX c #3E3E35356E6E", +"oX c #2F2F26264040", +"OX c #2B2B23233A3A", +"+X c #262619195C5C", +"@X c #252515155A5A", +"#X c #55555151B3B3", +"$X c #3C3C2D2D5D5D", +"%X c #39392F2F5656", +"&X c #37372D2D5050", +"*X c #25251F1F3030", +"=X c #24241D1D4343", +"-X c #202013135656", +";X c #41413B3B6C6C", +":X c #444442429696", +">X c #212100005E5E", +",X c #444436367272", +" > , , , ", +" . . X X < < o o O O + @ 1 2 2 1 1 1 1 1 1 1 1 3 4 # # $ $ $ % % % 5 = = 6 6 - ; ; > > , , 7 ", +" . 8 < < < o O O + @ @ 2 9 9 0 0 q q q q q q q w 3 4 4 e e $ $ $ $ % 5 = = 6 6 6 ; ; > > r t ", +" . X < y u O O + @ 1 2 i 0 0 p p p p p p p a a p a s 3 4 4 e e e e d 5 5 f f 6 6 6 ; ; r r t ", +" X < y u O + + @ 2 9 0 g p p h h h h h h h p h h a a s s j k k j l d d 5 5 f f 6 6 r r r r r ", +" X < y O z x x 9 0 g c v b n n n n n n n n n n n h a a s s j j m l M d d N f f B B B B r r r ", +" < y u + z 2 0 c c b V C Z C C A A A A A S S S n h D w w m m m m k l M d d N f F F F B r r r ", +" < y O z z 9 c b V Z G H H H G S G G J J H V v c g g K K K K L P l l l M M N N N N I B B r r ", +" U u + z x i v C H Y J J J J H J T R H V E W W Q Q Q Q ! ! ! ~ ^ ^ / / M M M M M N ( B B r r ", +" ) _ z x 9 g b Z Y ` ' ' ' T T ] [ { } | .........W W Q Q X.! ~ ~ o.O./ / / / N F ( B B B r ", +" ) ) z x i c V G J ' +.+.+.+.] [ @.#.$.%.%.%.&.*. . .....W =.-.X.;.~ :.o.O.^ >.N F ( B B B B ", +" ) ,.<.2 g v C H J ' +.+.+.+.T Y 1.2.3.4.4.4.5.6.&.&. . ...W =.=.-.;.~ :.o.7.>.N F F ( B I I ", +" ) ,.<.8.9.b C H J T +.+.+.' J @.1.0.q.q.w.e.4.5.6.&.r. . .t.W =.=.-.;.~ :.o.7.y.N F ( ( I I ", +" 8.8.8.9.| u.C G J T +.+.' ` Y @.1.i.0.q.q.e.e.5.6.p.r.a. .t.t.s.d.d.-.;.~ :.7.7.y.F F ( I I ", +" 9.c c c v b A S H ' f.g.` Y @.h.1.i.j.0.q.q.e.k.6.p.r.a.l.t.z.s.s.d.x.c.v.b.n.m.7.N F F F I ", +" <.g M.N.B.B.n V.J f.R J @.h.h.1.i.i.j.j.0.q.3.k.6.p.r.a.l.l.z.s.C.d.x.x.c.v.b.n.m.y.N F F F ", +" + x i v B.Z Z G g.Z.[ @.2.i.i.j.j.j.j.j.0.q.3.k.6.p.p.a.l.l.A.s.C.C.d.x.c.v.b.n.m.7.y.N N y. ", +" O # 3 w p n Z ` f.S.H D.F.q.0.0.0.0.j.0.q.q.3.k.6.p.r.a.a.l.A.s.s.C.d.x.x.c.v.b.n.m.y.y.y.y. ", +" O # 4 s a G.V.T Z.H.V J.%.e.w.q.0.0.0.0.q.q.e.k.6.p.r.a.a.l.z.A.s.C.d.d.x.c.v.b.n.m.7.>.y.y. ", +" O # 4 s w G.A f.K.H L...4.P.w.w.w.q.q.q.q.e.e.5.6.M.I.I.a.a.l.z.A.s.d.d.x.c.v.v.U.Y.7.O.>.y. ", +" $ # 4 3 s G.G f.S.Z 9.*.D.P.P.w.w.w.w.w.e.e.5.5.M.M.I.I.a.a.l.z.T.s.d.d.x.x.c.v.U.Y.m.R.>.>. ", +" E.E.W.W.W.W.E.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { )._.`._. ", +" + # 3 w s '.` f.H.V ].*.D.P.P.P.P.P.P.P.5.5.5.M.M.M.I.I.a.l.z.z.T.T.s.d.d.x.c.v.U.Y.[.^ O.>. ", +" ~.~.~.~.~.~.K.Z.S.~.{.^.^.^.^.^.^.^.^././././././.(.(.(.(.(.(.{ { { { { ).).).w.w.}.|.P.u.} ", +" .I.6. X X XT f.H.b ].*.E D.D.D.D.5.5..X.XM.M.I.I.a.a.l.l.z.z.T.T.T.d.XXx.c.v.b.U.oXOXR.+X@X ", +" E.E.E.W.W.W.K.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { ).).#X_._. ", +" & % $ e '.= H f.H.b 8.W *.E E E .X.X.XI.I.I.I.a.a.l.l.z.z.T.T.T.C.XXXXc.v.$X%X&XY.*X=X2 @X-X ", +" {.{.{.{.{.#X~.Z.W.~.{.{./././././././././.(.(.(.(.(.(.(.{ { { { { { ).).).w.w.3.}.;X%.:X} } ", +" & & % $ e >XV.f.S.C K X.W t. . .l.l.t.t.t.t.A.A.A.,X,X,X,X,XX7X` Z.Z D ! =.=.s.t.t.t.A.A.s.A.,X,X,X,X > > t t t cX ", +" nXbXbXzXzXlXaXXXY +Xf = f = 7XtXR R mXn.Y.[.[.[.[.OX*X*X8X5X*X=X,.u vXvX; > > MXMX, 7 t t ", +" nXnXnXbXzXvX-.Y +XcX6 6 = = = d L B.G H `.X.:.7.m.=X=X=X=X=X6X,.u cXvXNX: BX> MXVXCXVX7 7 7 ", +" ZXZXnXbXAXgX@.+XvX; - - - - * @XR.>.sX>.R.i 0 x eXeXeXeXO hXaXcXvXNX: BXMXMXMXVXCXCXCXVX7 7 ", +" SXZXZXAXgXN.aXNX: : NXNXNX- * +X+X* 6 6 6 * * * * * * * vXvX- NX: DXBXMXMXFXCXCXCXCXGXVXVX7 ", +" SXSXHXgX0.JXKXLXKXKXDX: : NX* @X-X- - - - - - - - - - - NX: DXDXDXMXMXFXFXCXCXCXCXGXGXGXVXVX ", +" SXHXPX3.JXnXnXnXnXbXLXKXKXNXaX-XvX: : NX: : : : : : : BXDXDXLXMXMXFXFXCXCXCXCXGXGXGXGXGXGXGX ", +" IXUX$.AXZXZXZXZXnXnXnXLXLXNXJXvXBXDXBXBXBXBXDXDXDXDXLXDXLXLXFXFXFXFXCXCXCXCXGXGXGXGXGXGXGXGX ", +" "}; diff --git a/demo/itp01/tycho.demo.itp01/icons/alt_window_16.gif b/demo/itp01/tycho.demo.itp01/icons/alt_window_16.gif new file mode 100644 index 0000000000..05626b17d8 Binary files /dev/null and b/demo/itp01/tycho.demo.itp01/icons/alt_window_16.gif differ diff --git a/demo/itp01/tycho.demo.itp01/icons/alt_window_32.gif b/demo/itp01/tycho.demo.itp01/icons/alt_window_32.gif new file mode 100644 index 0000000000..b432f88339 Binary files /dev/null and b/demo/itp01/tycho.demo.itp01/icons/alt_window_32.gif differ diff --git a/demo/itp01/tycho.demo.itp01/icons/sample.gif b/demo/itp01/tycho.demo.itp01/icons/sample.gif new file mode 100644 index 0000000000..34fb3c9d8c Binary files /dev/null and b/demo/itp01/tycho.demo.itp01/icons/sample.gif differ diff --git a/demo/itp01/tycho.demo.itp01/plugin.xml b/demo/itp01/tycho.demo.itp01/plugin.xml new file mode 100644 index 0000000000..9e44b26c3f --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/plugin.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/itp01/tycho.demo.itp01/pom.xml b/demo/itp01/tycho.demo.itp01/pom.xml new file mode 100644 index 0000000000..5bc050ad11 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + + + tycho.demo.itp01 + parent + 1.0.0-SNAPSHOT + + + tycho.demo.itp01 + eclipse-plugin + + diff --git a/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/Application.java b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/Application.java new file mode 100644 index 0000000000..80673dcda8 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/Application.java @@ -0,0 +1,62 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp; + +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) throws Exception { + Display display = PlatformUI.createDisplay(); + try { + int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor()); + if (returnCode == PlatformUI.RETURN_RESTART) + return IApplication.EXIT_RESTART; + else + return IApplication.EXIT_OK; + } finally { + display.dispose(); + } + + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.equinox.app.IApplication#stop() + */ + public void stop() { + final IWorkbench workbench = PlatformUI.getWorkbench(); + if (workbench == null) + return; + final Display display = workbench.getDisplay(); + display.syncExec(new Runnable() { + public void run() { + if (!display.isDisposed()) + workbench.close(); + } + }); + } +} diff --git a/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationActionBarAdvisor.java b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationActionBarAdvisor.java new file mode 100644 index 0000000000..1f38959c05 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationActionBarAdvisor.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp; + +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.application.ActionBarAdvisor; +import org.eclipse.ui.application.IActionBarConfigurer; + +public class ApplicationActionBarAdvisor extends ActionBarAdvisor { + + public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { + super(configurer); + } + + protected void makeActions(IWorkbenchWindow window) { + } + + protected void fillMenuBar(IMenuManager menuBar) { + } + +} diff --git a/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationWorkbenchAdvisor.java b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationWorkbenchAdvisor.java new file mode 100644 index 0000000000..440f75dc94 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationWorkbenchAdvisor.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp; + +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 = "tycho.demo.itp.perspective"; + + public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { + return new ApplicationWorkbenchWindowAdvisor(configurer); + } + + public String getInitialWindowPerspectiveId() { + return PERSPECTIVE_ID; + } +} diff --git a/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationWorkbenchWindowAdvisor.java b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationWorkbenchWindowAdvisor.java new file mode 100644 index 0000000000..71306c083b --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/ApplicationWorkbenchWindowAdvisor.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp; + +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("Hello RCP"); + } +} diff --git a/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/Perspective.java b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/Perspective.java new file mode 100644 index 0000000000..af349ca067 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp/Perspective.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp; + +import org.eclipse.ui.IPageLayout; +import org.eclipse.ui.IPerspectiveFactory; + +public class Perspective implements IPerspectiveFactory { + + public void createInitialLayout(IPageLayout layout) { + } +} diff --git a/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp01/actions/SampleAction.java b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp01/actions/SampleAction.java new file mode 100644 index 0000000000..db850b0441 --- /dev/null +++ b/demo/itp01/tycho.demo.itp01/src/tycho/demo/itp01/actions/SampleAction.java @@ -0,0 +1,73 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp01.actions; + +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.IWorkbenchWindowActionDelegate; +import org.eclipse.jface.dialogs.MessageDialog; + +/** + * Our sample action implements workbench action delegate. The action proxy will be created by the + * workbench and shown in the UI. When the user tries to use the action, this delegate will be + * created and execution will be delegated to it. + * + * @see IWorkbenchWindowActionDelegate + */ +public class SampleAction implements IWorkbenchWindowActionDelegate { + private IWorkbenchWindow window; + + /** + * The constructor. + */ + public SampleAction() { + } + + /** + * The action has been activated. The argument of the method represents the 'real' action + * sitting in the workbench UI. + * + * @see IWorkbenchWindowActionDelegate#run + */ + public void run(IAction action) { + MessageDialog.openInformation(window.getShell(), "Itp Plug-in", "Hello, Eclipse world"); + } + + /** + * Selection in the workbench has been changed. We can change the state of the 'real' action + * here if we want, but this can only happen after the delegate has been created. + * + * @see IWorkbenchWindowActionDelegate#selectionChanged + */ + public void selectionChanged(IAction action, ISelection selection) { + } + + /** + * We can use this method to dispose of any system resources we previously allocated. + * + * @see IWorkbenchWindowActionDelegate#dispose + */ + public void dispose() { + } + + /** + * We will cache window object in order to be able to provide parent shell for the message + * dialog. + * + * @see IWorkbenchWindowActionDelegate#init + */ + public void init(IWorkbenchWindow window) { + this.window = window; + } +} diff --git a/demo/itp02/build01/pom.xml b/demo/itp02/build01/pom.xml new file mode 100644 index 0000000000..cb1b5bb9f4 --- /dev/null +++ b/demo/itp02/build01/pom.xml @@ -0,0 +1,59 @@ + + + 4.0.0 + + + 3.0 + + + tycho.demo.itp02 + itp02-pomfirst-parent + 1.0.0-SNAPSHOT + pom + + + 2.3.0 + + META-INF + + + + pomfirst-bundle + pomfirst-thirdparty + + + + + + org.codehaus.plexus + plexus-utils + 2.0.7 + + + + + + + + + maven-jar-plugin + 2.3.1 + + + ${manifest-location}/MANIFEST.MF + + + + + org.apache.felix + maven-bundle-plugin + 2.1.0 + + ${manifest-location} + + + + + + diff --git a/demo/itp02/build01/pomfirst-bundle/META-INF/MANIFEST.MF b/demo/itp02/build01/pomfirst-bundle/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..224e6401d1 --- /dev/null +++ b/demo/itp02/build01/pomfirst-bundle/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Export-Package: tycho.demo.itp02.pomfirst;uses:="org.codehaus.plexus.u + til";version="1.0.0.SNAPSHOT" +Bundle-Version: 1.0.0.SNAPSHOT +Tool: Bnd-0.0.357 +Bundle-Name: pomfirst-bundle +Bnd-LastModified: 1432827265000 +Created-By: 1.7.0_67 (Oracle Corporation) +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: tycho.demo.itp02.pomfirst-bundle +Import-Package: org.codehaus.plexus.util,tycho.demo.itp02.pomfirst;ver + sion="1.0" + diff --git a/demo/itp02/build01/pomfirst-bundle/pom.xml b/demo/itp02/build01/pomfirst-bundle/pom.xml new file mode 100644 index 0000000000..25752e234b --- /dev/null +++ b/demo/itp02/build01/pomfirst-bundle/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + + tycho.demo.itp02 + itp02-pomfirst-parent + 1.0.0-SNAPSHOT + + + pomfirst-bundle + + + + org.codehaus.plexus + plexus-utils + + + + + + + org.apache.felix + maven-bundle-plugin + + + bundle-manifest + process-classes + + manifest + + + + + + + + diff --git a/demo/itp02/build01/pomfirst-bundle/src/main/java/tycho/demo/itp02/pomfirst/PomFirst.java b/demo/itp02/build01/pomfirst-bundle/src/main/java/tycho/demo/itp02/pomfirst/PomFirst.java new file mode 100644 index 0000000000..b287b2dade --- /dev/null +++ b/demo/itp02/build01/pomfirst-bundle/src/main/java/tycho/demo/itp02/pomfirst/PomFirst.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp02.pomfirst; + +import org.codehaus.plexus.util.StringUtils; + +public class PomFirst { + + public String getMessage() { + return StringUtils.clean("maven-bundle-plugin"); + } + +} diff --git a/demo/itp02/build01/pomfirst-thirdparty/META-INF/MANIFEST.MF b/demo/itp02/build01/pomfirst-thirdparty/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..cddaeacf0c --- /dev/null +++ b/demo/itp02/build01/pomfirst-thirdparty/META-INF/MANIFEST.MF @@ -0,0 +1,29 @@ +Manifest-Version: 1.0 +Export-Package: org.codehaus.plexus.util.reflection;version="2.0.7",or + g.codehaus.plexus.util.cli;version="2.0.7",org.codehaus.plexus.util.d + ag;version="2.0.7",org.codehaus.plexus.util.introspection;version="2. + 0.7",org.codehaus.plexus.util.xml.pull;version="2.0.7",org.codehaus.p + lexus.util.cli.shell;version="2.0.7",org.codehaus.plexus.util.io;vers + ion="2.0.7",org.codehaus.plexus.util.xml;version="2.0.7",org.codehaus + .plexus.util;version="2.0.7" +Embed-Directory: jars +Bundle-ClassPath: jars/plexus-utils-2.0.7.jar +Built-By: d037913 +Tool: Bnd-0.0.357 +Bundle-Name: pomfirst-thirdparty +Created-By: Apache Maven Bundle Plugin +Build-Jdk: 1.7.0_67 +Bundle-Version: 1.0.0.SNAPSHOT +Bnd-LastModified: 1432827267797 +Embed-Transitive: true +Bundle-ManifestVersion: 2 +Embed-Dependency: plexus-utils +Import-Package: org.codehaus.plexus.util;version="2.0",org.codehaus.pl + exus.util.cli;version="2.0",org.codehaus.plexus.util.cli.shell;versio + n="2.0",org.codehaus.plexus.util.dag;version="2.0",org.codehaus.plexu + s.util.introspection;version="2.0",org.codehaus.plexus.util.io;versio + n="2.0",org.codehaus.plexus.util.reflection;version="2.0",org.codehau + s.plexus.util.xml;version="2.0",org.codehaus.plexus.util.xml.pull;ver + sion="2.0" +Bundle-SymbolicName: tycho.demo.itp02.pomfirst-thirdparty + diff --git a/demo/itp02/build01/pomfirst-thirdparty/pom.xml b/demo/itp02/build01/pomfirst-thirdparty/pom.xml new file mode 100644 index 0000000000..2f861b6f5a --- /dev/null +++ b/demo/itp02/build01/pomfirst-thirdparty/pom.xml @@ -0,0 +1,99 @@ + + + 4.0.0 + + + tycho.demo.itp02 + itp02-pomfirst-parent + 1.0.0-SNAPSHOT + + + pomfirst-thirdparty + bundle + + + + org.codehaus.plexus + plexus-utils + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + + plexus-utils + + <_exportcontents> + org.codehaus.plexus.util.*;version="2.0.7" + + {maven-dependencies} + true + jars + <_failok>true + <_nouses>true + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + bundle + org.sonatype.tycho.m2e.wrapperBundle + + + + + + org.apache.felix + maven-bundle-plugin + 2.1.0 + + bundle + + + + + org.sonatype.tycho.m2e.wrapperBundle + + + + + + org.apache.felix + maven-bundle-plugin + 2.1.0 + + manifest + + + + + + + + + + + + + + + + diff --git a/demo/itp02/build02/pom.xml b/demo/itp02/build02/pom.xml new file mode 100644 index 0000000000..2576a4ec64 --- /dev/null +++ b/demo/itp02/build02/pom.xml @@ -0,0 +1,62 @@ + + + 4.0.0 + + + 3.0 + + + tycho.demo.itp02 + itp02-parent + 1.0.0-SNAPSHOT + pom + + + 2.3.0 + + + + tycho.demo.itp02.bundle + tycho.demo.itp02.bundle.tests + + + + + tycho.demo.itp02 + pomfirst-bundle + 1.0.0-SNAPSHOT + + + tycho.demo.itp02 + pomfirst-thirdparty + 1.0.0-SNAPSHOT + + + + + + helios + p2 + http://download.eclipse.org/releases/helios + + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + org.eclipse.tycho + target-platform-configuration + ${tycho-version} + + consider + + + + + diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle.tests/META-INF/MANIFEST.MF b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..7feecdc091 --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/META-INF/MANIFEST.MF @@ -0,0 +1,8 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: bundle Plug-in +Bundle-SymbolicName: tycho.demo.itp02.bundle.tests +Bundle-Version: 1.0.0.qualifier +Require-Bundle: org.junit4;bundle-version="4.0.0", + org.eclipse.core.runtime +Import-Package: tycho.demo.itp02.bundle diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle.tests/build.properties b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/build.properties new file mode 100644 index 0000000000..34d2e4d2da --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/build.properties @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle.tests/pom.xml b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/pom.xml new file mode 100644 index 0000000000..6e26b8c7bb --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + + tycho.demo.itp02 + itp02-parent + 1.0.0-SNAPSHOT + + + tycho.demo.itp02.bundle.tests + eclipse-test-plugin + + diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle.tests/src/tycho/demo/itp02/bundle/tests/ITP02Test.java b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/src/tycho/demo/itp02/bundle/tests/ITP02Test.java new file mode 100644 index 0000000000..058714c420 --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle.tests/src/tycho/demo/itp02/bundle/tests/ITP02Test.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp02.bundle.tests; + +import org.junit.Assert; +import org.junit.Test; + +import tycho.demo.itp02.bundle.ITP02; + +public class ITP02Test { + + @Test + public void basic() { + ITP02 testee = new ITP02(); + Assert.assertEquals("maven-bundle-plugin", testee.getMessage()); + } + +} diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle/META-INF/MANIFEST.MF b/demo/itp02/build02/tycho.demo.itp02.bundle/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..3f2fa4b566 --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle/META-INF/MANIFEST.MF @@ -0,0 +1,7 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: bundle Plug-in +Bundle-SymbolicName: tycho.demo.itp02.bundle +Bundle-Version: 1.0.0.qualifier +Import-Package: tycho.demo.itp02.pomfirst +Export-Package: tycho.demo.itp02.bundle diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle/build.properties b/demo/itp02/build02/tycho.demo.itp02.bundle/build.properties new file mode 100644 index 0000000000..34d2e4d2da --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle/build.properties @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle/pom.xml b/demo/itp02/build02/tycho.demo.itp02.bundle/pom.xml new file mode 100644 index 0000000000..0930be6ab3 --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + + tycho.demo.itp02 + itp02-parent + 1.0.0-SNAPSHOT + + + tycho.demo.itp02.bundle + eclipse-plugin + + diff --git a/demo/itp02/build02/tycho.demo.itp02.bundle/src/tycho/demo/itp02/bundle/ITP02.java b/demo/itp02/build02/tycho.demo.itp02.bundle/src/tycho/demo/itp02/bundle/ITP02.java new file mode 100644 index 0000000000..829f9a037e --- /dev/null +++ b/demo/itp02/build02/tycho.demo.itp02.bundle/src/tycho/demo/itp02/bundle/ITP02.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package tycho.demo.itp02.bundle; + +import tycho.demo.itp02.pomfirst.PomFirst; + +public class ITP02 { + + public String getMessage() { + return new PomFirst().getMessage(); + } + +} diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/README.txt b/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/README.txt new file mode 100644 index 0000000000..8e96192968 --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/README.txt @@ -0,0 +1,5 @@ +Tycho supports non-standard (as of Eclipse 3.6M6, at least) .product file +os/ws/arch attributes of element. If specified, these attributes +will be used to filter out irrelevant bundles when resolving RCP application +dependencies from P2 repositories. This is similar to os/ws/arch filtering +supported by feature-based products. diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/org.tycho.demo.crossplatform.rcp.product b/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/org.tycho.demo.crossplatform.rcp.product new file mode 100644 index 0000000000..b526afeb67 --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/org.tycho.demo.crossplatform.rcp.product @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/pom.xml b/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/pom.xml new file mode 100644 index 0000000000..7bd0c88a3e --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform.rcp/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + + tycho.demo + crossplatform + 1.0.0-SNAPSHOT + + org.tycho.demo.crossplatform.rcp + + eclipse-application + diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform/META-INF/MANIFEST.MF b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..48d21a6885 --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Bundle +Bundle-SymbolicName: org.tycho.demo.crossplatform;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.eclipse.equinox.app;bundle-version="1.2.1", + org.eclipse.swt;bundle-version="3.5.0", + system.bundle +Bundle-Activator: org.tycho.demo.crossplatform.Activator +Bundle-ActivationPolicy: lazy diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform/build.properties b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/build.properties new file mode 100644 index 0000000000..e9863e281e --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/build.properties @@ -0,0 +1,5 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform/plugin.xml b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/plugin.xml new file mode 100644 index 0000000000..aa5fbbd431 --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/plugin.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform/pom.xml b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/pom.xml new file mode 100644 index 0000000000..905eb47156 --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/pom.xml @@ -0,0 +1,11 @@ + + + 4.0.0 + + tycho.demo + crossplatform + 1.0.0-SNAPSHOT + + org.tycho.demo.crossplatform + eclipse-plugin + diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform/src/org/tycho/demo/crossplatform/Activator.java b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/src/org/tycho/demo/crossplatform/Activator.java new file mode 100644 index 0000000000..942c9f8eaa --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/src/org/tycho/demo/crossplatform/Activator.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package org.tycho.demo.crossplatform; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + + public static BundleContext context; + + public void start(BundleContext context) throws Exception { + Activator.context = context; + } + + public void stop(BundleContext context) throws Exception { + context = null; + } + +} diff --git a/demo/itp03-crossplatform/org.tycho.demo.crossplatform/src/org/tycho/demo/crossplatform/Application.java b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/src/org/tycho/demo/crossplatform/Application.java new file mode 100644 index 0000000000..824f4b099c --- /dev/null +++ b/demo/itp03-crossplatform/org.tycho.demo.crossplatform/src/org/tycho/demo/crossplatform/Application.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2008, 2011 Sonatype Inc. and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Sonatype Inc. - initial API and implementation + *******************************************************************************/ +package org.tycho.demo.crossplatform; + +import org.eclipse.equinox.app.IApplication; +import org.eclipse.equinox.app.IApplicationContext; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.MessageBox; +import org.eclipse.swt.widgets.Shell; +import org.osgi.framework.BundleContext; + +public class Application implements IApplication { + + public Object start(IApplicationContext context) throws Exception { + context.applicationRunning(); + + Display display = Display.getCurrent(); + if (display == null) { + display = new Display(); + } + + final Shell shell = new Shell(display); + + display.syncExec(new Runnable() { + public void run() { + MessageBox dialog = new MessageBox(shell); + + BundleContext ctx = Activator.context; + + StringBuilder sb = new StringBuilder(); + sb.append("osgi.os=").append(ctx.getProperty("osgi.os")).append("; "); + sb.append("osgi.ws=").append(ctx.getProperty("osgi.ws")).append("; "); + sb.append("osgi.arch=").append(ctx.getProperty("osgi.arch")); + + dialog.setText("OSGi runtime environment properties"); + dialog.setMessage(sb.toString()); + + dialog.open(); + } + }); + + return null; + } + + public void stop() { + // TODO Auto-generated method stub + } + +} diff --git a/demo/itp03-crossplatform/pom.xml b/demo/itp03-crossplatform/pom.xml new file mode 100644 index 0000000000..91863d4c0e --- /dev/null +++ b/demo/itp03-crossplatform/pom.xml @@ -0,0 +1,91 @@ + + + 4.0.0 + tycho.demo + crossplatform + 1.0.0-SNAPSHOT + pom + + + 2.3.0 + http://download.eclipse.org/eclipse/updates/3.6 + + + + org.tycho.demo.crossplatform + org.tycho.demo.crossplatform.rcp + + + + + e35 + + http://download.eclipse.org/eclipse/updates/3.5 + + + + + + + update36 + ${eclipse-repository-url} + p2 + + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + org.eclipse.tycho + target-platform-configuration + ${tycho-version} + + + + linux + gtk + x86_64 + + + linux + gtk + x86 + + + macosx + carbon + x86 + + + macosx + cocoa + x86 + + + macosx + cocoa + x86_64 + + + win32 + win32 + x86 + + + win32 + win32 + x86_64 + + + + + + + + diff --git a/demo/itp04-rcp/.gitignore b/demo/itp04-rcp/.gitignore new file mode 100644 index 0000000000..8032fef6bb --- /dev/null +++ b/demo/itp04-rcp/.gitignore @@ -0,0 +1,5 @@ +/target +/.settings +/.classpath +/.project +/workspace diff --git a/demo/itp04-rcp/README.txt b/demo/itp04-rcp/README.txt new file mode 100644 index 0000000000..370363c25b --- /dev/null +++ b/demo/itp04-rcp/README.txt @@ -0,0 +1,6 @@ +This demo project shows how Tycho supports p2-enabled RCP applications + +The demo application is documented in detail here +http://wiki.eclipse.org/Tycho/Demo_Projects/RCP_Application + + diff --git a/demo/itp04-rcp/eclipse-repository/.gitignore b/demo/itp04-rcp/eclipse-repository/.gitignore new file mode 100644 index 0000000000..8032fef6bb --- /dev/null +++ b/demo/itp04-rcp/eclipse-repository/.gitignore @@ -0,0 +1,5 @@ +/target +/.settings +/.classpath +/.project +/workspace diff --git a/demo/itp04-rcp/eclipse-repository/category.xml b/demo/itp04-rcp/eclipse-repository/category.xml new file mode 100644 index 0000000000..d069dfc2a5 --- /dev/null +++ b/demo/itp04-rcp/eclipse-repository/category.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + Description of example category + + + + + Install Feature2 Category contains example-feature-2. + + + diff --git a/demo/itp04-rcp/eclipse-repository/example.p2.inf b/demo/itp04-rcp/eclipse-repository/example.p2.inf new file mode 100644 index 0000000000..cda4d5bbe3 --- /dev/null +++ b/demo/itp04-rcp/eclipse-repository/example.p2.inf @@ -0,0 +1,7 @@ + +requires.0.namespace=org.eclipse.equinox.p2.iu +requires.0.name=org.tycho.demo.rootfiles +requires.0.range=1.0.0 + + + diff --git a/demo/itp04-rcp/eclipse-repository/example.product b/demo/itp04-rcp/eclipse-repository/example.product new file mode 100644 index 0000000000..81376acbc5 --- /dev/null +++ b/demo/itp04-rcp/eclipse-repository/example.product @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/itp04-rcp/eclipse-repository/pom.xml b/demo/itp04-rcp/eclipse-repository/pom.xml new file mode 100644 index 0000000000..6c3eac48c8 --- /dev/null +++ b/demo/itp04-rcp/eclipse-repository/pom.xml @@ -0,0 +1,57 @@ + + + + 4.0.0 + + 1.0.0-SNAPSHOT + eclipse-repository + eclipse-repository + RCP Example Product + + + 1.0.0-SNAPSHOT + example.group + parent + + + + + + org.eclipse.tycho + tycho-p2-director-plugin + ${tycho-version} + + + zip + tar.gz + tar.gz + + + + + materialize-products + + materialize-products + + + + archive-products + + archive-products + + + + + + + diff --git a/demo/itp04-rcp/example-bundle/.gitignore b/demo/itp04-rcp/example-bundle/.gitignore new file mode 100644 index 0000000000..8032fef6bb --- /dev/null +++ b/demo/itp04-rcp/example-bundle/.gitignore @@ -0,0 +1,5 @@ +/target +/.settings +/.classpath +/.project +/workspace diff --git a/demo/itp04-rcp/example-bundle/META-INF/MANIFEST.MF b/demo/itp04-rcp/example-bundle/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..4e7f0fd9b7 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/META-INF/MANIFEST.MF @@ -0,0 +1,12 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Bundle +Bundle-SymbolicName: example-bundle;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-Activator: example.bundle.Activator +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.swt;bundle-version="3.6.0", + org.eclipse.ui;bundle-version="3.6.0" +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-Vendor: Eclipse.org diff --git a/demo/itp04-rcp/example-bundle/about.html b/demo/itp04-rcp/example-bundle/about.html new file mode 100644 index 0000000000..395df3ba90 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2006

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). +Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor’s license +that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at http://www.eclipse.org.

+ + + \ No newline at end of file diff --git a/demo/itp04-rcp/example-bundle/about.ini b/demo/itp04-rcp/example-bundle/about.ini new file mode 100644 index 0000000000..8e0b41a2ff --- /dev/null +++ b/demo/itp04-rcp/example-bundle/about.ini @@ -0,0 +1,7 @@ +# about.ini contains information about a feature + +# Property "aboutText" contains blurb for "About" dialog (translated) +aboutText=about text of the example feature + +# Property "featureImage" contains path to feature image (32x32) +featureImage=images/featureImage.png diff --git a/demo/itp04-rcp/example-bundle/build.properties b/demo/itp04-rcp/example-bundle/build.properties new file mode 100644 index 0000000000..08da9e0c11 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/build.properties @@ -0,0 +1,19 @@ +############################################################################### +# Copyright (c) 2010, 2011 SAP AG and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# SAP AG - initial API and implementation +############################################################################### +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + icons/,\ + about.ini,\ + images/,\ + about.html diff --git a/demo/itp04-rcp/example-bundle/icons/alt_about.gif b/demo/itp04-rcp/example-bundle/icons/alt_about.gif new file mode 100644 index 0000000000..20d9ad2d98 Binary files /dev/null and b/demo/itp04-rcp/example-bundle/icons/alt_about.gif differ diff --git a/demo/itp04-rcp/example-bundle/icons/alt_launcher.icns b/demo/itp04-rcp/example-bundle/icons/alt_launcher.icns new file mode 100644 index 0000000000..b77a6a6393 Binary files /dev/null and b/demo/itp04-rcp/example-bundle/icons/alt_launcher.icns differ diff --git a/demo/itp04-rcp/example-bundle/icons/alt_launcher.ico b/demo/itp04-rcp/example-bundle/icons/alt_launcher.ico new file mode 100644 index 0000000000..d548f71093 Binary files /dev/null and b/demo/itp04-rcp/example-bundle/icons/alt_launcher.ico differ diff --git a/demo/itp04-rcp/example-bundle/icons/alt_launcher.xpm b/demo/itp04-rcp/example-bundle/icons/alt_launcher.xpm new file mode 100644 index 0000000000..0ff90332a7 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/icons/alt_launcher.xpm @@ -0,0 +1,307 @@ +/* XPM */ +static char * icon48_xpm[] = { +"48 48 256 2", +" c #4B4B3B3B9090", +". c #0D0D0E0E5454", +"X c #11110E0E5B5B", +"o c #17170F0F6363", +"O c #1D1D13136969", +"+ c #212114146C6C", +"@ c #252514147171", +"# c #282811116C6C", +"$ c #26260D0D6363", +"% c #22220B0B5E5E", +"& c #1C1C0B0B5A5A", +"* c #1C1C0B0B5252", +"= c #1B1B05055353", +"- c #161606064D4D", +"; c #161605054949", +": c #111104044848", +"> c #131304044545", +", c #131305054242", +"< c #141410105E5E", +"1 c #2C2C15157373", +"2 c #2B2B1B1B7575", +"3 c #343416167272", +"4 c #313113136E6E", +"5 c #222209095757", +"6 c #1B1B06064D4D", +"7 c #15150B0B4242", +"8 c #13130C0C5555", +"9 c #2E2E1B1B7878", +"0 c #33331F1F7C7C", +"q c #343418187878", +"w c #3B3B1C1C7575", +"e c #2E2E10106767", +"r c #1B1B07074747", +"t c #18180B0B4646", +"y c #151513136262", +"u c #1A1A15156464", +"i c #34341F1F7777", +"p c #40401E1E8080", +"a c #42421B1B7A7A", +"s c #3B3B15157474", +"d c #2B2B0B0B5B5B", +"f c #222207075252", +"g c #373727277A7A", +"h c #474724248484", +"j c #393915156E6E", +"k c #373711116A6A", +"l c #343413136363", +"z c #232319196E6E", +"x c #292919197070", +"c c #3C3C2C2C8282", +"v c #444431318585", +"b c #494934348A8A", +"n c #505026268A8A", +"m c #3D3D1B1B6E6E", +"M c #31310E0E5C5C", +"N c #2B2B0D0D5353", +"B c #222207074A4A", +"V c #52523C3C9292", +"C c #58583C3C9494", +"Z c #5D5D44449797", +"A c #5C5C2E2E9292", +"S c #676733339595", +"D c #424228287575", +"F c #29290A0A4F4F", +"G c #6C6C4A4A9E9E", +"H c #72725454A7A7", +"J c #8C8C6D6DB2B2", +"K c #343424246E6E", +"L c #3A3A23236A6A", +"P c #3A3A1C1C6767", +"I c #24240A0A4B4B", +"U c #151518186161", +"Y c #76766F6FA5A5", +"T c #ADAD9191CCCC", +"R c #98988989D3D3", +"E c #45453B3B8686", +"W c #3C3C35357979", +"Q c #363631317575", +"! c #32322D2D6B6B", +"~ c #323229296363", +"^ c #30301F1F6262", +"/ c #323218185E5E", +"( c #272707074B4B", +") c #202028286C6C", +"_ c #1E1E1D1D6868", +"` c #9A9A8282BBBB", +"' c #C8C8B3B3D3D3", +"] c #B3B3AFAFE7E7", +"[ c #84847272C6C6", +"{ c #58585757A3A3", +"} c #3F3F3C3C8A8A", +"| c #3B3B3A3A8484", +" . c #414139397D7D", +".. c #3D3D39397A7A", +"X. c #37372E2E6E6E", +"o. c #2C2C21215A5A", +"O. c #2E2E1B1B5B5B", +"+. c #F5F5EFEFF5F5", +"@. c #656566669A9A", +"#. c #47474B4B8E8E", +"$. c #3C3C44447B7B", +"%. c #444442428080", +"&. c #45453E3E8181", +"*. c #40403C3C8181", +"=. c #3D3D33337474", +"-. c #3B3B30306E6E", +";. c #38382D2D6969", +":. c #303026265D5D", +">. c #2C2C15155A5A", +",. c #1F1F1C1C7070", +"<. c #25251E1E7171", +"1. c #59595C5C9191", +"2. c #4D4D53538989", +"3. c #4C4C49498484", +"4. c #484845458585", +"5. c #494941418585", +"6. c #494940408181", +"7. c #2F2F1C1C5353", +"8. c #2B2B28287676", +"9. c #323231317F7F", +"0. c #545452528B8B", +"q. c #51514E4E8989", +"w. c #4E4E4B4B8C8C", +"e. c #4C4C47478686", +"r. c #46463D3D7E7E", +"t. c #434336367A7A", +"y. c #2B2B13135555", +"u. c #47473D3D8D8D", +"i. c #575757578E8E", +"p. c #48483E3E7F7F", +"a. c #46463A3A7D7D", +"s. c #424235357575", +"d. c #404034347171", +"f. c #BFBFCBCBFAFA", +"g. c #B8B8A8A8DDDD", +"h. c #5E5E60609292", +"j. c #565655558C8C", +"k. c #4B4B44448282", +"l. c #454539397B7B", +"z. c #434338387878", +"x. c #3F3F32326D6D", +"c. c #3D3D30306969", +"v. c #3A3A2E2E6363", +"b. c #36362A2A5C5C", +"n. c #343424245555", +"m. c #30301E1E4D4D", +"M. c #49493C3C8282", +"N. c #5E5E4F4F8C8C", +"B. c #56563B3B8B8B", +"V. c #545407078585", +"C. c #424234347272", +"Z. c #9797A4A4F7F7", +"A. c #444436367676", +"S. c #7D7D7979D5D5", +"D. c #464640408A8A", +"F. c #44444B4B8282", +"G. c #414107077777", +"H. c #71716161C1C1", +"J. c #303039397979", +"K. c #8E8E8E8EE6E6", +"L. c #404033338B8B", +"P. c #4A4A45458C8C", +"I. c #46463A3A8080", +"U. c #363629295454", +"Y. c #303022224848", +"T. c #424237377575", +"R. c #2E2E1D1D6363", +"E. c #79798383EAEA", +"W. c #74747B7BE4E4", +"Q. c #6D6D7676D6D6", +"!. c #6A6A7171CECE", +"~. c #66666969C6C6", +"^. c #62626565BCBC", +"/. c #5F5F6060B5B5", +"(. c #5B5B5B5BACAC", +"). c #535353539898", +"_. c #4F4F4F4FA4A4", +"`. c #54544D4DA4A4", +"'. c #323204046B6B", +"]. c #303035357979", +"[. c #313122224343", +"{. c #5A5A5B5BB7B7", +"}. c #484846468080", +"|. c #454541417575", +" X c #4B4B31318282", +".X c #47473C3C8484", +"XX c #3E3E35356E6E", +"oX c #2F2F26264040", +"OX c #2B2B23233A3A", +"+X c #262619195C5C", +"@X c #252515155A5A", +"#X c #55555151B3B3", +"$X c #3C3C2D2D5D5D", +"%X c #39392F2F5656", +"&X c #37372D2D5050", +"*X c #25251F1F3030", +"=X c #24241D1D4343", +"-X c #202013135656", +";X c #41413B3B6C6C", +":X c #444442429696", +">X c #212100005E5E", +",X c #444436367272", +" > , , , ", +" . . X X < < o o O O + @ 1 2 2 1 1 1 1 1 1 1 1 3 4 # # $ $ $ % % % 5 = = 6 6 - ; ; > > , , 7 ", +" . 8 < < < o O O + @ @ 2 9 9 0 0 q q q q q q q w 3 4 4 e e $ $ $ $ % 5 = = 6 6 6 ; ; > > r t ", +" . X < y u O O + @ 1 2 i 0 0 p p p p p p p a a p a s 3 4 4 e e e e d 5 5 f f 6 6 6 ; ; r r t ", +" X < y u O + + @ 2 9 0 g p p h h h h h h h p h h a a s s j k k j l d d 5 5 f f 6 6 r r r r r ", +" X < y O z x x 9 0 g c v b n n n n n n n n n n n h a a s s j j m l M d d N f f B B B B r r r ", +" < y u + z 2 0 c c b V C Z C C A A A A A S S S n h D w w m m m m k l M d d N f F F F B r r r ", +" < y O z z 9 c b V Z G H H H G S G G J J H V v c g g K K K K L P l l l M M N N N N I B B r r ", +" U u + z x i v C H Y J J J J H J T R H V E W W Q Q Q Q ! ! ! ~ ^ ^ / / M M M M M N ( B B r r ", +" ) _ z x 9 g b Z Y ` ' ' ' T T ] [ { } | .........W W Q Q X.! ~ ~ o.O./ / / / N F ( B B B r ", +" ) ) z x i c V G J ' +.+.+.+.] [ @.#.$.%.%.%.&.*. . .....W =.-.X.;.~ :.o.O.^ >.N F ( B B B B ", +" ) ,.<.2 g v C H J ' +.+.+.+.T Y 1.2.3.4.4.4.5.6.&.&. . ...W =.=.-.;.~ :.o.7.>.N F F ( B I I ", +" ) ,.<.8.9.b C H J T +.+.+.' J @.1.0.q.q.w.e.4.5.6.&.r. . .t.W =.=.-.;.~ :.o.7.y.N F ( ( I I ", +" 8.8.8.9.| u.C G J T +.+.' ` Y @.1.i.0.q.q.e.e.5.6.p.r.a. .t.t.s.d.d.-.;.~ :.7.7.y.F F ( I I ", +" 9.c c c v b A S H ' f.g.` Y @.h.1.i.j.0.q.q.e.k.6.p.r.a.l.t.z.s.s.d.x.c.v.b.n.m.7.N F F F I ", +" <.g M.N.B.B.n V.J f.R J @.h.h.1.i.i.j.j.0.q.3.k.6.p.r.a.l.l.z.s.C.d.x.x.c.v.b.n.m.y.N F F F ", +" + x i v B.Z Z G g.Z.[ @.2.i.i.j.j.j.j.j.0.q.3.k.6.p.p.a.l.l.A.s.C.C.d.x.c.v.b.n.m.7.y.N N y. ", +" O # 3 w p n Z ` f.S.H D.F.q.0.0.0.0.j.0.q.q.3.k.6.p.r.a.a.l.A.s.s.C.d.x.x.c.v.b.n.m.y.y.y.y. ", +" O # 4 s a G.V.T Z.H.V J.%.e.w.q.0.0.0.0.q.q.e.k.6.p.r.a.a.l.z.A.s.C.d.d.x.c.v.b.n.m.7.>.y.y. ", +" O # 4 s w G.A f.K.H L...4.P.w.w.w.q.q.q.q.e.e.5.6.M.I.I.a.a.l.z.A.s.d.d.x.c.v.v.U.Y.7.O.>.y. ", +" $ # 4 3 s G.G f.S.Z 9.*.D.P.P.w.w.w.w.w.e.e.5.5.M.M.I.I.a.a.l.z.T.s.d.d.x.x.c.v.U.Y.m.R.>.>. ", +" E.E.W.W.W.W.E.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { )._.`._. ", +" + # 3 w s '.` f.H.V ].*.D.P.P.P.P.P.P.P.5.5.5.M.M.M.I.I.a.l.z.z.T.T.s.d.d.x.c.v.U.Y.[.^ O.>. ", +" ~.~.~.~.~.~.K.Z.S.~.{.^.^.^.^.^.^.^.^././././././.(.(.(.(.(.(.{ { { { { ).).).w.w.}.|.P.u.} ", +" .I.6. X X XT f.H.b ].*.E D.D.D.D.5.5..X.XM.M.I.I.a.a.l.l.z.z.T.T.T.d.XXx.c.v.b.U.oXOXR.+X@X ", +" E.E.E.W.W.W.K.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { ).).#X_._. ", +" & % $ e '.= H f.H.b 8.W *.E E E .X.X.XI.I.I.I.a.a.l.l.z.z.T.T.T.C.XXXXc.v.$X%X&XY.*X=X2 @X-X ", +" {.{.{.{.{.#X~.Z.W.~.{.{./././././././././.(.(.(.(.(.(.(.{ { { { { { ).).).w.w.3.}.;X%.:X} } ", +" & & % $ e >XV.f.S.C K X.W t. . .l.l.t.t.t.t.A.A.A.,X,X,X,X,XX7X` Z.Z D ! =.=.s.t.t.t.A.A.s.A.,X,X,X,X > > t t t cX ", +" nXbXbXzXzXlXaXXXY +Xf = f = 7XtXR R mXn.Y.[.[.[.[.OX*X*X8X5X*X=X,.u vXvX; > > MXMX, 7 t t ", +" nXnXnXbXzXvX-.Y +XcX6 6 = = = d L B.G H `.X.:.7.m.=X=X=X=X=X6X,.u cXvXNX: BX> MXVXCXVX7 7 7 ", +" ZXZXnXbXAXgX@.+XvX; - - - - * @XR.>.sX>.R.i 0 x eXeXeXeXO hXaXcXvXNX: BXMXMXMXVXCXCXCXVX7 7 ", +" SXZXZXAXgXN.aXNX: : NXNXNX- * +X+X* 6 6 6 * * * * * * * vXvX- NX: DXBXMXMXFXCXCXCXCXGXVXVX7 ", +" SXSXHXgX0.JXKXLXKXKXDX: : NX* @X-X- - - - - - - - - - - NX: DXDXDXMXMXFXFXCXCXCXCXGXGXGXVXVX ", +" SXHXPX3.JXnXnXnXnXbXLXKXKXNXaX-XvX: : NX: : : : : : : BXDXDXLXMXMXFXFXCXCXCXCXGXGXGXGXGXGXGX ", +" IXUX$.AXZXZXZXZXnXnXnXLXLXNXJXvXBXDXBXBXBXBXDXDXDXDXLXDXLXLXFXFXFXFXCXCXCXCXGXGXGXGXGXGXGXGX ", +" "}; diff --git a/demo/itp04-rcp/example-bundle/icons/alt_window_16.gif b/demo/itp04-rcp/example-bundle/icons/alt_window_16.gif new file mode 100644 index 0000000000..05626b17d8 Binary files /dev/null and b/demo/itp04-rcp/example-bundle/icons/alt_window_16.gif differ diff --git a/demo/itp04-rcp/example-bundle/icons/alt_window_32.gif b/demo/itp04-rcp/example-bundle/icons/alt_window_32.gif new file mode 100644 index 0000000000..b432f88339 Binary files /dev/null and b/demo/itp04-rcp/example-bundle/icons/alt_window_32.gif differ diff --git a/demo/itp04-rcp/example-bundle/icons/sample.gif b/demo/itp04-rcp/example-bundle/icons/sample.gif new file mode 100644 index 0000000000..34fb3c9d8c Binary files /dev/null and b/demo/itp04-rcp/example-bundle/icons/sample.gif differ diff --git a/demo/itp04-rcp/example-bundle/images/featureImage.png b/demo/itp04-rcp/example-bundle/images/featureImage.png new file mode 100644 index 0000000000..8557e7792a Binary files /dev/null and b/demo/itp04-rcp/example-bundle/images/featureImage.png differ diff --git a/demo/itp04-rcp/example-bundle/plugin.xml b/demo/itp04-rcp/example-bundle/plugin.xml new file mode 100644 index 0000000000..d49bec45c4 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/plugin.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/itp04-rcp/example-bundle/pom.xml b/demo/itp04-rcp/example-bundle/pom.xml new file mode 100644 index 0000000000..fcd1bbf023 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/pom.xml @@ -0,0 +1,27 @@ + + + + 4.0.0 + + 0.1.0-SNAPSHOT + example-bundle + eclipse-plugin + RCP Example Bundle (Product Application) + + + 1.0.0-SNAPSHOT + example.group + parent + + + diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/Activator.java b/demo/itp04-rcp/example-bundle/src/example/bundle/Activator.java new file mode 100644 index 0000000000..af7bf7a190 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/Activator.java @@ -0,0 +1,75 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle; + +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 = "example-bundle"; + + // 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); + } +} diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/Application.java b/demo/itp04-rcp/example-bundle/src/example/bundle/Application.java new file mode 100644 index 0000000000..a96f777a60 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/Application.java @@ -0,0 +1,62 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle; + +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) throws Exception { + Display display = PlatformUI.createDisplay(); + try { + int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor()); + if (returnCode == PlatformUI.RETURN_RESTART) + return IApplication.EXIT_RESTART; + else + return IApplication.EXIT_OK; + } finally { + display.dispose(); + } + + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.equinox.app.IApplication#stop() + */ + public void stop() { + final IWorkbench workbench = PlatformUI.getWorkbench(); + if (workbench == null) + return; + final Display display = workbench.getDisplay(); + display.syncExec(new Runnable() { + public void run() { + if (!display.isDisposed()) + workbench.close(); + } + }); + } +} diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationActionBarAdvisor.java b/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationActionBarAdvisor.java new file mode 100644 index 0000000000..abbbc4f7bc --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationActionBarAdvisor.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle; + +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.application.ActionBarAdvisor; +import org.eclipse.ui.application.IActionBarConfigurer; + +public class ApplicationActionBarAdvisor extends ActionBarAdvisor { + + public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) { + super(configurer); + } + + protected void makeActions(IWorkbenchWindow window) { + } + + protected void fillMenuBar(IMenuManager menuBar) { + } + +} diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationWorkbenchAdvisor.java b/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationWorkbenchAdvisor.java new file mode 100644 index 0000000000..1b2716929e --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationWorkbenchAdvisor.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle; + +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 = "example.bundle.perspective"; + + public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { + return new ApplicationWorkbenchWindowAdvisor(configurer); + } + + public String getInitialWindowPerspectiveId() { + return PERSPECTIVE_ID; + } +} diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationWorkbenchWindowAdvisor.java b/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationWorkbenchWindowAdvisor.java new file mode 100644 index 0000000000..e1513a253a --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/ApplicationWorkbenchWindowAdvisor.java @@ -0,0 +1,37 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle; + +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); + } +} diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/Perspective.java b/demo/itp04-rcp/example-bundle/src/example/bundle/Perspective.java new file mode 100644 index 0000000000..7a4106ad8b --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/Perspective.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle; + +import org.eclipse.ui.IPageLayout; +import org.eclipse.ui.IPerspectiveFactory; + +public class Perspective implements IPerspectiveFactory { + + public void createInitialLayout(IPageLayout layout) { + } +} diff --git a/demo/itp04-rcp/example-bundle/src/example/bundle/handlers/SampleHandler.java b/demo/itp04-rcp/example-bundle/src/example/bundle/handlers/SampleHandler.java new file mode 100644 index 0000000000..af7c591e14 --- /dev/null +++ b/demo/itp04-rcp/example-bundle/src/example/bundle/handlers/SampleHandler.java @@ -0,0 +1,44 @@ +/******************************************************************************* + * Copyright (c) 2010, 2011 SAP AG and others. + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SAP AG - initial API and implementation + *******************************************************************************/ +package example.bundle.handlers; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.handlers.HandlerUtil; +import org.eclipse.jface.dialogs.MessageDialog; + +/** + * Our sample handler extends AbstractHandler, an IHandler base class. + * + * @see org.eclipse.core.commands.IHandler + * @see org.eclipse.core.commands.AbstractHandler + */ +public class SampleHandler extends AbstractHandler { + /** + * The constructor. + */ + public SampleHandler() { + } + + /** + * the command has been executed, so extract extract the needed information from the application + * context. + */ + public Object execute(ExecutionEvent event) throws ExecutionException { + IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); + MessageDialog.openInformation(window.getShell(), "Bundle", "Hello, Eclipse world"); + return null; + } +} diff --git a/demo/itp04-rcp/example-feature-2/.gitignore b/demo/itp04-rcp/example-feature-2/.gitignore new file mode 100644 index 0000000000..8032fef6bb --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/.gitignore @@ -0,0 +1,5 @@ +/target +/.settings +/.classpath +/.project +/workspace diff --git a/demo/itp04-rcp/example-feature-2/build.properties b/demo/itp04-rcp/example-feature-2/build.properties new file mode 100644 index 0000000000..59ab0d6e58 --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/build.properties @@ -0,0 +1,14 @@ +############################################################################### +# Copyright (c) 2010, 2011 SAP AG and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# SAP AG - initial API and implementation +############################################################################### +bin.includes = feature.xml,\ + license.html,\ + feature.properties,\ + epl-v10.html diff --git a/demo/itp04-rcp/example-feature-2/epl-v10.html b/demo/itp04-rcp/example-feature-2/epl-v10.html new file mode 100644 index 0000000000..ed4b196655 --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/epl-v10.html @@ -0,0 +1,328 @@ + + + + + + + + +Eclipse Public License - Version 1.0 + + + + + + +
+ +

Eclipse Public License - v 1.0 +

+ +

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER +THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, +REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE +OF THIS AGREEMENT.

+ +

1. DEFINITIONS

+ +

"Contribution" means:

+ +

a) +in the case of the initial Contributor, the initial code and documentation +distributed under this Agreement, and
+b) in the case of each subsequent Contributor:

+ +

i) +changes to the Program, and

+ +

ii) +additions to the Program;

+ +

where +such changes and/or additions to the Program originate from and are distributed +by that particular Contributor. A Contribution 'originates' from a Contributor +if it was added to the Program by such Contributor itself or anyone acting on +such Contributor's behalf. Contributions do not include additions to the +Program which: (i) are separate modules of software distributed in conjunction +with the Program under their own license agreement, and (ii) are not derivative +works of the Program.

+ +

"Contributor" means any person or +entity that distributes the Program.

+ +

"Licensed Patents " mean patent +claims licensable by a Contributor which are necessarily infringed by the use +or sale of its Contribution alone or when combined with the Program.

+ +

"Program" means the Contributions +distributed in accordance with this Agreement.

+ +

"Recipient" means anyone who +receives the Program under this Agreement, including all Contributors.

+ +

2. GRANT OF RIGHTS

+ +

a) +Subject to the terms of this Agreement, each Contributor hereby grants Recipient +a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly +display, publicly perform, distribute and sublicense the Contribution of such +Contributor, if any, and such derivative works, in source code and object code +form.

+ +

b) +Subject to the terms of this Agreement, each Contributor hereby grants +Recipient a non-exclusive, worldwide, royalty-free +patent license under Licensed Patents to make, use, sell, offer to sell, import +and otherwise transfer the Contribution of such Contributor, if any, in source +code and object code form. This patent license shall apply to the combination +of the Contribution and the Program if, at the time the Contribution is added +by the Contributor, such addition of the Contribution causes such combination +to be covered by the Licensed Patents. The patent license shall not apply to +any other combinations which include the Contribution. No hardware per se is +licensed hereunder.

+ +

c) +Recipient understands that although each Contributor grants the licenses to its +Contributions set forth herein, no assurances are provided by any Contributor +that the Program does not infringe the patent or other intellectual property +rights of any other entity. Each Contributor disclaims any liability to Recipient +for claims brought by any other entity based on infringement of intellectual +property rights or otherwise. As a condition to exercising the rights and +licenses granted hereunder, each Recipient hereby assumes sole responsibility +to secure any other intellectual property rights needed, if any. For example, +if a third party patent license is required to allow Recipient to distribute +the Program, it is Recipient's responsibility to acquire that license before +distributing the Program.

+ +

d) +Each Contributor represents that to its knowledge it has sufficient copyright +rights in its Contribution, if any, to grant the copyright license set forth in +this Agreement.

+ +

3. REQUIREMENTS

+ +

A Contributor may choose to distribute the +Program in object code form under its own license agreement, provided that: +

+ +

a) +it complies with the terms and conditions of this Agreement; and

+ +

b) +its license agreement:

+ +

i) +effectively disclaims on behalf of all Contributors all warranties and +conditions, express and implied, including warranties or conditions of title +and non-infringement, and implied warranties or conditions of merchantability +and fitness for a particular purpose;

+ +

ii) +effectively excludes on behalf of all Contributors all liability for damages, +including direct, indirect, special, incidental and consequential damages, such +as lost profits;

+ +

iii) +states that any provisions which differ from this Agreement are offered by that +Contributor alone and not by any other party; and

+ +

iv) +states that source code for the Program is available from such Contributor, and +informs licensees how to obtain it in a reasonable manner on or through a +medium customarily used for software exchange.

+ +

When the Program is made available in source +code form:

+ +

a) +it must be made available under this Agreement; and

+ +

b) a +copy of this Agreement must be included with each copy of the Program.

+ +

Contributors may not remove or alter any +copyright notices contained within the Program.

+ +

Each Contributor must identify itself as the +originator of its Contribution, if any, in a manner that reasonably allows +subsequent Recipients to identify the originator of the Contribution.

+ +

4. COMMERCIAL DISTRIBUTION

+ +

Commercial distributors of software may +accept certain responsibilities with respect to end users, business partners +and the like. While this license is intended to facilitate the commercial use +of the Program, the Contributor who includes the Program in a commercial +product offering should do so in a manner which does not create potential +liability for other Contributors. Therefore, if a Contributor includes the +Program in a commercial product offering, such Contributor ("Commercial +Contributor") hereby agrees to defend and indemnify every other +Contributor ("Indemnified Contributor") against any losses, damages and +costs (collectively "Losses") arising from claims, lawsuits and other +legal actions brought by a third party against the Indemnified Contributor to +the extent caused by the acts or omissions of such Commercial Contributor in +connection with its distribution of the Program in a commercial product +offering. The obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property infringement. In order +to qualify, an Indemnified Contributor must: a) promptly notify the Commercial +Contributor in writing of such claim, and b) allow the Commercial Contributor +to control, and cooperate with the Commercial Contributor in, the defense and +any related settlement negotiations. The Indemnified Contributor may participate +in any such claim at its own expense.

+ +

For example, a Contributor might include the +Program in a commercial product offering, Product X. That Contributor is then a +Commercial Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance claims and +warranties are such Commercial Contributor's responsibility alone. Under this +section, the Commercial Contributor would have to defend claims against the +other Contributors related to those performance claims and warranties, and if a +court requires any other Contributor to pay any damages as a result, the +Commercial Contributor must pay those damages.

+ +

5. NO WARRANTY

+ +

EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, +WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, +MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and distributing the +Program and assumes all risks associated with its exercise of rights under this +Agreement , including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs or +equipment, and unavailability or interruption of operations.

+ +

6. DISCLAIMER OF LIABILITY

+ +

EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF +THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES.

+ +

7. GENERAL

+ +

If any provision of this Agreement is invalid +or unenforceable under applicable law, it shall not affect the validity or +enforceability of the remainder of the terms of this Agreement, and without +further action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable.

+ +

If Recipient institutes patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) +alleging that the Program itself (excluding combinations of the Program with +other software or hardware) infringes such Recipient's patent(s), then such +Recipient's rights granted under Section 2(b) shall terminate as of the date +such litigation is filed.

+ +

All Recipient's rights under this Agreement +shall terminate if it fails to comply with any of the material terms or +conditions of this Agreement and does not cure such failure in a reasonable +period of time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use and +distribution of the Program as soon as reasonably practicable. However, +Recipient's obligations under this Agreement and any licenses granted by +Recipient relating to the Program shall continue and survive.

+ +

Everyone is permitted to copy and distribute +copies of this Agreement, but in order to avoid inconsistency the Agreement is +copyrighted and may only be modified in the following manner. The Agreement +Steward reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement Steward has +the right to modify this Agreement. The Eclipse Foundation is the initial +Agreement Steward. The Eclipse Foundation may assign the responsibility to +serve as the Agreement Steward to a suitable separate entity. Each new version +of the Agreement will be given a distinguishing version number. The Program +(including Contributions) may always be distributed subject to the version of +the Agreement under which it was received. In addition, after a new version of +the Agreement is published, Contributor may elect to distribute the Program +(including its Contributions) under the new version. Except as expressly stated +in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to +the intellectual property of any Contributor under this Agreement, whether +expressly, by implication, estoppel or otherwise. All rights in the Program not +expressly granted under this Agreement are reserved.

+ +

This Agreement is governed by the laws of the +State of New York and the intellectual property laws of the United States of +America. No party to this Agreement will bring a legal action under this +Agreement more than one year after the cause of action arose. Each party waives +its rights to a jury trial in any resulting litigation.

+ +

 

+ +
+ + + + \ No newline at end of file diff --git a/demo/itp04-rcp/example-feature-2/feature.properties b/demo/itp04-rcp/example-feature-2/feature.properties new file mode 100644 index 0000000000..3982edde05 --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/feature.properties @@ -0,0 +1,157 @@ +############################################################################### +# Copyright (c) 2010, 2011 SAP AG and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# SAP AG - initial API and implementation +############################################################################### +featureName=Example Feature 2 +providerName=Eclipse.org + +# description property - text of the "Feature Descrption" +description=Tycho Example Feature +################ end of description property ################################## + +# "copyright" property - text of the "Feature Update Copyright" +copyright=\ +Copyright (c) 2010, 2011 SAP AG and others.\n\ +All rights reserved. This program and the accompanying materials\n\ +are made available under the terms of the Eclipse Public License v1.0\n\ +which accompanies this distribution, and is available at\n\ +http://www.eclipse.org/legal/epl-v10.html\n +################ end of copyright property #################################### + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML page +licenseURL=license.html + +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "licenseURL" +license=\ +Eclipse Foundation Software User Agreement\n\ +April 14, 2010\n\ +\n\ +Usage Of Content\n\ +\n\ +THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\ +OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\ +USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\ +AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\ +NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\ +AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\ +AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\ +OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\ +TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\ +OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\ +BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\ +\n\ +Applicable Licenses\n\ +\n\ +Unless otherwise indicated, all Content made available by the\n\ +Eclipse Foundation is provided to you under the terms and conditions of\n\ +the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\ +provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\ +For purposes of the EPL, "Program" will mean the Content.\n\ +\n\ +Content includes, but is not limited to, source code, object code,\n\ +documentation and other files maintained in the Eclipse Foundation source code\n\ +repository ("Repository") in software modules ("Modules") and made available\n\ +as downloadable archives ("Downloads").\n\ +\n\ + - Content may be structured and packaged into modules to facilitate delivering,\n\ + extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\ + plug-in fragments ("Fragments"), and features ("Features").\n\ + - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\ + in a directory named "plugins".\n\ + - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\ + Each Feature may be packaged as a sub-directory in a directory named "features".\n\ + Within a Feature, files named "feature.xml" may contain a list of the names and version\n\ + numbers of the Plug-ins and/or Fragments associated with that Feature.\n\ + - Features may also include other Features ("Included Features"). Within a Feature, files\n\ + named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\ +\n\ +The terms and conditions governing Plug-ins and Fragments should be\n\ +contained in files named "about.html" ("Abouts"). The terms and\n\ +conditions governing Features and Included Features should be contained\n\ +in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\ +Licenses may be located in any directory of a Download or Module\n\ +including, but not limited to the following locations:\n\ +\n\ + - The top-level (root) directory\n\ + - Plug-in and Fragment directories\n\ + - Inside Plug-ins and Fragments packaged as JARs\n\ + - Sub-directories of the directory named "src" of certain Plug-ins\n\ + - Feature directories\n\ +\n\ +Note: if a Feature made available by the Eclipse Foundation is installed using the\n\ +Provisioning Technology (as defined below), you must agree to a license ("Feature \n\ +Update License") during the installation process. If the Feature contains\n\ +Included Features, the Feature Update License should either provide you\n\ +with the terms and conditions governing the Included Features or inform\n\ +you where you can locate them. Feature Update Licenses may be found in\n\ +the "license" property of files named "feature.properties" found within a Feature.\n\ +Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\ +terms and conditions (or references to such terms and conditions) that\n\ +govern your use of the associated Content in that directory.\n\ +\n\ +THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\ +TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\ +SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\ +\n\ + - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\ + - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\ + - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\ + - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\ + - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\ +\n\ +IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\ +TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\ +is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\ +govern that particular Content.\n\ +\n\ +\n\Use of Provisioning Technology\n\ +\n\ +The Eclipse Foundation makes available provisioning software, examples of which include,\n\ +but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\ +the purpose of allowing users to install software, documentation, information and/or\n\ +other materials (collectively "Installable Software"). This capability is provided with\n\ +the intent of allowing such users to install, extend and update Eclipse-based products.\n\ +Information about packaging Installable Software is available at\n\ +http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\ +\n\ +You may use Provisioning Technology to allow other parties to install Installable Software.\n\ +You shall be responsible for enabling the applicable license agreements relating to the\n\ +Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\ +in accordance with the Specification. By using Provisioning Technology in such a manner and\n\ +making it available in accordance with the Specification, you further acknowledge your\n\ +agreement to, and the acquisition of all necessary rights to permit the following:\n\ +\n\ + 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\ + the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\ + extending or updating the functionality of an Eclipse-based product.\n\ + 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\ + Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\ + 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\ + govern the use of the Installable Software ("Installable Software Agreement") and such\n\ + Installable Software Agreement shall be accessed from the Target Machine in accordance\n\ + with the Specification. Such Installable Software Agreement must inform the user of the\n\ + terms and conditions that govern the Installable Software and must solicit acceptance by\n\ + the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\ + indication of agreement by the user, the provisioning Technology will complete installation\n\ + of the Installable Software.\n\ +\n\ +Cryptography\n\ +\n\ +Content may contain encryption software. The country in which you are\n\ +currently may have restrictions on the import, possession, and use,\n\ +and/or re-export to another country, of encryption software. BEFORE\n\ +using any encryption software, please check the country's laws,\n\ +regulations and policies concerning the import, possession, or use, and\n\ +re-export of encryption software, to see if this is permitted.\n\ +\n\ +Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n +########### end of license property ########################################## + diff --git a/demo/itp04-rcp/example-feature-2/feature.xml b/demo/itp04-rcp/example-feature-2/feature.xml new file mode 100644 index 0000000000..73e955d500 --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/feature.xml @@ -0,0 +1,27 @@ + + + + + %description + + + + %copyright + + + + %license + + + + + diff --git a/demo/itp04-rcp/example-feature-2/license.html b/demo/itp04-rcp/example-feature-2/license.html new file mode 100644 index 0000000000..c184ca36a9 --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/license.html @@ -0,0 +1,107 @@ + + + + + +Eclipse Foundation Software User Agreement + + + +

Eclipse Foundation Software User Agreement

+

April 14, 2010

+ +

Usage Of Content

+ +

THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS + (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND + CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE + OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR + NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND + CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.

+ +

Applicable Licenses

+ +

Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 + ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html. + For purposes of the EPL, "Program" will mean the Content.

+ +

Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code + repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").

+ +
    +
  • Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
  • +
  • Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
  • +
  • A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins + and/or Fragments associated with that Feature.
  • +
  • Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
  • +
+ +

The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and +Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module +including, but not limited to the following locations:

+ +
    +
  • The top-level (root) directory
  • +
  • Plug-in and Fragment directories
  • +
  • Inside Plug-ins and Fragments packaged as JARs
  • +
  • Sub-directories of the directory named "src" of certain Plug-ins
  • +
  • Feature directories
  • +
+ +

Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the +installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or +inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature. +Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in +that directory.

+ +

THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE +OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):

+ + + +

IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please +contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.

+ + +

Use of Provisioning Technology

+ +

The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse + Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or + other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to + install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html + ("Specification").

+ +

You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the + applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology + in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the + Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:

+ +
    +
  1. A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology + on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based + product.
  2. +
  3. During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be + accessed and copied to the Target Machine.
  4. +
  5. Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable + Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target + Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern + the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such + indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
  6. +
+ +

Cryptography

+ +

Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to + another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import, + possession, or use, and re-export of encryption software, to see if this is permitted.

+ +

Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.

+ + diff --git a/demo/itp04-rcp/example-feature-2/pom.xml b/demo/itp04-rcp/example-feature-2/pom.xml new file mode 100644 index 0000000000..7b8cd45d83 --- /dev/null +++ b/demo/itp04-rcp/example-feature-2/pom.xml @@ -0,0 +1,27 @@ + + + + 4.0.0 + + 0.2.0-SNAPSHOT + example-feature-2 + eclipse-feature + RCP Example Feature 2 + + + 1.0.0-SNAPSHOT + example.group + parent + + + diff --git a/demo/itp04-rcp/example-feature/.gitignore b/demo/itp04-rcp/example-feature/.gitignore new file mode 100644 index 0000000000..8032fef6bb --- /dev/null +++ b/demo/itp04-rcp/example-feature/.gitignore @@ -0,0 +1,5 @@ +/target +/.settings +/.classpath +/.project +/workspace diff --git a/demo/itp04-rcp/example-feature/README.txt b/demo/itp04-rcp/example-feature/README.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/demo/itp04-rcp/example-feature/build.properties b/demo/itp04-rcp/example-feature/build.properties new file mode 100644 index 0000000000..4e89bee422 --- /dev/null +++ b/demo/itp04-rcp/example-feature/build.properties @@ -0,0 +1,23 @@ +############################################################################### +# Copyright (c) 2010, 2011 SAP AG and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# SAP AG - initial API and implementation +############################################################################### +bin.includes = feature.xml,\ + license.html,\ + feature.properties,\ + epl-v10.html + +root = file:README.txt +root.win32.win32.x86_64 = rootfiles/win +root.linux.gtk.x86_64 = rootfiles/linux +root.macosx.cocoa.x86_64 = rootfiles/macosx + +# permissions and links works if product is built on linux (will not work if built on windows) +root.linux.gtk.x86_64.permissions.755 = scripts/hello +root.linux.gtk.x86_64.link = scripts/hello,hello_alias diff --git a/demo/itp04-rcp/example-feature/epl-v10.html b/demo/itp04-rcp/example-feature/epl-v10.html new file mode 100644 index 0000000000..ed4b196655 --- /dev/null +++ b/demo/itp04-rcp/example-feature/epl-v10.html @@ -0,0 +1,328 @@ + + + + + + + + +Eclipse Public License - Version 1.0 + + + + + + +
+ +

Eclipse Public License - v 1.0 +

+ +

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER +THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, +REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE +OF THIS AGREEMENT.

+ +

1. DEFINITIONS

+ +

"Contribution" means:

+ +

a) +in the case of the initial Contributor, the initial code and documentation +distributed under this Agreement, and
+b) in the case of each subsequent Contributor:

+ +

i) +changes to the Program, and

+ +

ii) +additions to the Program;

+ +

where +such changes and/or additions to the Program originate from and are distributed +by that particular Contributor. A Contribution 'originates' from a Contributor +if it was added to the Program by such Contributor itself or anyone acting on +such Contributor's behalf. Contributions do not include additions to the +Program which: (i) are separate modules of software distributed in conjunction +with the Program under their own license agreement, and (ii) are not derivative +works of the Program.

+ +

"Contributor" means any person or +entity that distributes the Program.

+ +

"Licensed Patents " mean patent +claims licensable by a Contributor which are necessarily infringed by the use +or sale of its Contribution alone or when combined with the Program.

+ +

"Program" means the Contributions +distributed in accordance with this Agreement.

+ +

"Recipient" means anyone who +receives the Program under this Agreement, including all Contributors.

+ +

2. GRANT OF RIGHTS

+ +

a) +Subject to the terms of this Agreement, each Contributor hereby grants Recipient +a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly +display, publicly perform, distribute and sublicense the Contribution of such +Contributor, if any, and such derivative works, in source code and object code +form.

+ +

b) +Subject to the terms of this Agreement, each Contributor hereby grants +Recipient a non-exclusive, worldwide, royalty-free +patent license under Licensed Patents to make, use, sell, offer to sell, import +and otherwise transfer the Contribution of such Contributor, if any, in source +code and object code form. This patent license shall apply to the combination +of the Contribution and the Program if, at the time the Contribution is added +by the Contributor, such addition of the Contribution causes such combination +to be covered by the Licensed Patents. The patent license shall not apply to +any other combinations which include the Contribution. No hardware per se is +licensed hereunder.

+ +

c) +Recipient understands that although each Contributor grants the licenses to its +Contributions set forth herein, no assurances are provided by any Contributor +that the Program does not infringe the patent or other intellectual property +rights of any other entity. Each Contributor disclaims any liability to Recipient +for claims brought by any other entity based on infringement of intellectual +property rights or otherwise. As a condition to exercising the rights and +licenses granted hereunder, each Recipient hereby assumes sole responsibility +to secure any other intellectual property rights needed, if any. For example, +if a third party patent license is required to allow Recipient to distribute +the Program, it is Recipient's responsibility to acquire that license before +distributing the Program.

+ +

d) +Each Contributor represents that to its knowledge it has sufficient copyright +rights in its Contribution, if any, to grant the copyright license set forth in +this Agreement.

+ +

3. REQUIREMENTS

+ +

A Contributor may choose to distribute the +Program in object code form under its own license agreement, provided that: +

+ +

a) +it complies with the terms and conditions of this Agreement; and

+ +

b) +its license agreement:

+ +

i) +effectively disclaims on behalf of all Contributors all warranties and +conditions, express and implied, including warranties or conditions of title +and non-infringement, and implied warranties or conditions of merchantability +and fitness for a particular purpose;

+ +

ii) +effectively excludes on behalf of all Contributors all liability for damages, +including direct, indirect, special, incidental and consequential damages, such +as lost profits;

+ +

iii) +states that any provisions which differ from this Agreement are offered by that +Contributor alone and not by any other party; and

+ +

iv) +states that source code for the Program is available from such Contributor, and +informs licensees how to obtain it in a reasonable manner on or through a +medium customarily used for software exchange.

+ +

When the Program is made available in source +code form:

+ +

a) +it must be made available under this Agreement; and

+ +

b) a +copy of this Agreement must be included with each copy of the Program.

+ +

Contributors may not remove or alter any +copyright notices contained within the Program.

+ +

Each Contributor must identify itself as the +originator of its Contribution, if any, in a manner that reasonably allows +subsequent Recipients to identify the originator of the Contribution.

+ +

4. COMMERCIAL DISTRIBUTION

+ +

Commercial distributors of software may +accept certain responsibilities with respect to end users, business partners +and the like. While this license is intended to facilitate the commercial use +of the Program, the Contributor who includes the Program in a commercial +product offering should do so in a manner which does not create potential +liability for other Contributors. Therefore, if a Contributor includes the +Program in a commercial product offering, such Contributor ("Commercial +Contributor") hereby agrees to defend and indemnify every other +Contributor ("Indemnified Contributor") against any losses, damages and +costs (collectively "Losses") arising from claims, lawsuits and other +legal actions brought by a third party against the Indemnified Contributor to +the extent caused by the acts or omissions of such Commercial Contributor in +connection with its distribution of the Program in a commercial product +offering. The obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property infringement. In order +to qualify, an Indemnified Contributor must: a) promptly notify the Commercial +Contributor in writing of such claim, and b) allow the Commercial Contributor +to control, and cooperate with the Commercial Contributor in, the defense and +any related settlement negotiations. The Indemnified Contributor may participate +in any such claim at its own expense.

+ +

For example, a Contributor might include the +Program in a commercial product offering, Product X. That Contributor is then a +Commercial Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance claims and +warranties are such Commercial Contributor's responsibility alone. Under this +section, the Commercial Contributor would have to defend claims against the +other Contributors related to those performance claims and warranties, and if a +court requires any other Contributor to pay any damages as a result, the +Commercial Contributor must pay those damages.

+ +

5. NO WARRANTY

+ +

EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, +WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, +MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and distributing the +Program and assumes all risks associated with its exercise of rights under this +Agreement , including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs or +equipment, and unavailability or interruption of operations.

+ +

6. DISCLAIMER OF LIABILITY

+ +

EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF +THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES.

+ +

7. GENERAL

+ +

If any provision of this Agreement is invalid +or unenforceable under applicable law, it shall not affect the validity or +enforceability of the remainder of the terms of this Agreement, and without +further action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable.

+ +

If Recipient institutes patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) +alleging that the Program itself (excluding combinations of the Program with +other software or hardware) infringes such Recipient's patent(s), then such +Recipient's rights granted under Section 2(b) shall terminate as of the date +such litigation is filed.

+ +

All Recipient's rights under this Agreement +shall terminate if it fails to comply with any of the material terms or +conditions of this Agreement and does not cure such failure in a reasonable +period of time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use and +distribution of the Program as soon as reasonably practicable. However, +Recipient's obligations under this Agreement and any licenses granted by +Recipient relating to the Program shall continue and survive.

+ +

Everyone is permitted to copy and distribute +copies of this Agreement, but in order to avoid inconsistency the Agreement is +copyrighted and may only be modified in the following manner. The Agreement +Steward reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement Steward has +the right to modify this Agreement. The Eclipse Foundation is the initial +Agreement Steward. The Eclipse Foundation may assign the responsibility to +serve as the Agreement Steward to a suitable separate entity. Each new version +of the Agreement will be given a distinguishing version number. The Program +(including Contributions) may always be distributed subject to the version of +the Agreement under which it was received. In addition, after a new version of +the Agreement is published, Contributor may elect to distribute the Program +(including its Contributions) under the new version. Except as expressly stated +in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to +the intellectual property of any Contributor under this Agreement, whether +expressly, by implication, estoppel or otherwise. All rights in the Program not +expressly granted under this Agreement are reserved.

+ +

This Agreement is governed by the laws of the +State of New York and the intellectual property laws of the United States of +America. No party to this Agreement will bring a legal action under this +Agreement more than one year after the cause of action arose. Each party waives +its rights to a jury trial in any resulting litigation.

+ +

 

+ +
+ + + + \ No newline at end of file diff --git a/demo/itp04-rcp/example-feature/feature.properties b/demo/itp04-rcp/example-feature/feature.properties new file mode 100644 index 0000000000..4a1a063d2e --- /dev/null +++ b/demo/itp04-rcp/example-feature/feature.properties @@ -0,0 +1,157 @@ +############################################################################### +# Copyright (c) 2010, 2011 SAP AG and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# SAP AG - initial API and implementation +############################################################################### +featureName=Example Feature +providerName=Eclipse.org + +# description property - text of the "Feature Descrption" +description=Tycho Example Feature +################ end of description property ################################## + +# "copyright" property - text of the "Feature Update Copyright" +copyright=\ +Copyright (c) 2010, 2011 SAP AG and others.\n\ +All rights reserved. This program and the accompanying materials\n\ +are made available under the terms of the Eclipse Public License v1.0\n\ +which accompanies this distribution, and is available at\n\ +http://www.eclipse.org/legal/epl-v10.html\n +################ end of copyright property #################################### + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML page +licenseURL=license.html + +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "licenseURL" +license=\ +Eclipse Foundation Software User Agreement\n\ +April 14, 2010\n\ +\n\ +Usage Of Content\n\ +\n\ +THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\ +OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\ +USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\ +AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\ +NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\ +AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\ +AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\ +OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\ +TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\ +OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\ +BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\ +\n\ +Applicable Licenses\n\ +\n\ +Unless otherwise indicated, all Content made available by the\n\ +Eclipse Foundation is provided to you under the terms and conditions of\n\ +the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\ +provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\ +For purposes of the EPL, "Program" will mean the Content.\n\ +\n\ +Content includes, but is not limited to, source code, object code,\n\ +documentation and other files maintained in the Eclipse Foundation source code\n\ +repository ("Repository") in software modules ("Modules") and made available\n\ +as downloadable archives ("Downloads").\n\ +\n\ + - Content may be structured and packaged into modules to facilitate delivering,\n\ + extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\ + plug-in fragments ("Fragments"), and features ("Features").\n\ + - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\ + in a directory named "plugins".\n\ + - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\ + Each Feature may be packaged as a sub-directory in a directory named "features".\n\ + Within a Feature, files named "feature.xml" may contain a list of the names and version\n\ + numbers of the Plug-ins and/or Fragments associated with that Feature.\n\ + - Features may also include other Features ("Included Features"). Within a Feature, files\n\ + named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\ +\n\ +The terms and conditions governing Plug-ins and Fragments should be\n\ +contained in files named "about.html" ("Abouts"). The terms and\n\ +conditions governing Features and Included Features should be contained\n\ +in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\ +Licenses may be located in any directory of a Download or Module\n\ +including, but not limited to the following locations:\n\ +\n\ + - The top-level (root) directory\n\ + - Plug-in and Fragment directories\n\ + - Inside Plug-ins and Fragments packaged as JARs\n\ + - Sub-directories of the directory named "src" of certain Plug-ins\n\ + - Feature directories\n\ +\n\ +Note: if a Feature made available by the Eclipse Foundation is installed using the\n\ +Provisioning Technology (as defined below), you must agree to a license ("Feature \n\ +Update License") during the installation process. If the Feature contains\n\ +Included Features, the Feature Update License should either provide you\n\ +with the terms and conditions governing the Included Features or inform\n\ +you where you can locate them. Feature Update Licenses may be found in\n\ +the "license" property of files named "feature.properties" found within a Feature.\n\ +Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\ +terms and conditions (or references to such terms and conditions) that\n\ +govern your use of the associated Content in that directory.\n\ +\n\ +THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\ +TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\ +SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\ +\n\ + - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\ + - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\ + - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\ + - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\ + - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\ +\n\ +IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\ +TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\ +is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\ +govern that particular Content.\n\ +\n\ +\n\Use of Provisioning Technology\n\ +\n\ +The Eclipse Foundation makes available provisioning software, examples of which include,\n\ +but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\ +the purpose of allowing users to install software, documentation, information and/or\n\ +other materials (collectively "Installable Software"). This capability is provided with\n\ +the intent of allowing such users to install, extend and update Eclipse-based products.\n\ +Information about packaging Installable Software is available at\n\ +http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\ +\n\ +You may use Provisioning Technology to allow other parties to install Installable Software.\n\ +You shall be responsible for enabling the applicable license agreements relating to the\n\ +Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\ +in accordance with the Specification. By using Provisioning Technology in such a manner and\n\ +making it available in accordance with the Specification, you further acknowledge your\n\ +agreement to, and the acquisition of all necessary rights to permit the following:\n\ +\n\ + 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\ + the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\ + extending or updating the functionality of an Eclipse-based product.\n\ + 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\ + Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\ + 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\ + govern the use of the Installable Software ("Installable Software Agreement") and such\n\ + Installable Software Agreement shall be accessed from the Target Machine in accordance\n\ + with the Specification. Such Installable Software Agreement must inform the user of the\n\ + terms and conditions that govern the Installable Software and must solicit acceptance by\n\ + the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\ + indication of agreement by the user, the provisioning Technology will complete installation\n\ + of the Installable Software.\n\ +\n\ +Cryptography\n\ +\n\ +Content may contain encryption software. The country in which you are\n\ +currently may have restrictions on the import, possession, and use,\n\ +and/or re-export to another country, of encryption software. BEFORE\n\ +using any encryption software, please check the country's laws,\n\ +regulations and policies concerning the import, possession, or use, and\n\ +re-export of encryption software, to see if this is permitted.\n\ +\n\ +Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n +########### end of license property ########################################## + diff --git a/demo/itp04-rcp/example-feature/feature.xml b/demo/itp04-rcp/example-feature/feature.xml new file mode 100644 index 0000000000..4594603c86 --- /dev/null +++ b/demo/itp04-rcp/example-feature/feature.xml @@ -0,0 +1,27 @@ + + + + + %description + + + + %copyright + + + + %license + + + + + diff --git a/demo/itp04-rcp/example-feature/license.html b/demo/itp04-rcp/example-feature/license.html new file mode 100644 index 0000000000..c184ca36a9 --- /dev/null +++ b/demo/itp04-rcp/example-feature/license.html @@ -0,0 +1,107 @@ + + + + + +Eclipse Foundation Software User Agreement + + + +

Eclipse Foundation Software User Agreement

+

April 14, 2010

+ +

Usage Of Content

+ +

THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS + (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND + CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE + OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR + NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND + CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.

+ +

Applicable Licenses

+ +

Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 + ("EPL"). A copy of the EPL is provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html. + For purposes of the EPL, "Program" will mean the Content.

+ +

Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code + repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").

+ +
    +
  • Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").
  • +
  • Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".
  • +
  • A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins + and/or Fragments associated with that Feature.
  • +
  • Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.
  • +
+ +

The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and +Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module +including, but not limited to the following locations:

+ +
    +
  • The top-level (root) directory
  • +
  • Plug-in and Fragment directories
  • +
  • Inside Plug-ins and Fragments packaged as JARs
  • +
  • Sub-directories of the directory named "src" of certain Plug-ins
  • +
  • Feature directories
  • +
+ +

Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the +installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or +inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature. +Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in +that directory.

+ +

THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE +OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):

+ + + +

IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please +contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.

+ + +

Use of Provisioning Technology

+ +

The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse + Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or + other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to + install, extend and update Eclipse-based products. Information about packaging Installable Software is available at http://eclipse.org/equinox/p2/repository_packaging.html + ("Specification").

+ +

You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the + applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology + in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the + Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:

+ +
    +
  1. A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology + on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based + product.
  2. +
  3. During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be + accessed and copied to the Target Machine.
  4. +
  5. Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable + Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target + Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern + the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such + indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.
  6. +
+ +

Cryptography

+ +

Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to + another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import, + possession, or use, and re-export of encryption software, to see if this is permitted.

+ +

Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.

+ + diff --git a/demo/itp04-rcp/example-feature/pom.xml b/demo/itp04-rcp/example-feature/pom.xml new file mode 100644 index 0000000000..c309ec136a --- /dev/null +++ b/demo/itp04-rcp/example-feature/pom.xml @@ -0,0 +1,27 @@ + + + + 4.0.0 + + 0.1.0-SNAPSHOT + example-feature + eclipse-feature + RCP Example Feature + + + 1.0.0-SNAPSHOT + example.group + parent + + + diff --git a/demo/itp04-rcp/example-feature/rootfiles/linux/doc/doc_linux.html b/demo/itp04-rcp/example-feature/rootfiles/linux/doc/doc_linux.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/demo/itp04-rcp/example-feature/rootfiles/linux/scripts/hello b/demo/itp04-rcp/example-feature/rootfiles/linux/scripts/hello new file mode 100644 index 0000000000..b0f0a0b0f0 --- /dev/null +++ b/demo/itp04-rcp/example-feature/rootfiles/linux/scripts/hello @@ -0,0 +1,2 @@ +#!/bin/bash +echo Hello world diff --git a/demo/itp04-rcp/example-feature/rootfiles/macosx/doc/doc_macos.html b/demo/itp04-rcp/example-feature/rootfiles/macosx/doc/doc_macos.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/demo/itp04-rcp/example-feature/rootfiles/win/doc/doc_win.html b/demo/itp04-rcp/example-feature/rootfiles/win/doc/doc_win.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/demo/itp04-rcp/mars/.gitignore b/demo/itp04-rcp/mars/.gitignore new file mode 100644 index 0000000000..8032fef6bb --- /dev/null +++ b/demo/itp04-rcp/mars/.gitignore @@ -0,0 +1,5 @@ +/target +/.settings +/.classpath +/.project +/workspace diff --git a/demo/itp04-rcp/mars/mars.target b/demo/itp04-rcp/mars/mars.target new file mode 100644 index 0000000000..400cf54baf --- /dev/null +++ b/demo/itp04-rcp/mars/mars.target @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/demo/itp04-rcp/mars/pom.xml b/demo/itp04-rcp/mars/pom.xml new file mode 100644 index 0000000000..8923f9b81a --- /dev/null +++ b/demo/itp04-rcp/mars/pom.xml @@ -0,0 +1,27 @@ + + + + 4.0.0 + + mars + eclipse-target-definition + RCP Example Target Definition + + + parent + example.group + 1.0.0-SNAPSHOT + + + diff --git a/demo/itp04-rcp/pom.xml b/demo/itp04-rcp/pom.xml new file mode 100644 index 0000000000..20b9ebce18 --- /dev/null +++ b/demo/itp04-rcp/pom.xml @@ -0,0 +1,78 @@ + + + + 4.0.0 + + 1.0.0-SNAPSHOT + example.group + parent + pom + RCP Parent + + + 2.3.0 + UTF-8 + + + + eclipse-repository + example-bundle + example-feature + example-feature-2 + mars + root-files + root-files-windows + + + + + + org.eclipse.tycho + target-platform-configuration + ${tycho-version} + + + + example.group + mars + 1.0.0-SNAPSHOT + + + + + win32 + win32 + x86_64 + + + linux + gtk + x86_64 + + + macosx + cocoa + x86_64 + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + + diff --git a/demo/itp04-rcp/root-files-windows/p2iu.xml b/demo/itp04-rcp/root-files-windows/p2iu.xml new file mode 100644 index 0000000000..6be2d7b1b8 --- /dev/null +++ b/demo/itp04-rcp/root-files-windows/p2iu.xml @@ -0,0 +1,17 @@ + + + + + + + + + + unzip(source:@artifact, target:${installFolder}); + + + cleanupzip(source:@artifact, target:${installFolder}); + + + + diff --git a/demo/itp04-rcp/root-files-windows/pom.xml b/demo/itp04-rcp/root-files-windows/pom.xml new file mode 100644 index 0000000000..6d3af281e6 --- /dev/null +++ b/demo/itp04-rcp/root-files-windows/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + org.tycho.demo.rootfiles.win + p2-installable-unit + 1.0.0-SNAPSHOT + + + example.group + parent + 1.0.0-SNAPSHOT + + + diff --git a/demo/itp04-rcp/root-files-windows/src/main/resources/windowsFile.txt b/demo/itp04-rcp/root-files-windows/src/main/resources/windowsFile.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/demo/itp04-rcp/root-files/p2iu.xml b/demo/itp04-rcp/root-files/p2iu.xml new file mode 100644 index 0000000000..f4f1d3399b --- /dev/null +++ b/demo/itp04-rcp/root-files/p2iu.xml @@ -0,0 +1,24 @@ + + + + + + + + + (&(osgi.arch=x86_64)(osgi.os=win32)(osgi.ws=win32)) + + + + + + + + unzip(source:@artifact, target:${installFolder}); + + + cleanupzip(source:@artifact, target:${installFolder}); + + + + diff --git a/demo/itp04-rcp/root-files/pom.xml b/demo/itp04-rcp/root-files/pom.xml new file mode 100644 index 0000000000..b9740bd646 --- /dev/null +++ b/demo/itp04-rcp/root-files/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + org.tycho.demo.rootfiles + p2-installable-unit + 1.0.0 + + + example.group + parent + 1.0.0-SNAPSHOT + + + diff --git a/demo/itp04-rcp/root-files/src/main/resources/myFile.txt b/demo/itp04-rcp/root-files/src/main/resources/myFile.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tycho-demo/README.txt b/tycho-demo/README.txt deleted file mode 100644 index b097eadbb3..0000000000 --- a/tycho-demo/README.txt +++ /dev/null @@ -1,5 +0,0 @@ -To checkout Tycho demo projects have been moved to a separate git repository -To checkout the demo projects execute the following command - - git clone git://git.eclipse.org/gitroot/tycho/org.eclipse.tycho-demo.git -