if (stringTokenizer.hasMoreTokens()) { token = token.toUpperCase(Locale.ENGLISH); final int modifierKey = lookup.formalModifierLookup(token); if (modifierKey == NO_KEY) { throw new ParseException(
if (stringTokenizer.hasMoreTokens()) { token = token.toUpperCase(); final int modifierKey = lookup.formalModifierLookup(token); if (modifierKey == NO_KEY) { throw new ParseException(
if (stringTokenizer.hasMoreTokens()) { token = token.toUpperCase(Locale.ENGLISH); final int modifierKey = lookup.formalModifierLookup(token); if (modifierKey == NO_KEY) { throw new ParseException(
@Override public void runWithEvent(Event event) { Set newList = new HashSet(Arrays.asList(getWindow().getActivePage() .getWorkingSets())); if (isChecked()) { // if the primary modifier key is down then clear the list // first. this makes the selection exclusive rather than // additive. boolean modified = (event.stateMask & KeyLookupFactory .getDefault().formalModifierLookup(IKeyLookup.M1_NAME)) != 0; if (modified) newList.clear(); newList.add(set); } else { newList.remove(set); } getWindow().getActivePage().setWorkingSets( (IWorkingSet[]) newList.toArray(new IWorkingSet[newList .size()])); } }