@Test public void defaultScopeInfoTest() { final List<PreferenceScope> order = defaultPreferenceScopeResolutionStrategy.getInfo().order(); assertEquals( 2, order.size() ); final PreferenceScope firstScope = order.get( 0 ); assertEquals( "user", firstScope.type() ); assertEquals( "admin", firstScope.key() ); final PreferenceScope secondScope = order.get( 1 ); assertEquals( "global", secondScope.type() ); assertEquals( "global", secondScope.key() ); final PreferenceScope defaultScope = defaultPreferenceScopeResolutionStrategy.getInfo().defaultScope(); assertEquals( "user", defaultScope.type() ); assertEquals( "admin", defaultScope.key() ); }
@Override public PreferenceScopeResolutionStrategyInfo getInfo() { return info; }
WorkbenchPreferenceScopeResolutionStrategy implements PreferenceScopeResolutionStrategy { @Override public PreferenceScopeResolutionStrategyInfo getInfo() { return info; } }
WorkbenchPreferenceScopeResolutionStrategy implements PreferenceScopeResolutionStrategy { @Override public PreferenceScopeResolutionStrategyInfo getInfo() { return info; } WorkbenchPreferenceScopeResolutionStrategy(); @Inject  WorkbenchPreferenceScopeResolutionStrategy( final PreferenceScopeFactory scopeFactory );  WorkbenchPreferenceScopeResolutionStrategy( final PreferenceScopeFactory scopeFactory,
                                                       final PreferenceScope... scopes ); }
WorkbenchPreferenceScopeResolutionStrategy implements PreferenceScopeResolutionStrategy { @Override public PreferenceScopeResolutionStrategyInfo getInfo() { return info; } WorkbenchPreferenceScopeResolutionStrategy(); @Inject  WorkbenchPreferenceScopeResolutionStrategy( final PreferenceScopeFactory scopeFactory );  WorkbenchPreferenceScopeResolutionStrategy( final PreferenceScopeFactory scopeFactory,
                                                       final PreferenceScope... scopes ); @Override PreferenceScopeResolutionStrategyInfo getInfo(); @Override PreferenceScopeResolver getScopeResolver(); PreferenceScope getDefaultScope( final List<PreferenceScope> order ); }
WorkbenchPreferenceScopeResolutionStrategy implements PreferenceScopeResolutionStrategy { @Override public PreferenceScopeResolutionStrategyInfo getInfo() { return info; } WorkbenchPreferenceScopeResolutionStrategy(); @Inject  WorkbenchPreferenceScopeResolutionStrategy( final PreferenceScopeFactory scopeFactory );  WorkbenchPreferenceScopeResolutionStrategy( final PreferenceScopeFactory scopeFactory,
                                                       final PreferenceScope... scopes ); @Override PreferenceScopeResolutionStrategyInfo getInfo(); @Override PreferenceScopeResolver getScopeResolver(); PreferenceScope getDefaultScope( final List<PreferenceScope> order );  }