Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 71271 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/sse/ui/tests/viewer/TestViewerConfiguration.java (-16 lines)
Lines 19-25 Link Here
19
import org.eclipse.swt.widgets.Composite;
19
import org.eclipse.swt.widgets.Composite;
20
import org.eclipse.swt.widgets.Display;
20
import org.eclipse.swt.widgets.Display;
21
import org.eclipse.swt.widgets.Shell;
21
import org.eclipse.swt.widgets.Shell;
22
import org.eclipse.ui.IEditorPart;
23
import org.eclipse.ui.PlatformUI;
22
import org.eclipse.ui.PlatformUI;
24
import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
23
import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
25
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredPartitionTypes;
24
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredPartitionTypes;
Lines 254-274 Link Here
254
		// to not mess up other tests
253
		// to not mess up other tests
255
		fConfig.setDeclaringID(origID);
254
		fConfig.setDeclaringID(origID);
256
	}
255
	}
257
	public void testGetSetEditorPart() {
258
		
259
		// probably no display
260
		if(!fDisplayExists)
261
			return;
262
		
263
		IEditorPart origPart = fConfig.getEditorPart();
264
		
265
		fConfig.setEditorPart(null);
266
		IEditorPart gottenPart = fConfig.getEditorPart();
267
		assertNull(gottenPart);
268
		
269
		// don't mess up other tests
270
		fConfig.setEditorPart(origPart);
271
	}
272
256
273
	public void testGetHyperlinkPresenter() {
257
	public void testGetHyperlinkPresenter() {
274
		
258
		

Return to bug 71271