org.eclipse.xtext.preferences.IntegerKey Java Examples

The following examples show how to use org.eclipse.xtext.preferences.IntegerKey. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractModifyDialogTab.java    From xtext-xtend with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * Convenience method to create a NumberPreference. The widget is registered as a potential focus holder, and the
 * default updater is added.<br>
 * Min value is set to 0 and max value to 999.
 */
protected NumberPreference createNumberPref(Composite composite, int numColumns, String name,
		IntegerKey integerEntry) {
	return super.createNumberPref(composite, numColumns, name, integerEntry.getId(), 0, 999);
}