Changed Perspective not showing [message #663168] |
Mon, 04 April 2011 08:17 |
akoeck 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 #663333 is a reply to message #663198] |
Mon, 04 April 2011 16:27 |
|
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 screenlayout.createFolder("left2", IPageLayout.LEFT,0.25f, editorArea);
Regards,
Prasad
http://marketplace.eclipse.org/user/9964/listings
[Updated on: Mon, 04 April 2011 16:27] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03432 seconds