Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Page closing issue
Page closing issue [message #1401979] Wed, 16 July 2014 10:32 Go to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
Hi,

I have an application which has a table node page to the left and an associated table page to the right.

The problem is that when a user hits the right hand close window button, the window closes and can never be re-opened without restarting the application.

This applies to all nodes on the left hand side, double clicking any of these nodes no longer opens the table page on the right.

I have attached an image of the app for clrification.

Regards

  • Attachment: issue.png
    (Size: 22.20KB, Downloaded 28 times)
Re: Page closing issue [message #1402048 is a reply to message #1401979] Wed, 16 July 2014 12:36 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 937
Registered: October 2011
Senior Member
What scout version are you using?

From the screenshot I can see that you have SWT.
What is your Eclipse Runtime Platform (3.8 or 4.x)? [defined in your Target Platform]

.
Re: Page closing issue [message #1402188 is a reply to message #1401979] Wed, 16 July 2014 17:00 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 937
Registered: October 2011
Senior Member
I could reproduce it with Eclipse Scout Luna and a 3.8 target platform.

I am not sure to know what the solution is (or at least a workaround).
I have noticed the empty AbstractScoutView.setCloseEnabledFromScout(boolean).
This is not a good sign: somehow implementation is missing.

I think you should open a Bug.

.
Re: Page closing issue [message #1402665 is a reply to message #1401979] Thu, 17 July 2014 10:07 Go to previous messageGo to next message
Andreas Hoegger is currently offline Andreas HoeggerFriend
Messages: 178
Registered: February 2010
Senior Member
Try to add the following code block at the end of the Perspective.createInitialLayout(IPageLayout) method.

IViewLayout centerViewLayout = layout.getViewLayout(CenterView.class.getName());
if (centerViewLayout != null) {
  centerViewLayout.setCloseable(false);
  centerViewLayout.setMoveable(false);
}


Hope that helps...
/andreas
Re: Page closing issue [message #1403550 is a reply to message #1402665] Thu, 24 July 2014 11:11 Go to previous message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
Hi,

Thanks I'll give it a try .....
Previous Topic:Setting Ctrl-+ as keystroke on a table
Next Topic:Deploying RAP product target
Goto Forum:
  


Current Time: Sat Apr 18 07:27:20 GMT 2015

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

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