Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 299889
Collapse All | Expand All

(-)src/org/eclipse/ui/internal/cheatsheets/registry/CheatSheetRegistryReader.java (-2 / +7 lines)
Lines 143-149 Link Here
143
	protected final static String TAG_TASK_EXPLORER = "taskExplorer"; //$NON-NLS-1$
143
	protected final static String TAG_TASK_EXPLORER = "taskExplorer"; //$NON-NLS-1$
144
	protected final static String trueString = "TRUE"; //$NON-NLS-1$
144
	protected final static String trueString = "TRUE"; //$NON-NLS-1$
145
	private final static String UNCATEGORIZED_CHEATSHEET_CATEGORY = "org.eclipse.ui.Other"; //$NON-NLS-1$
145
	private final static String UNCATEGORIZED_CHEATSHEET_CATEGORY = "org.eclipse.ui.Other"; //$NON-NLS-1$
146
	private final static String UNCATEGORIZED_CHEATSHEET_CATEGORY_LABEL = Messages.get().CHEAT_SHEET_OTHER_CATEGORY;
146
// RAP [rh]	Can't use NLS mechanism here: this class my be accessed outside the request scope
147
//	private final static String UNCATEGORIZED_CHEATSHEET_CATEGORY_LABEL = Messages.get().CHEAT_SHEET_OTHER_CATEGORY;
147
    public final static String CHEAT_SHEET_CONTENT = "cheatSheetContent"; //$NON-NLS-1$
148
    public final static String CHEAT_SHEET_CONTENT = "cheatSheetContent"; //$NON-NLS-1$
148
	
149
	
149
    /**
150
    /**
Lines 509-516 Link Here
509
	protected void moveElementToUncategorizedCategory(CheatSheetCollectionElement root, CheatSheetElement element) {
510
	protected void moveElementToUncategorizedCategory(CheatSheetCollectionElement root, CheatSheetElement element) {
510
		CheatSheetCollectionElement otherCategory = getChildWithID(root, UNCATEGORIZED_CHEATSHEET_CATEGORY);
511
		CheatSheetCollectionElement otherCategory = getChildWithID(root, UNCATEGORIZED_CHEATSHEET_CATEGORY);
511
512
513
// RAP [rh] CheatSheetRegistry is only initialized once, therefore we use the 
514
//     a hard-coded locale for the uncategorized label
515
//		if (otherCategory == null)
516
//			otherCategory = createCollectionElement(root, null, UNCATEGORIZED_CHEATSHEET_CATEGORY, UNCATEGORIZED_CHEATSHEET_CATEGORY_LABEL);
512
		if (otherCategory == null)
517
		if (otherCategory == null)
513
			otherCategory = createCollectionElement(root, null, UNCATEGORIZED_CHEATSHEET_CATEGORY, UNCATEGORIZED_CHEATSHEET_CATEGORY_LABEL);
518
		  otherCategory = createCollectionElement(root, null, UNCATEGORIZED_CHEATSHEET_CATEGORY, "Other"); //$NON-NLS-1$
514
519
515
		otherCategory.add(element);
520
		otherCategory.add(element);
516
	}
521
	}

Return to bug 299889