Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Changed Perspective not showing
Changed Perspective not showing [message #663168] Mon, 04 April 2011 08:17 Go to next message
akoeck is currently offline akoeckFriend
Messages: 62
Registered: December 2010
Member
Hi there, I made some changes to my perspective. But these changes are not showing when I run my plugin.

This is the code for the perspective:
/**
 * 
 */
package xxx.xxx.xxx.perspective;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import TableView;

public class PerspectiveFactory implements IPerspectiveFactory {

	public final static String ID = "Perspective_ID";
	
	/* (non-Javadoc)
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
	 */
	@Override
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		
		layout.setEditorAreaVisible(true);
		
		IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
				0.25f, editorArea);
		IFolderLayout bottom_left = layout.createFolder("bottomright",
				IPageLayout.BOTTOM, 0.25f, "left");
		//IFolderLayout bottom = layout.createFolder("bottom",
		//		IPageLayout.BOTTOM, 0.5f, editorArea);
		
		left.addView("org.eclipse.ui.navigator.ProjectExplorer");
		bottom_left.addView("org.eclipse.datatools.connectivity." +
				"DataSourceExplorerNavigator");
		//bottom.addView(TableView.ID);
	}

}

As you can see the bottom is inside a comment, But somehow the folder is showing. Also when other parts are in a comment they' re showing. The main problem is when I want the TableView to be shown it is not showing.

This is whats inside the plugin.xml
   <extension
         point="org.eclipse.ui.perspectives">
      <perspective
            class="xxx.xxx.xxx.PerspectiveFactory"
            id="xxx.xxx.xxx..DefaultPerspective"
            name="SQL Workflow Perspective">
      </perspective>
   </extension>


I also can confirm that the correct perspective is selected in the application.
Re: Changed Perspective not showing [message #663177 is a reply to message #663168] Mon, 04 April 2011 09:09 Go to previous messageGo to next message
Devi Vara Prasad Bandaru is currently offline Devi Vara Prasad BandaruFriend
Messages: 100
Registered: March 2010
Location: Hyderabad
Senior Member

Did you reset the perspective after making the changes?

Re: Changed Perspective not showing [message #663198 is a reply to message #663177] Mon, 04 April 2011 09:49 Go to previous messageGo to next message
akoeck is currently offline akoeckFriend
Messages: 62
Registered: December 2010
Member
Prasad wrote on Mon, 04 April 2011 05:09
Did you reset the perspective after making the changes?

Oh thanks that's it. I didn't know that I have to reset after I made changes to it.

But this leads my to two other questions.
1.) How could I set the vertical size of a view?
2.) How could I delete the gray area between the editor and the TableView?
http://www.abload.de/img/picturex7gl.jpg

Re: Changed Perspective not showing [message #663333 is a reply to message #663198] Mon, 04 April 2011 16:27 Go to previous message
Devi Vara Prasad Bandaru is currently offline Devi Vara Prasad BandaruFriend
Messages: 100
Registered: March 2010
Location: Hyderabad
Senior Member

No Real Name wrote on Mon, 04 April 2011 15:19

But this leads my to two other questions.
1.) How could I set the vertical size of a view?
2.) How could I delete the gray area between the editor and the TableView?



1. Relationship attribute determines the size of the folder in the layout. (Ex: 0.5f for bottom folder in your case) . Give a smaller value to increase the size of the folder.

2. I guess the gray area might be because of an emtpy folder.
For example doing something like this will create a gray area on left part of your screen
layout.createFolder("left2", IPageLayout.LEFT,0.25f, editorArea);



[Updated on: Mon, 04 April 2011 16:27]

Report message to a moderator

Previous Topic:Plugin not loading from dropins directory
Next Topic:PDE Build with AspectJ support
Goto Forum:
  


Current Time: Mon Aug 03 09:54:57 GMT 2020

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

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

Back to the top