diff options
author | Camille Letavernier | 2014-05-20 13:52:12 +0000 |
---|---|---|
committer | Camille Letavernier | 2014-05-20 13:52:12 +0000 |
commit | 6978c3b0d5d2c6167ea7894a4e46ecaef4df024a (patch) | |
tree | aa6a3b4cbc304c7d87d59e423dd9f9c49c09d314 /plugins/views | |
parent | 9e3d2ef771ab636ddb0ca02a72432d63b478c54e (diff) | |
download | org.eclipse.papyrus-6978c3b0d5d2c6167ea7894a4e46ecaef4df024a.tar.gz org.eclipse.papyrus-6978c3b0d5d2c6167ea7894a4e46ecaef4df024a.tar.xz org.eclipse.papyrus-6978c3b0d5d2c6167ea7894a4e46ecaef4df024a.zip |
411857: [Property View] dynamic section blinking!
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411857
- Set redraw to false during section display & refresh, to reduce
flickering
Diffstat (limited to 'plugins/views')
-rw-r--r-- | plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java index 7d7366f525e..f70516c3677 100644 --- a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java +++ b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java @@ -1,6 +1,6 @@ /*****************************************************************************
* Copyright (c) 2010 CEA LIST.
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -39,7 +39,7 @@ import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; * An Implementation of ISection for the TabbedPropertyView framework.
* The XWTSection uses an XWT File to display the SWT Controls, and
* a DataSource for DataBinding
- *
+ *
* @author Camille Letavernier
*/
public class XWTSection extends AbstractPropertySection implements IChangeListener {
@@ -58,7 +58,7 @@ public class XWTSection extends AbstractPropertySection implements IChangeListen /**
* Constructor.
- *
+ *
* @param section
* The Section object containing the Metadata for the XWTSection
* @param view
@@ -127,7 +127,7 @@ public class XWTSection extends AbstractPropertySection implements IChangeListen /**
* Displays the section
- *
+ *
* @param refresh
* If true, and the section has already been displayed, the controls will be
* regenerated. If false, the section will only be displayed if it hasn't been
@@ -144,12 +144,14 @@ public class XWTSection extends AbstractPropertySection implements IChangeListen hide();
return;
}
-
+
+ self.setRedraw(false); //Avoid flickering during refresh
if(refresh) {
display.refreshSection(self, section, source);
} else {
display.createSection(self, section, source);
}
+ self.setRedraw(true);
}
private void hide() {
@@ -164,7 +166,7 @@ public class XWTSection extends AbstractPropertySection implements IChangeListen /**
* Tests if this section is applied. A section is applied if it doesn't have
* any constraint, or if at least one of its constraints match the current selection
- *
+ *
* @return
* True if the section should be displayed
*/
|