Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can't show the project explorer properly in RCP
Can't show the project explorer properly in RCP [message #115038] Wed, 28 March 2007 08:49 Go to next message
Eclipse UserFriend
Helow Everyone,

I developed an application using GMF, the plugins work well as projects
in Eclipse workspace(when I run them using eclipse ide). However, if I
want to make a RCP application, and run all the plugins using my defined
application, the project explorer shows nothing. I had configured the
perspective, and added the "org.eclipse.ui.navigator.ProjectExplorer"
view, but it shows nothing when I run my application.
another problem is that the eclipse navigator can't show some images.

What should I do?
Re: Can't show the project explorer properly in RCP [message #115243 is a reply to message #115038] Thu, 29 March 2007 06:22 Go to previous messageGo to next message
Eclipse UserFriend
Hello nemo,

> in Eclipse workspace(when I run them using eclipse ide). However, if I
> want to make a RCP application, and run all the plugins using my
> defined application, the project explorer shows nothing. I had configured
Are you re-creating .gmfgen model from .gmfmap with setting "Generate RCP
application" checkbox?

Navigator will not be generated in RCP mode because we are providing diagram/model
file contents below the corresponding file node in ProjectExplorer. Pure
RCP application has no "resources" plugins available (in particular, "org.eclipse.ui.navigator.resources").
So, GMF can not generate Navigator for RCP application because:
1. This is useless – content will be invisible because ProjectExplorer in
RCP application has no “files” – parent nodes for diagram/domain model contents
2. We should not introduce dependency from .resources plugin into the generated
code for RCP, but current state of Navigator has these dependencies.
As a workaround you can generate navigator for non-RCP mode, take the generated
code, modify it in accordance (get rid of resources dependencies + provide
additional structure into ProjectExplorer) and put into your application.

> view, but it shows nothing when I run my application. another problem
Is it just empty? Do you have org.eclipse.ui.navigator.resources plugin in
your RCP application plugins set?

> is that the eclipse navigator can't show some images.
Looks like a question to Eclipse navigator subsystem.

-----------------
Alex Shatalin
Re: Can't show the project explorer properly in RCP [message #115686 is a reply to message #115243] Fri, 30 March 2007 08:59 Go to previous message
Eclipse UserFriend
Thanks, That's usful to me:)

Alex Shatalin 写道:
> Hello nemo,
>
>> in Eclipse workspace(when I run them using eclipse ide). However, if I
>> want to make a RCP application, and run all the plugins using my
>> defined application, the project explorer shows nothing. I had configured
> Are you re-creating .gmfgen model from .gmfmap with setting "Generate
> RCP application" checkbox?
> Navigator will not be generated in RCP mode because we are providing
> diagram/model file contents below the corresponding file node in
> ProjectExplorer. Pure RCP application has no "resources" plugins
> available (in particular, "org.eclipse.ui.navigator.resources"). So, GMF
> can not generate Navigator for RCP application because:
> 1. This is useless – content will be invisible because
> ProjectExplorer in RCP application has no “files” – parent nodes for
> diagram/domain model contents
> 2. We should not introduce dependency from .resources plugin into the
> generated code for RCP, but current state of Navigator has these
> dependencies.
> As a workaround you can generate navigator for non-RCP mode, take the
> generated code, modify it in accordance (get rid of resources
> dependencies + provide additional structure into ProjectExplorer) and
> put into your application.
>
>> view, but it shows nothing when I run my application. another problem
> Is it just empty? Do you have org.eclipse.ui.navigator.resources plugin
> in your RCP application plugins set?
>
>> is that the eclipse navigator can't show some images.
> Looks like a question to Eclipse navigator subsystem.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:SeparatorImpl
Next Topic:Generated diagram editor's Undo-Redo history
Goto Forum:
  


Current Time: Fri Apr 25 20:09:25 EDT 2025

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

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

Back to the top