How to add Properties View to own RCP application [message #435394] |
Wed, 17 August 2005 14:18 |
Eclipse User |
|
|
|
Originally posted by: cward.go-integral.com
I am trying to add the Properties View to my own RCP application. In my
Perspective.createInitialLayout(IPageLayout layout) method, I have this
code:
try {
layout.addStandaloneView(IPageLayout.ID_PROP_SHEET, false,
IPageLayout.BOTTOM, 0.25f, editorArea);
} catch (Exception e) {
System.out.println( e.toString() );
}
This results in the error:
Exception in org.eclipse.ui.internal.PageLayout.addView:
org.eclipse.ui.PartInitException: Could not create view:
org.eclipse.ui.views.PropertySheet
Reason:
Exception in org.eclipse.ui.internal.PageLayout.addView:
org.eclipse.ui.PartInitException: Could not create view:
org.eclipse.ui.views.PropertySheet
org.eclipse.ui.internal.misc.AssertionFailedException: assertion failed;
Is there somehting else that I am supposed to do, initialize, or include
in my app to get this to work?
Chris
|
|
|
|
Re: How to add Properties View to own RCP application [message #435400 is a reply to message #435398] |
Wed, 17 August 2005 14:52 |
Eclipse User |
|
|
|
Originally posted by: cward.go-integral.com
Neil Bartlett wrote:
> Add the "org.eclipse.ui.views" plugin to your application.
>
That sounds logical, but I can't seem to find where I am supposed to add
the jar to my plugin. If I put it in the dependancies page, as a
required plugin, it places "org.eclipse.ui.views" in the manifest as a
required bundle, but doesn't appear to find it when I run the application.
This is the error:
!SESSION Wed Aug 17 09:48:51 CDT 2005
------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2005-08-17 09:48:51.729
!MESSAGE -showsplash
!STACK
java.io.IOException: java.io.IOException: /usr/lib/eclipse-3.1/eclipse:
not found
at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:491)
at java.lang.Runtime.exec(Runtime.java:457)
at org.eclipse.core.launcher.Main.runCommand(Main.java:1565)
at org.eclipse.core.launcher.Main.handleSplash(Main.java:1541)
at org.eclipse.core.launcher.Main.basicRun(Main.java:276)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
!SESSION 2005-08-17 09:48:51.655
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.gforge.gui.product -pdelaunch
Command-line arguments: -product org.gforge.gui.product -data
/home/cward/runtime-EclipseApplication(6) -dev
file:/home/cward/workspace/.metadata/.plugins/org.eclipse.pd e.core/Eclipse
Application (6)/dev.properties -pdelaunch -os linux -ws gtk -arch x86
!ENTRY org.eclipse.osgi 2005-08-17 09:48:52.581
!MESSAGE Bundle
initial@reference:file:../../../home/cward/workspace/org.gforge.gui/
[24] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2005-08-17 09:48:52.581
!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.
!ENTRY org.eclipse.core.runtime 2005-08-17 09:48:52.590
!MESSAGE Product org.gforge.gui.product could not be found.
!ENTRY org.eclipse.osgi 2005-08-17 09:48:52.590
!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:204)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
!ENTRY org.eclipse.osgi 2005-08-17 09:48:52.591
!MESSAGE Bundle
initial@reference:file:../../../home/cward/workspace/org.gforge.gui/
[24] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2005-08-17 09:48:52.591
!MESSAGE Missing required bundle org.eclipse.ui.views_0.0.0.
|
|
|
|
Re: How to add Properties View to own RCP application [message #435416 is a reply to message #435415] |
Wed, 17 August 2005 18:04 |
Eclipse User |
|
|
|
Originally posted by: cward.go-integral.com
James Ervin wrote:
> Remember it is one thing to make it required and another to ensure that it is actually deployed. How are you specifying which plugins to deploy and load in your RCP application? For us it is an admittedly annoying step of adding it to the config.ini. So are you adding the plugin in the config.ini or added to the feature as a required plugin?
>
> Good Luck,
> James E. Ervin
I am not even at the deploy stage yet. I am developing this in eclipse,
and just trying to get eclipse to launch this for testing.
Chris
|
|
|
|
Re: How to add Properties View to own RCP application [message #435424 is a reply to message #435417] |
Wed, 17 August 2005 20:30 |
Eclipse User |
|
|
|
Originally posted by: cward.go-integral.com
James Ervin wrote:
> Ok so when you are defining your launch configuration, is the org.eclipse.ui.views in the list of plugins that are to be exported?
>
> Good Luck,
> James E. Ervin
What do you mean by list to be exported?
In the plugin editor, there is a dependencies page, but when I put the
views plugin in the list of required plugins, I get an error about not
being able to find the plugin when I try to run mine. This does appear
to put the view plugin into the Require-Bundle section of the Manifest
file. It doesn't appear to be the right place though.
Maybe I have the completely wrong place. What/where is the launch
configuration?
Chris
|
|
|
|
Re: How to add Properties View to own RCP application [message #435585 is a reply to message #435428] |
Thu, 18 August 2005 14:08 |
Eclipse User |
|
|
|
Originally posted by: cward.go-integral.com
James Ervin wrote:
> Are you running your application from the runtime workspace in Eclipse or are you running the application seperately? The issue is that the org.eclipse.ui.views plugin needs to be required in your manifest and it needs to be in the plugins directory of your application when you run it. Capisce? Good luck, these issues are tricky... I know
>
> James E. Ervin
Thanks for your help attempts James. I finally have something not
crashing. I was trying to just run my RCP program as a plugin from
within eclipse. I added a product to it, and it now run from that page
just fine after I added the view jar to the required plugins.
Thanks.
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.29406 seconds