Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » RCP tutorial Part 1
RCP tutorial Part 1 [message #251275] Thu, 10 June 2004 00:10 Go to next message
Kaj Kandler is currently offline Kaj KandlerFriend
Messages: 33
Registered: July 2009
Member
Hi Ed,
thanks for working on this tutorial. It's great to have some hands on
introduction to building a simple RCP.

I just thought I'll give you some feedback about the challenges I
encountered, using it with 3.0RC1

- The project wizard does default the jar file to part1.jar, not
rcptutorial1.jar. Things would go smoother, if these things match.
- I had quit some difficulties to follow your instructions. A bit more
pointers where to look fo rthe different pieces to the puzzle might help.
- I assume the file "Plugin.properties" is to be a new file. I created
on, named "plugin.properties" (lower capital "p"). I guess that is what
is needed.
- The biggest struggle where the plug-in dependencies. It took me a
while to figure the three out (and that I do have to add them to the
manifest.mf):
* org.eclipse.core.runtime
* org.eclipse.swt
* org.eclipse.ui

Good for now. I figured out how to launch the window in the Debug mode
within eclispe. However, I'm not sure what the effect of the -consoleLog
should be. I'm not sure if I place it in the correctplace.

---
Starting the stand alone program got me this
---
C:\tmp\RCPtutorial1>echo on

C:\tmp\RCPtutorial1>JAVA_HOME=C:\j2sdk1.4.2
'JAVA_HOME' is not recognized as an internal or external command,
operable program or batch file.

C:\tmp\RCPtutorial1>setlocal

C:\tmp\RCPtutorial1>cd C:\tmp\RCPtutorial1\

C:\tmp\RCPtutorial1>rem Check configuration\*\*.log for errors

C:\tmp\RCPtutorial1>del configuration\*.log
The system cannot find the file specified.

C:\tmp\RCPtutorial1>java -cp startup.jar org.eclipse.core.launcher.Main
-application org.eclipse.ui.tutorials.rcp.part1.
RcpApplication -consoleLog || pause
!SESSION Jun 09, 2004 19:27:50.840
---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -application
org.eclipse.ui.tutorials.rcp.part1.RcpApplication
!ENTRY org.eclipse.osgi Jun 09, 2004 19:27:50.850
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application
"org.eclipse.ui.tutorials.rcp.part1.RcpApplication" could not be found
in the re
gistry. The applications available are: <NONE>.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:324)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)
!ENTRY org.eclipse.osgi Jun 09, 2004 19:27:50.860
!MESSAGE Bundle
update@/c:/tmp/RCPtutorial1/plugins/org.eclipse.ui.tutorials .rcp.part1_1.0.0/
[3] was not resolved.
!SUBENTRY 1 org.eclipse.osgi Jun 09, 2004 19:27:50.860
!MESSAGE Missing required bundle
org.eclipse.core.runtime.compatibility_null,null.
---
Reason, the org.eclipse.core.runtime.compatibility was not checked in
the debug launch configuration (although I had it configure itself). It
launches within Eclipse w/o the compatibility. However it needs it
standalone.

So far so good. I'll continue with part II

Kaj


Re: RCP tutorial Part 1 [message #251295 is a reply to message #251275] Thu, 10 June 2004 01:00 Go to previous messageGo to next message
Kaj Kandler is currently offline Kaj KandlerFriend
Messages: 33
Registered: July 2009
Member
Uups, may be I should have added the URl to the tutorial.

http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html

Kaj
---
http://www.conficio.com/ - publisher of Plan-B, the smart answer to
frequently asked questions

exquisitus wrote:

> Hi Ed,
> thanks for working on this tutorial. It's great to have some hands on
> introduction to building a simple RCP.
>
> I just thought I'll give you some feedback about the challenges I
> encountered, using it with 3.0RC1
>
> - The project wizard does default the jar file to part1.jar, not
> rcptutorial1.jar. Things would go smoother, if these things match.
> - I had quit some difficulties to follow your instructions. A bit more
> pointers where to look fo rthe different pieces to the puzzle might help.
> - I assume the file "Plugin.properties" is to be a new file. I created
> on, named "plugin.properties" (lower capital "p"). I guess that is what
> is needed.
> - The biggest struggle where the plug-in dependencies. It took me a
> while to figure the three out (and that I do have to add them to the
> manifest.mf):
> * org.eclipse.core.runtime
> * org.eclipse.swt
> * org.eclipse.ui
>
> Good for now. I figured out how to launch the window in the Debug mode
> within eclispe. However, I'm not sure what the effect of the -consoleLog
> should be. I'm not sure if I place it in the correctplace.
>
> ---
> Starting the stand alone program got me this
> ---
> C:\tmp\RCPtutorial1>echo on
>
> C:\tmp\RCPtutorial1>JAVA_HOME=C:\j2sdk1.4.2
> 'JAVA_HOME' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\tmp\RCPtutorial1>setlocal
>
> C:\tmp\RCPtutorial1>cd C:\tmp\RCPtutorial1\
>
> C:\tmp\RCPtutorial1>rem Check configuration\*\*.log for errors
>
> C:\tmp\RCPtutorial1>del configuration\*.log
> The system cannot find the file specified.
>
> C:\tmp\RCPtutorial1>java -cp startup.jar org.eclipse.core.launcher.Main
> -application org.eclipse.ui.tutorials.rcp.part1.
> RcpApplication -consoleLog || pause
> !SESSION Jun 09, 2004 19:27:50.840
> ---------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_04
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -application
> org.eclipse.ui.tutorials.rcp.part1.RcpApplication
> !ENTRY org.eclipse.osgi Jun 09, 2004 19:27:50.850
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: Application
> "org.eclipse.ui.tutorials.rcp.part1.RcpApplication" could not be found
> in the re
> gistry. The applications available are: <NONE>.
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:324)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:128)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> at org.eclipse.core.launcher.Main.run(Main.java:638)
> at org.eclipse.core.launcher.Main.main(Main.java:622)
> !ENTRY org.eclipse.osgi Jun 09, 2004 19:27:50.860
> !MESSAGE Bundle
> update@/c:/tmp/RCPtutorial1/plugins/org.eclipse.ui.tutorials .rcp.part1_1.0.0/
> [3] was not resolved.
> !SUBENTRY 1 org.eclipse.osgi Jun 09, 2004 19:27:50.860
> !MESSAGE Missing required bundle
> org.eclipse.core.runtime.compatibility_null,null.
> ---
> Reason, the org.eclipse.core.runtime.compatibility was not checked in
> the debug launch configuration (although I had it configure itself). It
> launches within Eclipse w/o the compatibility. However it needs it
> standalone.
>
> So far so good. I'll continue with part II
>
> Kaj


