Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:33
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 7
Registered: December 2011
Junior Member
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 20:34]

Report message to a 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: Fri Dec 19 10:21:02 GMT 2014

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

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