Examples of ScriptEditor


Examples of org.eclipse.dltk.internal.ui.editor.ScriptEditor

  public boolean canToggleWatchpoints(IWorkbenchPart part, ISelection selection) {
    if (selection instanceof ITextSelection) {
      final ITextSelection textSelection = (ITextSelection) selection;
      final String text = textSelection.getText();
      if (part instanceof ScriptEditor) {
        ScriptEditor scriptEditor = (ScriptEditor) part;
        try {
          IDocument doc = scriptEditor.getScriptSourceViewer().getDocument();
          IRegion region = doc.getLineInformation(textSelection.getStartLine());
          String string = doc.get(region.getOffset(), region.getLength());

          return string.indexOf('=') != -1 || string.trim().startsWith("var ");
        } catch (BadLocationException e) {
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.editor.ScriptEditor

      }

      if (editor instanceof ScriptEditor) {

        try {
          ScriptEditor scriptEditor = (ScriptEditor) editor;
          IDocument doc = scriptEditor.getScriptSourceViewer().getDocument();
          IRegion region = doc.getLineInformation(lineNumber - 1);
          String string = doc.get(region.getOffset(), region.getLength());

          int index = string.indexOf('=');
          if (index != -1) {
View Full Code Here

Examples of org.wiztools.restclient.ui.ScriptEditor

    /**
     * fired when project opened
     */
    public void projectOpened() {
        JFrame jFrame = WindowManager.getInstance().getFrame(project);
        ScriptEditor scriptEditor=new GroovyScriptEditor(project);
        ScriptEditor responseViewer=new ResponseViewerScriptEditor(project);
        restMain = new RESTMain(jFrame,scriptEditor,responseViewer);
        registerRestClientToolWindow(project);
    }
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.