aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2012-08-02 03:48:44 (EDT)
committerJacek Pospychala2012-08-02 03:48:44 (EDT)
commit01087a3b05c9c93bb1823fe45add7f9eba2a1c7d (patch)
tree8451c1460f3a612a504bfd58cff9aaf1c0073d8c
parent62eec6723e713ef8388cabb70ee58a41d8ba42b8 (diff)
downloadorg.eclipse.pdt-01087a3b05c9c93bb1823fe45add7f9eba2a1c7d.zip
org.eclipse.pdt-01087a3b05c9c93bb1823fe45add7f9eba2a1c7d.tar.gz
org.eclipse.pdt-01087a3b05c9c93bb1823fe45add7f9eba2a1c7d.tar.bz2
NPE in tests
-rw-r--r--tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java b/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java
index c315cfc..a3cac2e 100644
--- a/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java
+++ b/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java
@@ -39,6 +39,7 @@ import org.eclipse.php.internal.core.project.PHPNature;
import org.eclipse.php.internal.ui.PHPUiPlugin;
import org.eclipse.php.internal.ui.editor.PHPStructuredEditor;
import org.eclipse.php.ui.tests.PHPUiTests;
+import org.eclipse.swt.custom.StyledText;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
@@ -195,7 +196,8 @@ public class ContentAssistTests extends AbstractPDTTTest {
protected static String executeAutoInsert(int offset) {
StructuredTextViewer viewer = fEditor.getTextViewer();
- viewer.getTextWidget().setCaretOffset(offset);
+ StyledText textWidget = viewer.getTextWidget();
+ textWidget.setCaretOffset(offset);
viewer.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);
return fEditor.getDocument().get();
}