Package org.eclipse.jdt.internal.ui.javaeditor

Examples of org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer


     * @param removedPositions the removed positions
     * @return the text presentation or <code>null</code>, if reconciliation should be canceled
     */
    public TextPresentation createPresentation(List<?> addedPositions,
            List<?> removedPositions) {
        JavaSourceViewer sourceViewer = _sourceViewer;
        JavaPresentationReconciler presentationReconciler = _presentationReconciler;

        if ((sourceViewer == null) || (presentationReconciler == null)) {
            return null;
        }

        if (isCanceled()) {
            return null;
        }

        IDocument document = sourceViewer.getDocument();

        if (document == null) {
            return null;
        }

View Full Code Here


    private boolean _enable() {
        if (_enabled) {
            return true;
        }

        JavaSourceViewer viewer = (JavaSourceViewer) _editor.getViewer();
        if (viewer != null) {
            _initializeHighlightings();

            final String JAVA_PARTITIONING = "___java_partitioning";
            _configuration = new JavaSourceViewerConfiguration(_colorManager,
View Full Code Here

      unit.getResource().setPersistentProperty(
          IDE.EDITOR_KEY, GroovyEditor.EDITOR_ID);
    }

    JavaEditor editor = (JavaEditor)EditorUtility.openInEditor(unit);
    JavaSourceViewer viewer = (JavaSourceViewer)editor.getViewer();
    JavaContentAssistInvocationContext context =
      new JavaContentAssistInvocationContext(viewer, offset, editor);

    IJavaCompletionProposalComputer computer =
      new GroovyCompletionProposalComputer();
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.