|
|
@@ -32,7 +32,8 @@ import xyz.veronie.bgg.ui.contributions.RankSourceFilter; |
|
|
|
import xyz.veronie.bgg.ui.contributions.ResultAction;
|
|
|
|
import xyz.veronie.bgg.ui.contributions.SearchSourceFilter;
|
|
|
|
import xyz.veronie.bgg.ui.contributions.SourceFilter;
|
|
|
|
import xyz.veronie.bgg.ui.contributions.Subpage;
|
|
|
|
import xyz.veronie.bgg.ui.contributions.Subtype;
|
|
|
|
import xyz.veronie.bgg.ui.contributions.ThingFilterGroup;
|
|
|
|
import xyz.veronie.bgg.ui.contributions.YearSourceFilter;
|
|
|
|
|
|
|
|
|
|
|
@@ -81,18 +82,8 @@ public class LoadFromBggPart { |
|
|
|
|
|
|
|
|
|
|
|
// choose the bgg sub-site
|
|
|
|
Label lblTopic = new Label(dlConfigGroup, SWT.LEFT);
|
|
|
|
lblTopic.setText("Subpage: ");
|
|
|
|
lblTopic.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, false, false));
|
|
|
|
|
|
|
|
ComboViewer cbTopic = new ComboViewer(dlConfigGroup, SWT.READ_ONLY);
|
|
|
|
cbTopic.setContentProvider(ArrayContentProvider.getInstance());
|
|
|
|
List<Subpage> sites = Arrays.asList(new Subpage[] {
|
|
|
|
Subpage.BOARDGAMES, Subpage.RPG, Subpage.RPG_ITEMS,
|
|
|
|
Subpage.VIDEOGAMES, Subpage.ACCESSORIES });
|
|
|
|
cbTopic.setInput(sites);
|
|
|
|
cbTopic.setSelection(new StructuredSelection(sites.get(0)));
|
|
|
|
|
|
|
|
ThingFilterGroup gSubtypes = new ThingFilterGroup();
|
|
|
|
gSubtypes.create(dlConfigGroup);
|
|
|
|
|
|
|
|
// choose action on result list
|
|
|
|
Label lblAct = new Label(dlConfigGroup, SWT.LEFT);
|
|
|
|