add utility methd
[lgpl/argeo-commons.git] / 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()