Remove weird deprecation Tag and enhence comments.
authorBruno Sinou <bsinou@argeo.org>
Mon, 20 Jan 2014 20:28:34 +0000 (20:28 +0000)
committerBruno Sinou <bsinou@argeo.org>
Mon, 20 Jan 2014 20:28:34 +0000 (20:28 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@6734 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

base/runtime/org.argeo.eclipse.ui/src/main/java/org/argeo/eclipse/ui/EclipseUiUtils.java

index d6e62d3e556aaaaf0f746b0e27ef83924f6cf41e..8e1c7e63210cd34b75caff9b901d6f9bdf0585ec 100644 (file)
@@ -39,9 +39,10 @@ public class EclipseUiUtils {
         *            be null
         * @return the created text
         * 
-        * @deprecated use {@link #createGridLT(Composite, String)} instead
         */
-       @Deprecated
+       // FIXME why was this deprecated.
+       // * @ deprecated use { @ link #createGridLT(Composite, String)} instead
+       // @ Deprecated
        public static Text createGridLT(Composite parent, String label,
                        ModifyListener modifyListener) {
                Label lbl = new Label(parent, SWT.LEAD);
@@ -54,6 +55,10 @@ public class EclipseUiUtils {
                return txt;
        }
 
+       /**
+        * Create a label and a text field for a grid layout, the text field
+        * grabbing excess horizontal
+        */
        public static Text createGridLT(Composite parent, String label) {
                return createGridLT(parent, label, null);
        }
@@ -70,6 +75,10 @@ public class EclipseUiUtils {
                return txt;
        }
 
+       /**
+        * Create a label and a text field with password display for a grid layout,
+        * the text field grabbing excess horizontal
+        */
        public static Text createGridLP(Composite parent, String label,
                        ModifyListener modifyListener) {
                Label lbl = new Label(parent, SWT.LEAD);
@@ -82,20 +91,22 @@ public class EclipseUiUtils {
                return txt;
        }
 
+       /** Shortcut to retrieve default italic font from display */
        public static Font getItalicFont(Composite parent) {
                return JFaceResources.getFontRegistry().defaultFontDescriptor()
                                .setStyle(SWT.ITALIC).createFont(parent.getDisplay());
        }
 
+       /** Shortcut to retrieve default bold font from display */
        public static Font getBoldFont(Composite parent) {
                return JFaceResources.getFontRegistry().defaultFontDescriptor()
                                .setStyle(SWT.BOLD).createFont(parent.getDisplay());
        }
 
+       /** Shortcut to retrieve default bold italic font from display */
        public static Font getBoldItalicFont(Composite parent) {
                return JFaceResources.getFontRegistry().defaultFontDescriptor()
                                .setStyle(SWT.BOLD | SWT.ITALIC)
                                .createFont(parent.getDisplay());
        }
-
-}
+}
\ No newline at end of file