Skip to content

Commit

Permalink
Remove UISelectionImpl and use Selections instead
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-wyluda committed Jun 15, 2014
1 parent c24807d commit b526ec7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import org.jboss.forge.addon.ui.UIProvider;
import org.jboss.forge.addon.ui.context.UIContext;
import org.jboss.forge.addon.ui.context.UISelection;
import org.jboss.forge.addon.ui.util.Selections;
import org.jboss.forge.furnace.proxy.Proxies;
import org.jboss.forge.plugin.idea.runtime.UIProviderImpl;
import org.jboss.forge.plugin.idea.service.ServiceHelper;

import java.io.File;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

Expand All @@ -44,12 +44,12 @@ private static UISelection<?> getSelection(VirtualFile[] files)

if (files == null || files.length == 0)
{
selection = new UISelectionImpl<>(new ArrayList<>());
selection = Selections.emptySelection();
}
else
{
List<Object> resources = filesToResources(files);
selection = new UISelectionImpl<>(resources);
selection = Selections.from(resources);
}

return selection;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public enum ComponentBuilderRegistry
new ComboComponentBuilder(),
new RadioComponentBuilder(),
new FileChooserComponentBuilder(),
// new CheckboxTableComponentBuilder(),
new TextBoxComponentBuilder(),
new PasswordComponentBuilder(),
new FallbackTextBoxComponentBuilder()};
Expand Down

0 comments on commit b526ec7

Please sign in to comment.