Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF FORMS] Apply visible issue
[EMF FORMS] Apply visible issue [message #1409315] Sun, 17 August 2014 19:50 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 233
Registered: July 2009
Senior Member
Hi,

Just a small note that we had to add a layout call to make sure that setVisible in AbstractSWTRender would actually show up in the view.

Here:
protected void applyVisible() {
	final boolean visible = getVElement().isVisible();
	for (final SWTGridCell gridCell : controls.keySet()) {
		final Object layoutData = controls.get(gridCell).getLayoutData();
		if (GridData.class.isInstance(layoutData)) {
			final GridData gridData = (GridData) layoutData;
			if (gridData != null) {
				gridData.exclude = !visible;
			}
		}
		controls.get(gridCell).setVisible(visible);
		controls.get(gridCell).getParent().layout(); // added AP to force layout otherwise nothing happens
	}
}
Re: [EMF FORMS] Apply visible issue [message #1409496 is a reply to message #1409315] Mon, 18 August 2014 08:58 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

could you kindly report that as a Bug?

Best Regards

Jonas

Am 17.08.2014 21:50, schrieb Alain Picard:
> Hi,
>
> Just a small note that we had to add a layout call to make sure that
> setVisible in AbstractSWTRender would actually show up in the view.
>
> Here:
>
> protected void applyVisible() {
> final boolean visible = getVElement().isVisible();
> for (final SWTGridCell gridCell : controls.keySet()) {
> final Object layoutData = controls.get(gridCell).getLayoutData();
> if (GridData.class.isInstance(layoutData)) {
> final GridData gridData = (GridData) layoutData;
> if (gridData != null) {
> gridData.exclude = !visible;
> }
> }
> controls.get(gridCell).setVisible(visible);
> controls.get(gridCell).getParent().layout(); // added AP to
> force layout otherwise nothing happens
> }
> }
>
Previous Topic:[EMF FORMS] Date control
Next Topic:[EMF FORMS] VFeaturePathModelReference resolve issue
Goto Forum:
  


Current Time: Wed Apr 01 21:56:18 GMT 2020

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

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

Back to the top