Author: fbricon
Date: 2011-07-20 16:05:45 -0400 (Wed, 20 Jul 2011)
New Revision: 33081
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/profiles/SelectProfilesDialog.java
Log:
JBIDE-8969 : changed the selected profiles widget from Label to Text, to handle selection
of a big number of profiles.
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/profiles/SelectProfilesDialog.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/profiles/SelectProfilesDialog.java 2011-07-20
19:38:53 UTC (rev 33080)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/profiles/SelectProfilesDialog.java 2011-07-20
20:05:45 UTC (rev 33081)
@@ -50,6 +50,7 @@
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
+import org.eclipse.swt.widgets.Text;
import org.jboss.tools.maven.core.profiles.ProfileState;
import org.jboss.tools.maven.ui.Messages;
@@ -62,8 +63,8 @@
private CheckboxTableViewer profileTableViewer;
private Button offlineModeBtn;
private Button forceUpdateBtn;
- private ITextViewer profilesTextViewer;
- private Label profilesText;
+ //private ITextViewer profilesTextViewer;
+ private Text profilesText;
private boolean offlineMode ;
private boolean forceUpdate;
@@ -127,9 +128,10 @@
profilesLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 2,
1));
profilesLabel.setText(NLS.bind(Messages.SelectProfilesDialog_Active_Profiles_for_Project,
facade.getProject().getName()));
- profilesText = new Label(container, SWT.BORDER);
+ profilesText = new Text(container, SWT.BORDER);
profilesText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
profilesText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
+ profilesText.setEditable(false);
updateProfilesText();
}
Show replies by date