Bug 6407 reminder: register the context menu in the JavaOutlinePage
the context menu in the JavaOutlinePage should be registered with the page's site.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
fCheckedDesc= checkedDesc;
					fUncheckedDesc= uncheckedDesc;
					fCheckedTooltip= checkedTooltip;
					fUncheckedTooltip= uncheckedTooltip;
					fPreferenceKey= prefKey;
					
					boolean checked= JavaPlugin.getDefault().getPreferenceStore().getBoolean(fPreferenceKey);
					valueChanged(checked, false);
				}
				
				public void run() {
					valueChanged(isChecked(), true);
				}
				
				private void valueChanged(boolean on, boolean store) {
					
					setChecked(on);
					
					if (on) {
						fOutlineViewer.addFilter(fFilter);
						setToolTipText(fCheckedTooltip);
						setDescription(fCheckedDesc);
					} else {
						fOutlineViewer.removeFilter(fFilter);
						setToolTipText(fUncheckedTooltip);
						setDescription(fUncheckedDesc);
					}
					
					if (store)
						JavaPlugin.getDefault().getPreferenceStore().setValue(fPreferenceKey, on);