blob: 32887e36f86d1bcb948c5549fd85fbab4872df77 [file] [log] [blame]
package org.eclipse.compare.internal;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.*;
import org.eclipse.compare.CompareViewerSwitchingPane;
/**
* Used whenever the input is null or no viewer can be found.
*/
public class NullViewer extends AbstractViewer {
private Control fDummy;
public NullViewer(Composite parent) {
fDummy= new Tree(parent, SWT.NULL);
CompareViewerSwitchingPane.clearToolBar(parent);
}
public Control getControl() {
return fDummy;
}
}