Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Properties view (or other "standard" view) in pure eclipse e4 perspective
Properties view (or other "standard" view) in pure eclipse e4 perspective [message #1002431] Fri, 18 January 2013 15:08 Go to next message
Rui Domingues is currently offline Rui Domingues
Messages: 193
Registered: October 2010
Senior Member
I'm experiencing some problems to reproduce the behaviour I previously achieved with eclipse 3.x RCP.

How do I say in Application.e4xmi that my perspective should have navigator view on the left and eclipse properties on the bottom of an editor area.

For starters, I'm adding PartSashContainer, and a Part inside, however it requires us to define ClassURI, and I dont know it.


Previously I had something like this:
 String editorArea = layout.getEditorArea();
// Top left: Project Explorer view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.15f,
		    editorArea);
topLeft.addView(IPageLayout.ID_RES_NAV);

// Bottom left: Outline view and Property Sheet view
IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.80f,editorArea);
		 
		 bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
		 bottomLeft.addView("com.sinfic.agora.editors.markers.customMarker");
		 bottomLeft.addView(IPageLayout.ID_PROBLEM_VIEW);

		 layout.getViewLayout(IPageLayout.ID_PROP_SHEET).setMoveable(true);
		 layout.getViewLayout(IPageLayout.ID_PROBLEM_VIEW).setMoveable(true);
		 layout.getViewLayout(IPageLayout.ID_RES_NAV).setMoveable(true);

		 // Bottom right: Task List vie
		 layout.setFixed(false);


How should I do it in eclipse e4?

Thanks in advance.
Rui Domingues
Re: Properties view (or other "standard" view) in pure eclipse e4 perspective [message #1002553 is a reply to message #1002431] Fri, 18 January 2013 20:31 Go to previous messageGo to next message
Frank Benoit is currently offline Frank Benoit
Messages: 47
Registered: July 2009
Member
You can insert 3.x view with this:
http://dirksmetric.wordpress.com/2012/08/01/tutorial-eclipse-rcp-e4-with-3-x-views-like-project-explorer-properties-etc/

the initial perspective is done in the e4xmi

Re: Properties view (or other "standard" view) in pure eclipse e4 perspective [message #1002923 is a reply to message #1002553] Sat, 19 January 2013 21:38 Go to previous message
Rui Domingues is currently offline Rui Domingues
Messages: 193
Registered: October 2010
Senior Member
Thanks for replying. I've another question, will these views be supported in the future, when compatability layer doesn't exist.

There will be a way to reference properties, markers, project explorer, etc.
Will they be contributed by extension points as well?


I'm asking because I'm starting up a new project, with graphiti plugins and I contribute to properties view, and I'm wondering if I should to define a custom properties view on my own.

Can anyone advise me bearing in mind that the project is suposed to be supported in future eclipse releases.

Thanks in advance
Rui
Previous Topic:RCP: Cannot inject invisible parts
Next Topic:How to find MPart for currently open editor
Goto Forum:
  


Current Time: Fri Oct 24 12:15:15 GMT 2014

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

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