Package org.eclipse.jface.text.source

Examples of org.eclipse.jface.text.source.SourceViewer.configure()


      Document document = new Document();
      viewer.setDocument(document);
      CssPartitionScanner.configurePartitions(document);
    }
    // configure viewer
    viewer.configure(new CssConfiguration());
    return viewer;
  }

  /**
   * Configures SWT to use mouse wheel for vertical scrolling on this {@link ScrolledComposite}.
View Full Code Here


    case vhdl:
      configuration = HdlSourceViewerConfiguration.createForVhdl( new VhdlEditor() );
      break;     
    }   
   
    viewer.configure(configuration);
    return viewer;
  }
 

  private Text createText(Composite container, String name)
View Full Code Here

   * @return a configured source viewer
   */
  protected SourceViewer createViewer(Composite parent) {
    SourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    SourceViewerConfiguration configuration= new SourceViewerConfiguration();
    viewer.configure(configuration);
    IDocument document= new Document();
    viewer.setDocument(document);
    return viewer;
  }
 
View Full Code Here

   * @return a configured source viewer
   */
  protected SourceViewer createViewer(Composite parent) {
    SourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    SourceViewerConfiguration configuration= new SourceViewerConfiguration();
    viewer.configure(configuration);
    IDocument document= new Document();
    viewer.setDocument(document);
    return viewer;
  }

View Full Code Here

   * @return a configured source viewer
   */
  protected SourceViewer createPatternViewer(Composite parent) {
    SourceViewer viewer= new SourceViewer(parent, null, null, false, SWT.V_SCROLL | SWT.H_SCROLL);
    SourceViewerConfiguration configuration= new SourceViewerConfiguration();
    viewer.configure(configuration);
    IDocument document= new Document();
    viewer.setDocument(document);
    viewer.setEditable(false);
    return viewer;
  }
View Full Code Here

          assistant.enableAutoInsert(true);
          assistant.setContentAssistProcessor(fTemplateProcessor, IDocument.DEFAULT_CONTENT_TYPE);
          return assistant;
        }
      };
      viewer.configure(configuration);
      return viewer;
    }

    private void initializeActions() {
      final ArrayList handlerActivations= new ArrayList(3);
View Full Code Here

            }
        };

        final PyEditConfiguration sourceViewerConfiguration = new PyEditConfiguration(c, editor, chainedPrefStore);
        sourceViewerConfigurationObj[0] = new WeakReference<PyEditConfigurationWithoutEditor>(sourceViewerConfiguration);
        sourceViewer.configure(sourceViewerConfiguration);

        IPropertyChangeListener prefChangeListener = PyEdit.createPrefChangeListener(editor);
        getPrefChangeListeners().add(prefChangeListener);
        chainedPrefStore.addPropertyChangeListener(prefChangeListener);
    }
View Full Code Here

        assistant.setContentAssistProcessor(fTemplateProcessor,
            IDocument.DEFAULT_CONTENT_TYPE);
        return assistant;
      }
    };
    viewer.configure(configuration);
    return viewer;
  }

  private String getPrefix() {
    String id = getContextId();
View Full Code Here

              .getCurrent().getSystemColor(
                  SWT.COLOR_INFO_BACKGROUND));
          return assistant;
        }
      };
      viewer.configure(configuration);
      return viewer;
    }
  }
}
View Full Code Here

        JFaceResources.getFont("org.eclipse.wst.sse.ui.textfont")); //$NON-NLS-1$
    IStructuredModel scratchModel = StructuredModelManager
        .getModelManager().createUnManagedStructuredModelFor(
            ContentTypeIdForPHP.ContentTypeID_PHP);
    IDocument document = scratchModel.getStructuredDocument();
    viewer.configure(sourceViewerConfiguration);
    viewer.setDocument(document);
    return viewer;
  }

  private SourceViewer doCreateViewer(Composite parent) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.