Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Avoid/allow user to move view
Avoid/allow user to move view [message #1133370] Fri, 11 October 2013 16:33
Eclipse UserFriend
Hi,

I use a place holder to put views. My views are closeable and can't detached except someone but even if I see the difference in my code, I don't understand why.
Below an extract of the code :
public void createInitialLayout(IPageLayout layout) {

layout.setEditorAreaVisible(false);
layout.addStandaloneView(UserView.ID,true, IPageLayout.LEFT, 0.3f, layout.getEditorArea());
layout.getViewLayout(UserView.ID).setCloseable(false);
layout.getViewLayout(UserView.ID).setMoveable(false);
layout.setFixed(true);

IPlaceholderFolderLayout folder=layout.createPlaceholderFolder(GasPerspective.PLACEHOLDERFOLDER,IPageLayout.RIGHT, 0.7f, layout.getEditorArea());
IViewLayout viewLayout=layout.getViewLayout(GasPerspective.PLACEHOLDERFOLDER);
viewLayout.setCloseable(false);
viewLayout.setMoveable(false);

// This view cannot be detached or move
folder.addPlaceholder(DefaultView.ID+":ELEC");
viewLayout=layout.getViewLayout(DefaultView.ID+":ELEC");
viewLayout.setCloseable(true);


// This view can be detached or move
folder.addPlaceholder(FrenchView.ID+":ELEC*");
viewLayout=layout.getViewLayout(FrenchView.ID+":ELEC*");
viewLayout.setCloseable(true);
}

The problem seems to be caused by the wildcard.
Any idea about this behavior ?

I have added viewLayout.setMoveable(false) with no effect

Thanks

Jean-Pascal

[Updated on: Fri, 11 October 2013 16:34] by Moderator

Previous Topic:Opening external application in eclipse RCP project
Next Topic:Icon in right bottom, right to job progress bar
Goto Forum:
  


Current Time: Thu Mar 27 15:45:43 EDT 2025

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

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

Back to the top