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
* @param options The options to wrap.
		 */
		public OptionsAdapter(Map options, IPreferenceStore mockupPreferenceStore, IPropertyChangeEventFilter filter) {
			fMockupPreferenceStore= mockupPreferenceStore;
			fOptions= options;
			setFilter(filter);
		}
		/**
		 * {@inheritDoc}
		 */
		public void addPropertyChangeListener(IPropertyChangeListener listener) {
			if (fListeners.size() == 0)
				fMockupPreferenceStore.addPropertyChangeListener(fListener);
			fListeners.add(listener);
		}
		/**
		 * {@inheritDoc}
		 */
		public void removePropertyChangeListener(IPropertyChangeListener listener) {
			fListeners.remove(listener);
			if (fListeners.size() == 0)
				fMockupPreferenceStore.removePropertyChangeListener(fListener);
		}
		/**
		 * {@inheritDoc}
		 */
		public boolean contains(String name) {
			return fOptions.containsKey(name);
		}
		/**