Skip to content

Commit

Permalink
Show UISelection contents in wizard title
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-wyluda committed Sep 20, 2014
1 parent 77b95bd commit 6b5b2ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String getTitle()

public void refreshTitle()
{
Object selection = context.getSelection();
Object selection = context.getSelection().get();

setTitle(name + (selection != null ? " [" + selection + "]" : ""));
}
Expand Down
13 changes: 2 additions & 11 deletions src/main/java/org/jboss/forge/plugin/idea/util/IDEUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,9 @@ public static void openSelection(UIContext context)
{
Project project = projectFromContext(context);

if (context.getSelection() instanceof Iterable)
for (Object selection : context.getSelection())
{
Iterable iterable = context.getSelection();

for (Object selection : iterable)
{
openSingleSelection(project, selection);
}
}
else
{
openSingleSelection(project, context.getSelection());
openSingleSelection(project, selection);
}
}

Expand Down

0 comments on commit 6b5b2ae

Please sign in to comment.