I created Plugin Rcp project, with only one, standalone view.
When I run, I see minimize, maximize buttons and a tab with caption "View"
As you can see on the picture.
I want to remove all of that.
In Perspective class, I set setFixed(true)
but it's not helping.
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.setFixed(true);
}
}
I also tried suggested here: enter link description here
eg
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(false);
layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 1.0f, editorArea);
}
}
When I run I don't see the view,only the shell.
UPDATE
If I change the ration parameter, to anything but 1.0f eg
layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 0.5f, editorArea);
I see the View but Tab and the buttons also there.
I had the same issue. What I noticed is that I had defined a perspectiveExtension with my View inside my application's plugin.xml (before I tried to make the View standalone).
Removing the extension made the second version work.
This may not be the correct answer, but maybe it'll help someone who had the same issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.