Package org.eclipse.jdt.ui.text

Examples of org.eclipse.jdt.ui.text.JavaTextTools


    public static final String PAGE_ID = "properties";

    public PropertiesForm(SigilProjectEditorPart editor, ISigilProjectModel project)
    {
        super(PAGE_ID);
        JavaTextTools textTools = JavaPlugin.getDefault().getJavaTextTools();
        IPreferenceStore store = JavaPlugin.getDefault().getCombinedPreferenceStore();
        setPreferenceStore(store);
        setSourceViewerConfiguration(new PropertiesFileSourceViewerConfiguration(
            textTools.getColorManager(), store, this,
            IPropertiesFilePartitions.PROPERTIES_FILE_PARTITIONING));
        /*IFileEditorInput fileInput = (IFileEditorInput) editor.getEditorInput();
        this.setDocumentProvider(fileInput);*/
    }
View Full Code Here


 

 
  public void createPartControl(Composite parent) {
    IDocument document = getDocumentProvider().getDocument(getEditorInput());
    JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();
    tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING);
   
    FormToolkit tk = new FormToolkit(parent.getDisplay());
    Form createForm = tk.createForm(parent);
    createForm.setText(getTitle()+" ("+getJavaProject().getElementName()+" )");
/*    Action launch = new Action() {
View Full Code Here

  @Override
  protected void initializeEditor() {
    super.initializeEditor();
    //Override SourceViewerConfiguration with our own
    IPreferenceStore store= JavaPlugin.getDefault().getCombinedPreferenceStore();
    JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools();
    setSourceViewerConfiguration(new SpringPropertiesFileSourceViewerConfiguration(textTools.getColorManager(), store, this, IPropertiesFilePartitions.PROPERTIES_FILE_PARTITIONING));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.text.JavaTextTools

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.