Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 11-23
Link Here
|
11 |
package org.eclipse.compare; |
11 |
package org.eclipse.compare; |
12 |
|
12 |
|
13 |
import org.eclipse.compare.contentmergeviewer.IFlushable; |
13 |
import org.eclipse.compare.contentmergeviewer.IFlushable; |
14 |
import org.eclipse.compare.internal.*; |
14 |
import org.eclipse.compare.internal.CompareMessages; |
|
|
15 |
import org.eclipse.compare.internal.NullViewer; |
16 |
import org.eclipse.compare.internal.Utilities; |
15 |
import org.eclipse.compare.structuremergeviewer.ICompareInput; |
17 |
import org.eclipse.compare.structuremergeviewer.ICompareInput; |
16 |
import org.eclipse.jface.viewers.*; |
18 |
import org.eclipse.jface.viewers.ISelection; |
|
|
19 |
import org.eclipse.jface.viewers.StructuredViewer; |
20 |
import org.eclipse.jface.viewers.Viewer; |
17 |
import org.eclipse.swt.events.DisposeEvent; |
21 |
import org.eclipse.swt.events.DisposeEvent; |
18 |
import org.eclipse.swt.events.DisposeListener; |
22 |
import org.eclipse.swt.events.DisposeListener; |
19 |
import org.eclipse.swt.graphics.Image; |
23 |
import org.eclipse.swt.graphics.Image; |
20 |
import org.eclipse.swt.widgets.*; |
24 |
import org.eclipse.swt.widgets.Composite; |
|
|
25 |
import org.eclipse.swt.widgets.Control; |
26 |
import org.eclipse.swt.widgets.Display; |
21 |
|
27 |
|
22 |
import com.ibm.icu.text.MessageFormat; |
28 |
import com.ibm.icu.text.MessageFormat; |
23 |
|
29 |
|
Lines 269-274
Link Here
|
269 |
// set input |
275 |
// set input |
270 |
fViewer.setInput(input); |
276 |
fViewer.setInput(input); |
271 |
|
277 |
|
|
|
278 |
if (getViewer() == null || !Utilities.okToUse(getViewer().getControl())) |
279 |
return; |
280 |
|
272 |
Image image= null; |
281 |
Image image= null; |
273 |
if (!(fViewer instanceof NullViewer) && input instanceof ICompareInput) |
282 |
if (!(fViewer instanceof NullViewer) && input instanceof ICompareInput) |
274 |
image= ((ICompareInput)input).getImage(); |
283 |
image= ((ICompareInput)input).getImage(); |