You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class PreferenceSupplier extends AbstractPreferenceSupplier implements IPreferenceSupplier {
public static final int MIN_LIMIT = 1;
public static final int MAX_LIMIT = Integer.MAX_VALUE;
//
public static final String P_LIMIT = "limit";
public static final int DEF_LIMIT = 5;
public static IPreferenceSupplier INSTANCE() {
return INSTANCE(PreferenceSupplier.class);
}
@Override
public String getPreferenceNode() {
return Activator.getContext().getBundle().getSymbolicName();
}
@Override
public void initializeDefaults() {
putDefault(P_LIMIT, DEF_LIMIT);
}
public static int getLimit() {
return INSTANCE().getInteger(P_LIMIT);
}
public static void setLimit(int limit) {
INSTANCE().putInteger(P_LIMIT, limit);
}
}
Depends on:
#1604
The text was updated successfully, but these errors were encountered: