Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP 3.2 Target and jface.text ??
RCP 3.2 Target and jface.text ?? [message #449648] Wed, 17 May 2006 11:07 Go to next message
Eclipse UserFriend
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 #449654 is a reply to message #449648] Wed, 17 May 2006 11:22 Go to previous messageGo to next message
Eclipse UserFriend
Antonio Gurisatti a écrit :
> 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!!
Use this plugin org.eclipse.text.
--
Olivier
Re: RCP 3.2 Target and jface.text ?? [message #449661 is a reply to message #449654] Wed, 17 May 2006 12:15 Go to previous messageGo to next message
Eclipse UserFriend
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 #449668 is a reply to message #449661] Wed, 17 May 2006 12:58 Go to previous messageGo to next message
Eclipse UserFriend
Antonio Gurisatti wrote:

> 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.

Now you've added extra plugins (like org.eclipse.text) to your plugin
dependencies. So you have to add them to your launch configs (it sounds
like you have this, or they wouldn't run) and to whatever controls your
RCP export. ex: if it's a product with plugins, you need to add it to
the plugin list, if it's a product with features, you need to make sure
one of the exported features names the plugin, etc.

Later,
PW
Re: RCP 3.2 Target and jface.text ?? [message #449671 is a reply to message #449668] Wed, 17 May 2006 13:27 Go to previous messageGo to next message
Eclipse UserFriend
Paul,

It might sound odd to you but I didn't add any of this plugins to the Dependencies - Required Plug ins and it works correctly from within eclipse. Perhaps its because when you run it whithin eclipse they are in some kind of default type.

They are surely selected in the run configuration plug-ins tab (or it wouldn't run).

So, if I understand what you are saying, I must include those plugins in Dependencies - Requiered Plugins?

The only ones I added to the Dependencies - Requiered Plugins are ui.console and jface.text.

Do you know why is that in RCP 3.1.2 I didn't have to go through all this fuss?

Thanks a lot for your help.

AG
Re: RCP 3.2 Target and jface.text ?? [message #449672 is a reply to message #449671] Wed, 17 May 2006 13:39 Go to previous message
Eclipse UserFriend
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
Previous Topic:Loading Plugins dynamically with RCP app
Next Topic:Branding the Help Index Page
Goto Forum:
  


Current Time: Sun Aug 31 06:05:01 EDT 2025

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

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

Back to the top