Re: RCP tutorial Part 1 [message #251529 is a reply to message #251275] Thu, 10 June 2004 16:40 Go to previous messageGo to next message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
I am working thru this tutorial. When I go to add the application and
perspecitive extensions, the PDE does use the their schemas (in the form
view of the plugin.xml). I can select the extension (in the left hand
side of the Extension form) and and goto the declaration. The schema is
definatly defined. If I open the ui plugin.xml the schema is clearly set.

Why could it be that the PDE does not use the schema when creating new
extensions?
Re: RCP tutorial Part 1 [message #252560 is a reply to message #251295] Tue, 15 June 2004 01:34 Go to previous message
Eclipse UserFriend
Originally posted by: ed.burnette.REMOVE.THIS.sas.com

Thanks for the corrections and feedback. I have updated part 1 as shown
below.


"exquisitus" <KajKandler@Conficio.com> wrote in message
news:ca8b9p$nm6$1@eclipse.org...
>
http://dev.eclipse.org/viewcvs/index.cgi/%7echeckout%7e/org. eclipse.ui.tutorials.rcp.part1/html/tutorial1.html
>
> > - The project wizard does default the jar file to part1.jar, not
> > rcptutorial1.jar. Things would go smoother, if these things match.

Corrected.

> > - I had quit some difficulties to follow your instructions. A bit more
> > pointers where to look fo rthe different pieces to the puzzle might
help.

If you find some things that are not unclear and can think of better
wording, post a patch/correction or just point out what's needed.

> > - I assume the file "Plugin.properties" is to be a new file. I created
> > on, named "plugin.properties" (lower capital "p"). I guess that is what
> > is needed.

Correct. I've made all those listing filenames lower case to be more clear.

> > - The biggest struggle where the plug-in dependencies. It took me a
> > while to figure the three out (and that I do have to add them to the
> > manifest.mf):
> > * org.eclipse.core.runtime
> > * org.eclipse.swt
> > * org.eclipse.ui

I think you ran into trouble trying to use MANIFEST.MF. I added a couple
paragraphs explaining why this file isn't necessary for the simple example
and giving a pointer for more info about it. You either have to fully use
the compatibility layer, or fully not use it. You've inadvertently gotten
into a half-way state :). See below...

> > Good for now. I figured out how to launch the window in the Debug mode
> > within eclispe. However, I'm not sure what the effect of the -consoleLog
> > should be. I'm not sure if I place it in the correctplace.

I corrected the debug launching script. The one in CVS was right but the one
in the html file was still and old one. Thanks for catching that.

> > !MESSAGE Bundle
> >
update@/c:/tmp/RCPtutorial1/plugins/org.eclipse.ui.tutorials .rcp.part1_1.0.0
/
> > [3] was not resolved.
> > !SUBENTRY 1 org.eclipse.osgi Jun 09, 2004 19:27:50.860
> > !MESSAGE Missing required bundle
> > org.eclipse.core.runtime.compatibility_null,null.

If you are using the compatibility layer then you DO need
org.eclipse.core.runtime.compatibility and you DON'T want MANIFEST.MF. If
you are NOT using the compatibility layer you DON'T need
org.eclipse.core.runtime.compatability, you DO need MANIFEST.MF, and you DO
need some other plug-ins like org.eclipse.core.runtime as you discovered.

Hopefully the updated tutorial part1 will make that more clear.

It's been difficult to try and keep up with all the milestone releases and
changes in my spare time so any more help, reviews, and patches are
appreciated.

--
Ed Burnette, co-author, Eclipse in Action
www.eclipsepowered.org
Previous Topic:X-window Numpad keys dead (KDE)
Next Topic:presentation.r21 ?
Goto Forum:
  


Current Time: Mon Dec 22 19:42:12 GMT 2014

Powered by FUDForum. Page generated in 0.01850 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software