Skip to content

Commit

Permalink
Fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 30, 2013
1 parent 7651fbf commit 9fef9e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.jboss.forge.addon.manager.impl.commands;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
Expand Down Expand Up @@ -77,11 +77,11 @@ public void initializeUI(UIBuilder builder) throws Exception
if (project != null)
{
MetadataFacet facet = project.getFacet(MetadataFacet.class);
String name = facet.getTopLevelPackage() + facet.getProjectName();
String name = facet.getTopLevelPackage() + ":" + facet.getProjectName();
AddonId selectedAddonId = AddonId.from(name, facet.getProjectVersion());
if (choices.contains(selectedAddonId))
{
addons.setDefaultValue(Arrays.asList(selectedAddonId));
addons.setDefaultValue(Collections.singleton(selectedAddonId));
}
}
builder.add(addons);
Expand Down

0 comments on commit 9fef9e9

Please sign in to comment.