@Test public void typesRequireKeyTest() { assertFalse(scopeTypes.typeRequiresKey(WorkbenchPreferenceScopes.GLOBAL)); assertFalse(scopeTypes.typeRequiresKey(WorkbenchPreferenceScopes.USER)); assertTrue(scopeTypes.typeRequiresKey(WorkbenchPreferenceScopes.PROJECT)); assertTrue(scopeTypes.typeRequiresKey(WorkbenchPreferenceScopes.SPACE)); }
@Override public boolean typeRequiresKey(final String type) throws InvalidPreferenceScopeException { validateType(type); return defaultKeyByType.get(type) == null; }
WorkbenchPreferenceScopeTypes implements PreferenceScopeTypes { @Override public boolean typeRequiresKey(final String type) throws InvalidPreferenceScopeException { validateType(type); return defaultKeyByType.get(type) == null; } }
WorkbenchPreferenceScopeTypes implements PreferenceScopeTypes { @Override public boolean typeRequiresKey(final String type) throws InvalidPreferenceScopeException { validateType(type); return defaultKeyByType.get(type) == null; } protected  WorkbenchPreferenceScopeTypes(); @Inject  WorkbenchPreferenceScopeTypes(final UsernameProvider usernameProvider); }
WorkbenchPreferenceScopeTypes implements PreferenceScopeTypes { @Override public boolean typeRequiresKey(final String type) throws InvalidPreferenceScopeException { validateType(type); return defaultKeyByType.get(type) == null; } protected  WorkbenchPreferenceScopeTypes(); @Inject  WorkbenchPreferenceScopeTypes(final UsernameProvider usernameProvider); @Override boolean typeRequiresKey(final String type); @Override String getDefaultKeyFor(final String type); }
WorkbenchPreferenceScopeTypes implements PreferenceScopeTypes { @Override public boolean typeRequiresKey(final String type) throws InvalidPreferenceScopeException { validateType(type); return defaultKeyByType.get(type) == null; } protected  WorkbenchPreferenceScopeTypes(); @Inject  WorkbenchPreferenceScopeTypes(final UsernameProvider usernameProvider); @Override boolean typeRequiresKey(final String type); @Override String getDefaultKeyFor(final String type);  }