Author: fbricon
Date: 2011-11-09 07:12:15 -0500 (Wed, 09 Nov 2011)
New Revision: 36248
Modified:
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/profiles/SelectProfilesDialog.java
Log:
Don't display profiles input text if no profiles are availables
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-11-09
11:59:14 UTC (rev 36247)
+++
trunk/maven/plugins/org.jboss.tools.maven.ui/src/org/jboss/tools/maven/ui/internal/profiles/SelectProfilesDialog.java 2011-11-09
12:12:15 UTC (rev 36248)
@@ -116,6 +116,7 @@
setTitle(Messages.SelectProfilesDialog_Maven_profile_selection);
String text;
+ boolean hasProfiles = !sharedProfiles.isEmpty();
if (facade == null) {
text =
NLS.bind(Messages.SelectProfilesDialog_Select_active_profiles_for_selected_projects,
facades.size()
@@ -124,13 +125,12 @@
text = NLS.bind(
Messages.SelectProfilesDialog_Select_the_active_Maven_profiles,
facade.getProject().getName());
-
- displayProfilesAsText(container);
+ if (hasProfiles) {
+ displayProfilesAsText(container);
+ }
}
setMessage(text);
- boolean hasProfiles = !sharedProfiles.isEmpty();
-
if (hasProfiles && facade == null) {
displayWarning(container);
}