Procházet zdrojové kódy

Renamed Filter classes. They aren't Composites themselves.

pull/2/head
veronie před 4 roky
rodič
revize
47d47e40ad
4 změnil soubory, kde provedl 9 přidání a 9 odebrání
  1. +1
    -1
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/BggUserSourceFilter.java
  2. +1
    -1
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/FamilySourceFilter.java
  3. +1
    -1
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/GeeklistSourceFilter.java
  4. +6
    -6
      xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/parts/FetchPart.java

xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/BggUserSourceFilterComposite.java → xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/BggUserSourceFilter.java Zobrazit soubor

@@ -28,7 +28,7 @@ import xyz.veronie.bgg.types.Subtype;
import xyz.veronie.bgg.types.UserFlag;
import xyz.veronie.bgg.ui.filters.composites.FilterFlagComposite;
public class BggUserSourceFilterComposite {
public class BggUserSourceFilter {
@Inject private IEventBroker eventBroker;
@Inject private ResultConfigManager configManager;

xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/FamilySourceFilterComposite.java → xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/FamilySourceFilter.java Zobrazit soubor

@@ -35,7 +35,7 @@ import xyz.veronie.bgg.ui.helpers.BatLayouts;
/// These are the controls to retrieve thing IDs for a given family ID
@Creatable
public class FamilySourceFilterComposite {
public class FamilySourceFilter {
@Inject private IEventBroker eventBroker;
@Inject private ResultConfigManager configManager;

xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/GeeklistSourceFilterComposite.java → xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/filters/GeeklistSourceFilter.java Zobrazit soubor

@@ -25,7 +25,7 @@ import xyz.veronie.bgg.ui.helpers.BatLayouts;
/// These are the controls to retrieve thing IDs for a given family ID
@Creatable
public class GeeklistSourceFilterComposite {
public class GeeklistSourceFilter {
@Inject private IEventBroker eventBroker;
@Inject private ResultConfigManager configManager;

+ 6
- 6
xyz.veronie.bgg.ui/src/xyz/veronie/bgg/ui/parts/FetchPart.java Zobrazit soubor

@@ -38,9 +38,9 @@ import xyz.veronie.bgg.result.ThingProvider;
import xyz.veronie.bgg.types.EventConstants;
import xyz.veronie.bgg.types.ResultAction;
import xyz.veronie.bgg.types.SourceFilter;
import xyz.veronie.bgg.ui.filters.BggUserSourceFilterComposite;
import xyz.veronie.bgg.ui.filters.FamilySourceFilterComposite;
import xyz.veronie.bgg.ui.filters.GeeklistSourceFilterComposite;
import xyz.veronie.bgg.ui.filters.BggUserSourceFilter;
import xyz.veronie.bgg.ui.filters.FamilySourceFilter;
import xyz.veronie.bgg.ui.filters.GeeklistSourceFilter;
import xyz.veronie.bgg.ui.helpers.BatColors;
import xyz.veronie.bgg.ui.helpers.BatLayouts;
@@ -213,7 +213,7 @@ public class FetchPart {
userFilterPage.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
IEclipseContext userFilterCtx = EclipseContextFactory.create();
userFilterCtx.set(Composite.class, userFilterPage); // parent
ContextInjectionFactory.make(BggUserSourceFilterComposite.class, context, userFilterCtx);
ContextInjectionFactory.make(BggUserSourceFilter.class, context, userFilterCtx);
btnBggUser.addSelectionListener(new SelectionListener() {
@Override
@@ -235,7 +235,7 @@ public class FetchPart {
familyPage.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
IEclipseContext familyFilterCtx = EclipseContextFactory.create();
familyFilterCtx.set(Composite.class, familyPage); // parent
ContextInjectionFactory.make(FamilySourceFilterComposite.class, context, familyFilterCtx);;
ContextInjectionFactory.make(FamilySourceFilter.class, context, familyFilterCtx);;
btnFamily.addSelectionListener(new SelectionListener() {
@Override
@@ -256,7 +256,7 @@ public class FetchPart {
geeklistPage.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
IEclipseContext geeklistFilterCtx = EclipseContextFactory.create();
geeklistFilterCtx.set(Composite.class, geeklistPage); // parent
ContextInjectionFactory.make(GeeklistSourceFilterComposite.class, context, geeklistFilterCtx);
ContextInjectionFactory.make(GeeklistSourceFilter.class, context, geeklistFilterCtx);
btnGeeklist.addSelectionListener(new SelectionListener() {
@Override


Načítá se…
Zrušit
Uložit