View | Details | Raw Unified | Return to bug 141082
Collapse All | Expand All

(-)compare/org/eclipse/compare/internal/CompareEditor.java (+14 lines)
Lines 130-135 Link Here
130
		IEditorInput oldInput= getEditorInput();
130
		IEditorInput oldInput= getEditorInput();
131
		if (oldInput instanceof IPropertyChangeNotifier)
131
		if (oldInput instanceof IPropertyChangeNotifier)
132
			((IPropertyChangeNotifier)input).removePropertyChangeListener(fPropertyChangeListener);
132
			((IPropertyChangeNotifier)input).removePropertyChangeListener(fPropertyChangeListener);
133
134
		ISaveablesLifecycleListener lifecycleListener = null;
135
		if (oldInput != null) {
136
			lifecycleListener = (ISaveablesLifecycleListener) getSite()
137
					.getService(ISaveablesLifecycleListener.class);
138
			lifecycleListener.handleLifecycleEvent(new SaveablesLifecycleEvent(
139
					this, SaveablesLifecycleEvent.POST_CLOSE, getSaveables(),
140
					false));
141
		}
133
			
142
			
134
		super.setInput(input);
143
		super.setInput(input);
135
		
144
		
Lines 154-159 Link Here
154
		}
163
		}
155
        
164
        
156
        firePropertyChange(IWorkbenchPartConstants.PROP_INPUT);
165
        firePropertyChange(IWorkbenchPartConstants.PROP_INPUT);
166
        
167
        if (lifecycleListener != null) {
168
        	lifecycleListener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,
169
					SaveablesLifecycleEvent.POST_OPEN, getSaveables(), false));
170
        }
157
	}
171
	}
158
	
172
	
159
	public IActionBars getActionBars() {
173
	public IActionBars getActionBars() {

Return to bug 141082