Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Changed Perspective not showing
Changed Perspective not showing [message #663168] Mon, 04 April 2011 04:17 Go to next message
Eclipse UserFriend
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 05:09 Go to previous messageGo to next message
Eclipse UserFriend
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 05:49 Go to previous messageGo to next message
Eclipse UserFriend
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 12:27 Go to previous message
Eclipse UserFriend
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 12:27] by Moderator

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


Current Time: Thu Jul 03 02:05:10 EDT 2025

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

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

Back to the top