Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Project Explorer in RAP
Project Explorer in RAP [message #825008] Tue, 20 March 2012 10:50 Go to next message
Bernhard Schäfer is currently offline Bernhard SchäferFriend
Messages: 5
Registered: March 2012
Junior Member
Hello,

my question is if in general the Project Explorer is supported in RAP. For example the outline view works perfectly for me, but when I tried the the following code I receive this Error on startup:
"View descriptor not found: org.eclipse.ui.navigator.ProjectExplorer"

public void createInitialLayout(IPageLayout layout) {
	layout.setEditorAreaVisible(true);
	layout.addPerspectiveShortcut(ID_PERSPECTIVE);
			
	IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float)0.1, layout.getEditorArea());
	left.addView(IPageLayout.ID_PROJECT_EXPLORER);
			
	IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float)0.70, layout.getEditorArea());
	right.addView(IPageLayout.ID_OUTLINE);


I tried to add the navigator plugin to the target platform, but this bundle requires org.eclipse.ui which requires jface and so on.

I am happy for any help here.

Thanks in advance.
Bernhard
Re: Project Explorer in RAP [message #825019 is a reply to message #825008] Tue, 20 March 2012 11:05 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Bernhard,
there is a RAP port of CNF in the incubator. See this bug for more details:
288761: CNF on RAP
https://bugs.eclipse.org/bugs/show_bug.cgi?id=288761
HTH,
Ivan

On 3/20/2012 12:50 PM, Bernhard Schäfer wrote:
> Hello,
>
> my question is if in general the Project Explorer is supported in RAP.
> For example the outline view works perfectly for me, but when I tried
> the the following code I receive this Error on startup:
> "View descriptor not found: org.eclipse.ui.navigator.ProjectExplorer"
>
>
> public void createInitialLayout(IPageLayout layout) {
> layout.setEditorAreaVisible(true);
> layout.addPerspectiveShortcut(ID_PERSPECTIVE);
>
> IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
> (float)0.1, layout.getEditorArea());
> left.addView(IPageLayout.ID_PROJECT_EXPLORER);
>
> IFolderLayout right = layout.createFolder("right",
> IPageLayout.RIGHT, (float)0.70, layout.getEditorArea());
> right.addView(IPageLayout.ID_OUTLINE);
>
>
> I tried to add the navigator plugin to the target platform, but this
> bundle requires org.eclipse.ui which requires jface and so on.
>
> I am happy for any help here.
>
> Thanks in advance.
> Bernhard

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Project Explorer in RAP [message #825438 is a reply to message #825019] Tue, 20 March 2012 21:03 Go to previous messageGo to next message
Bernhard Schäfer is currently offline Bernhard SchäferFriend
Messages: 5
Registered: March 2012
Junior Member
Hello Ivan,
thanks a lot for the fast reply.

I imported the navigator plugin from cvs and also had a look at the usage example provided at the bug page. In the usage example they extend CommonViewer and set up their own navigator with a content provider and so on.

Is this what you are pointing to? I just want to clarify this before I put a lot of effort in coding my own project explorer and afterwards I get to know that there was an easier way.

Regards
Bernhard
Re: Project Explorer in RAP [message #825441 is a reply to message #825019] Tue, 20 March 2012 21:03 Go to previous messageGo to next message
Bernhard Schäfer is currently offline Bernhard SchäferFriend
Messages: 5
Registered: March 2012
Junior Member
Hello Ivan,
thanks a lot for the fast reply.

I imported the navigator plugin from cvs and also had a look at the usage example provided at the bug page. In the usage example they extend CommonViewer and set up their own navigator with a content provider and so on.

Is this what you are pointing to? I just want to clarify this before I put a lot of effort in coding my own project explorer and afterwards I get to know that there was an easier way.

Regards
Bernhard
Re: Project Explorer in RAP [message #825453 is a reply to message #825441] Tue, 20 March 2012 21:17 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Bernhard,
sorry, but I'm not familiar with CNF and I can't help you much.
Best,
Ivan

On 3/20/2012 11:03 PM, Bernhard Schäfer wrote:
> Hello Ivan,
> thanks a lot for the fast reply.
>
> I imported the navigator plugin from cvs and also had a look at the
> usage example provided at the bug page. In the usage example they
> extend CommonViewer and set up their own navigator with a content
> provider and so on.
>
> Is this what you are pointing to? I just want to clarify this before I
> put a lot of effort in coding my own project explorer and afterwards I
> get to know that there was an easier way.
>
> Regards
> Bernhard

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Project Explorer in RAP [message #825800 is a reply to message #825441] Wed, 21 March 2012 09:13 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Bernhard,

the Project Explorer (quite naturally) has a dependency on
core.resources. The single-workspace-concept of the resources plug-in
doesn't make much sense in RAP. In most cases you'd probably want to
have one workspace per use. Please search this forum for further
discussions on this topic.
This is why the Project Explorer isn't available in RAP. Where Ivan
pointed you to is the Common Navigator Framework (on which the Project
Explorer is based).

HTH
Rüdiger

On 20.03.2012 22:03, Bernhard Schäfer wrote:
> Hello Ivan,
> thanks a lot for the fast reply.
>
> I imported the navigator plugin from cvs and also had a look at the
> usage example provided at the bug page. In the usage example they extend
> CommonViewer and set up their own navigator with a content provider and
> so on.
>
> Is this what you are pointing to? I just want to clarify this before I
> put a lot of effort in coding my own project explorer and afterwards I
> get to know that there was an easier way.
>
> Regards
> Bernhard
--
Rüdiger Herrmann
http://codeaffine.com
Re: Project Explorer in RAP [message #826181 is a reply to message #825800] Wed, 21 March 2012 19:19 Go to previous message
Bernhard Schäfer is currently offline Bernhard SchäferFriend
Messages: 5
Registered: March 2012
Junior Member
Okay that's good to know. Thanks for the clarification!
Bernhard
Previous Topic:In Rap environment, about MessageBox
Next Topic:Clean generated files in rwt-resources folder
Goto Forum:
  


Current Time: Fri Apr 19 09:35:48 GMT 2024

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

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

Back to the top