add utility methd
authorBruno Sinou <bsinou@argeo.org>
Tue, 9 Jun 2015 21:28:56 +0000 (21:28 +0000)
committerBruno Sinou <bsinou@argeo.org>
Tue, 9 Jun 2015 21:28:56 +0000 (21:28 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8178 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java

index f3979d074e94fbd77f8f79e646ab4ca3395b634b..c75c5d810254916851160e9ad1e7f7f9b35a4bfc 100644 (file)
@@ -37,6 +37,14 @@ public class EclipseUiUtils {
                        child.dispose();
        }
 
+       /**
+        * Enables efficient call to the layout method of a composite, refreshing
+        * only some of the children controls.
+        */
+       public static void layout(Composite parent, Control... toUpdateControls) {
+               parent.layout(toUpdateControls);
+       }
+
        //
        // Simplify grid layouts management
        //
@@ -161,7 +169,6 @@ public class EclipseUiUtils {
        //
        // FONTS
        //
-
        /** Shortcut to retrieve default italic font from display */
        public static Font getItalicFont(Composite parent) {
                return JFaceResources.getFontRegistry().defaultFontDescriptor()