Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Use of Jface TextViewer in E4 app(Use of Jface TextViewer in E4 app)
Use of Jface TextViewer in E4 app [message #1721847] Mon, 01 February 2016 04:09 Go to next message
John Holliday is currently offline John HollidayFriend
Messages: 4
Registered: February 2016
Junior Member
I would like to incorporate a ConsoleView into my Eclipse E4 RCP application.

When I try to use the JFace TextViewer, I get the following error: (And that's after I add it to the plugin dependancies)

!ENTRY com.jsh.ghostworker.ui 2 0 2016-02-01 13:06:33.267
!MESSAGE Could not resolve module: com.jsh.ghostworker.ui [90]
Unresolved requirement: Require-Bundle: org.eclipse.jface.text; bundle-version="3.10.0"


!ENTRY org.eclipse.osgi 4 0 2016-02-01 13:06:33.267
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
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.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)


Any pointers would be welcome.
Re: Use of Jface TextViewer in E4 app [message #1721990 is a reply to message #1721847] Tue, 02 February 2016 07:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
you have not updated your launch configuration after adding the
dependency to your project.

Tom

On 01.02.16 16:42, John Holliday wrote:
> I would like to incorporate a ConsoleView into my Eclipse E4 RCP
> application.
> When I try to use the JFace TextViewer, I get the following error: (And
> that's after I add it to the plugin dependancies)
> !ENTRY com.jsh.ghostworker.ui 2 0 2016-02-01 13:06:33.267
> !MESSAGE Could not resolve module: com.jsh.ghostworker.ui [90]
> Unresolved requirement: Require-Bundle: org.eclipse.jface.text;
> bundle-version="3.10.0"
>
>
> !ENTRY org.eclipse.osgi 4 0 2016-02-01 13:06:33.267
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: No application id has been found.
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
>
> at
> org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
>
> 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.equinox.launcher.Main.invokeFramework(Main.java:669)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
>
>
> Any pointers would be welcome.
Re: Use of Jface TextViewer in E4 app [message #1722134 is a reply to message #1721990] Wed, 03 February 2016 00:47 Go to previous messageGo to next message
John Holliday is currently offline John HollidayFriend
Messages: 4
Registered: February 2016
Junior Member
Thanks for your reply Tom.

That's exactly what the problem was. It had me beat for a few days and it was driving me mad!

For those with similar problems, I had to go to

Run->Run Configurations... ->select my run (or launch) configuration->Plugin tag

and then check the box for the jface.text plugin.

I'm wondering though if the tooling shouldn't sort this out. For example, if I add the event broker to my application, I just add it to to the Required Plugins section in the Pugin definition. I don't need to add it to the launch configuration. Similarly, if I use my own jars, I simply edit the Runtime section in the plugin. Again no need to edit the launch configuration.
Re: Use of Jface TextViewer in E4 app [message #1722139 is a reply to message #1722134] Wed, 03 February 2016 02:23 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
[...]

> I'm wondering though if the tooling shouldn't sort this out. For

It's very hard to do that appropriately and even if correct I would turn
this feature off immediately.

> example, if I add the event broker to my application, I just add it to
> to the Required Plugins section in the Pugin definition. I don't need to
> add it to the launch configuration. Similarly, if I use my own jars, I
> simply edit the Runtime section in the plugin. Again no need to edit the
> launch configuration.

This is because everything needs the event broker hence the bundles are
already active in your launch config.

Tom
Previous Topic:Configure PartStack to be displayed minimized
Next Topic:Getting current KeyBinding in Handler's @Execute method
Goto Forum:
  


Current Time: Fri Apr 19 20:30:34 GMT 2024

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

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

Back to the top