Package org.eclipse.cdt.internal.ui.editor

Examples of org.eclipse.cdt.internal.ui.editor.CEditor


@SuppressWarnings("restriction")
@Singleton class ProtoFilePathFinder {
  private static final Pattern PROTO_PATH_PATTERN = Pattern.compile("// source: (.*)");

  IPath findProtoFilePathIn(IEditorPart editor) {
    CEditor cEditor = (CEditor) editor;
    String contents = contentsOf(cEditor);
    if (isEmpty(contents)) {
      return null;
    }
    String line = null;
View Full Code Here


      CommandLine commandLine, String projectName, String file, int offset)
    throws Exception
  {
    IProject project = ProjectUtils.getProject(projectName);

    CEditor editor = new CEditor();
    IEditorInput input =
      new FileEditorInput(ProjectUtils.getFile(project, file));
    editor.init(new EclimEditorSite(), input);
    editor.setInput(input);

    CTextTools textTools = CUIPlugin.getDefault().getTextTools();
    IPreferenceStore store = CUIPlugin.getDefault().getCombinedPreferenceStore();
    CSourceViewerConfiguration config =
      new CSourceViewerConfiguration(
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.internal.ui.editor.CEditor

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.