Package org.eclipse.wst.sse.ui

Examples of org.eclipse.wst.sse.ui.StructuredTextEditor.selectAndReveal()


      IDocument document = textEditor.getDocumentProvider().getDocument(
          textEditor.getEditorInput());
      document.set(compiledTemplate.string);
      documentProvider.saveDocument(null, textEditor.getEditorInput(),
          document, true);
      textEditor.selectAndReveal(compiledTemplate.offset, 0);

      // set document dirty
      document.replace(0, 0, ""); //$NON-NLS-1$
    } catch (PartInitException e) {
      Logger.logException(e);
View Full Code Here


        String classAttributeStartString = "class=\"";
        int classAttributeStartIndex = newBeanTextContent.indexOf(classAttributeStartString)
            + classAttributeStartString.length();
        if (classAttributeStartIndex > 0) {
          int documentOffset = beanElementStartOffset + classAttributeStartIndex;
          structuredTextEditor.selectAndReveal(documentOffset, 0);
          currEditorPart.setFocus();
        }
      }
    }
  }
View Full Code Here

        String valueAttributeStartString = "value=\"";
        int valueAttributeStartIndex = propertyElementTextContent.indexOf(valueAttributeStartString)
            + valueAttributeStartString.length();
        if (valueAttributeStartIndex > 0) {
          int documentOffset = propertyElementStartOffset + valueAttributeStartIndex;
          structuredTextEditor.selectAndReveal(documentOffset, 0);
          currEditorPart.setFocus();
        }
      }
    }
  }
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.