RCP 3.2 Target and jface.text ?? [message #449648] |
Wed, 17 May 2006 11:07  |
Eclipse User |
|
|
|
In order to use jface.text options in my application and having RCP 3.2 as Target Platform I copied org.eclipse.jface.text to the Target Platform.
All references to jface.text compiled with this exception:
import org.eclipse.jface.text.IDocument;
The compiler complains that it can't be found.
If I use the eclipse sdk as Target Platform the error dissapears.
Well, I examined the contents of the plugin and, to my surprise, there is no IDocument interface in it. So, how can it be imported??. The eclipse ide uses some kind of a trick??
Saying so, I'd like to know what am I missing in my target platform? I really can't fin out and this is one (and not the only one) of the problems I encountered in using jface.text in the RCP Target 3.2.
It is really driving me nuts!!
Thanks for any help.
|
|
|
|
Re: RCP 3.2 Target and jface.text ?? [message #449661 is a reply to message #449654] |
Wed, 17 May 2006 12:15   |
Eclipse User |
|
|
|
Olivier,
Thanks a lot. This solved my first problem (I had to include three or four more). Now the applications compiles and runs correctly from within eclipse.
The second problem that is driving me nuts is that if I export my application, using the Export > Eclipse Product option and run it I get a few errors:
!SESSION 2006-05-17 11:11:20.875 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_CO
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.runtime 2006-05-17 11:11:22.109
!MESSAGE Product com.maguri.derbypad.derbypad could not be found.
!ENTRY org.eclipse.osgi 4 0 2006-05-17 11:11:22.125
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:56)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
!ENTRY org.eclipse.osgi 2 0 2006-05-17 11:11:22.140
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2006-05-17 11:11:22.140
!MESSAGE Bundle initial@reference :file:plugins/org.eclipse.ui.console_3.1.100.v20060504c.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.ui.console 2 0 2006-05-17 11:11:22.140
!MESSAGE Missing required bundle org.eclipse.core.variables_0.0.0.
!SUBENTRY 2 org.eclipse.ui.console 2 0 2006-05-17 11:11:22.140
!MESSAGE Missing required bundle org.eclipse.ui.workbench.texteditor_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2006-05-17 11:11:22.140
!MESSAGE Bundle initial@reference :file:plugins/org.eclipse.jface.text_3.2.0.v20060505-0010.ja r/ was not resolved.
!SUBENTRY 2 org.eclipse.jface.text 2 0 2006-05-17 11:11:22.140
!MESSAGE Missing required bundle org.eclipse.text_[3.2.0,4.0.0).
!ENTRY org.eclipse.osgi 2 0 2006-05-17 11:11:22.156
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2006-05-17 11:11:22.156
!MESSAGE Bundle initial@reference:file:plugins/com.maguri.derbypad_1.0.0.jar/ was not resolved.
!SUBENTRY 2 com.maguri.derbypad 2 0 2006-05-17 11:11:22.156
!MESSAGE Missing required bundle org.eclipse.ui.console_0.0.0.
!SUBENTRY 2 com.maguri.derbypad 2 0 2006-05-17 11:11:22.156
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2006-05-17 11:11:22.156
!MESSAGE Bundle initial@reference :file:plugins/org.eclipse.jface.text_3.2.0.v20060505-0010.ja r/ was not resolved.
!SUBENTRY 2 org.eclipse.jface.text 2 0 2006-05-17 11:11:22.156
!MESSAGE Missing required bundle org.eclipse.text_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2006-05-17 11:11:22.156
!MESSAGE Bundle initial@reference :file:plugins/org.eclipse.ui.console_3.1.100.v20060504c.jar/ [24] was not resolved.
!SUBENTRY 2 org.eclipse.ui.console 2 0 2006-05-17 11:11:22.156
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui.console 2 0 2006-05-17 11:11:22.156
!MESSAGE Missing required bundle org.eclipse.ui.workbench.texteditor_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui.console 2 0 2006-05-17 11:11:22.156
!MESSAGE Missing required bundle org.eclipse.core.variables_0.0.0.
Looking at the exported stuff I see that none of the included plugins (like org.eclipse.text) where exported. Looks like incomplete!
I get the same deplorable results using eclipse sdk as target platform.
So I suppose I have to do something else.
What could it be?
Thanks a lot for the help.
|
|
|
|
|
Re: RCP 3.2 Target and jface.text ?? [message #449672 is a reply to message #449671] |
Wed, 17 May 2006 13:39  |
Eclipse User |
|
|
|
Paul,
Thnaks a lot for your help.
I missunderstood your last reply. I had to include this new plugins to the product definition (.product) and not to the plugin.xml.
Now it works.
This RCP stuff is wonderfull but its quite complicated and often I get quite lost!
Thanks a lot again
|
|
|
Powered by
FUDForum. Page generated in 0.31759 seconds