Bug 55968 [misc] segmented view does not work with new methods
i2004-03-24+plugin export - add a new method into a class by typing: public void test() {[enter] - the closing bracket is made automatically and the cursor is placed in the method - press "show source of selected element only" - observed behavior: the selected segment is the whole class rather than the method in which the cursor was
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
if (isBrowserLikeLinks())
			disableBrowserLikeLinks();
		getSourceViewerDecorationSupport(sourceViewer).uninstall();
		((ISourceViewerExtension2)sourceViewer).unconfigure();
		
		setNewPreferenceStore(createNewPreferenceStore(input));
		
		 
		sourceViewer.configure(getSourceViewerConfiguration());
		getSourceViewerDecorationSupport(sourceViewer).install(getNewPreferenceStore());
		if (isBrowserLikeLinks())
			enableBrowserLikeLinks();
		
		super.doSetInput(input);
		
		if (fEncodingSupport != null)
			fEncodingSupport.reset();
		setOutlinePageInput(fOutlinePage, input);
	}
	/**
	 * {@inheritDoc}
	 */
	protected void setNewPreferenceStore(IPreferenceStore store, IPreferenceStore pre_3_0_Store) {
		super.setNewPreferenceStore(store, pre_3_0_Store);
		if (getSourceViewerConfiguration() instanceof JavaSourceViewerConfiguration)
			((JavaSourceViewerConfiguration)getSourceViewerConfiguration()).setNewPreferenceStore(store);
	}
	/**
	 * {@inheritDoc}
	 */