Examples of beginRecording()


Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

  private void processAction(IDocument document, int selectionStartLine, int selectionEndLine) {
    IStructuredModel model = StructuredModelManager.getModelManager().getExistingModelForEdit(document);
    if (model != null) {
      try {
        model.beginRecording(this, XMLUIMessages.ToggleComment_tooltip);
        model.aboutToChangeModel();

        for (int i = selectionStartLine; i <= selectionEndLine; i++) {
          try {
            if (document.getLineLength(i) > 0) {
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

        if ((textSelection.getLength() == 0) && (selectionStartIndexedRegion instanceof CommentImpl)) {
          return;
        }

        model.beginRecording(this, XMLUIMessages.AddBlockComment_tooltip);
        model.aboutToChangeModel();

        try {
          document.replace(openCommentOffset, 0, OPEN_COMMENT);
          document.replace(closeCommentOffset, 0, CLOSE_COMMENT);
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

        }

        int openCommentOffset = selectionStartIndexedRegion.getStartOffset();
        int closeCommentOffset = selectionEndIndexedRegion.getEndOffset() - OPEN_COMMENT.length() - CLOSE_COMMENT.length();

        model.beginRecording(this, XMLUIMessages.RemoveBlockComment_tooltip);
        model.aboutToChangeModel();

        try {
          if (textSelection.getLength() == 0) {
            if (selectionStartIndexedRegion instanceof CommentImpl) {
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

        model = StructuredModelManager.getModelManager()
            .getModelForEdit(document);
        if (model != null) {
          // makes it so one undo will undo all the edits to the
          // document
          model.beginRecording(this,
              SSEUIMessages.ToggleComment_label,
              SSEUIMessages.ToggleComment_description);

          // keeps listeners from doing anything until updates are all
          // done
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

    IStructuredModel model = StructuredModelManager.getModelManager()
        .getExistingModelForEdit(document);
    if (model != null) {
      try {
        model.beginRecording(this,
            PHPUIMessages.AddBlockComment_tooltip);
        model.aboutToChangeModel();

        try {
          document.replace(closeCommentOffset, 0, CLOSE_COMMENT);
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

    IStructuredModel model = StructuredModelManager.getModelManager()
        .getExistingModelForEdit(document);
    if (model != null) {
      try {
        model.beginRecording(this,
            PHPUIMessages.RemoveBlockComment_tooltip);
        model.aboutToChangeModel();

        if (document instanceof IStructuredDocument) {
          IStructuredDocument sDoc = (IStructuredDocument) document;
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

      int selectionEndLine) {
    IStructuredModel model = StructuredModelManager.getModelManager()
        .getExistingModelForEdit(document);
    if (model != null) {
      try {
        model.beginRecording(this, PHPUIMessages.ToggleComment_tooltip);
        model.aboutToChangeModel();

        // The eclipse way is as follows:
        // If and only if all lines are commented - we should uncomment
        // else - comment all
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

                model = StructuredModelManager.getModelManager()
                        .getModelForEdit(document);
                if (model != null) {
                    // makes it so one undo will undo all the edits to the
                    // document
                    model.beginRecording(this,
                            SSEUIMessages.ToggleComment_label,
                            SSEUIMessages.ToggleComment_description);

                    // keeps listeners from doing anything until updates are all
                    // done
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

  public void applyQuickFix(IDocument document) {
    IStructuredModel model = null;
    try {
      if (document instanceof IStructuredDocument) {
        model = StructuredModelManager.getModelManager().getModelForEdit((IStructuredDocument) document);
        model.beginRecording(this);
      }

      Document ownerDocument = beanNode.getOwnerDocument();

      NodeList childNodes = beanNode.getChildNodes();
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.beginRecording()

  public void applyQuickFix(IDocument document) {
    IStructuredModel model = null;
    try {
      if (document instanceof IStructuredDocument) {
        model = StructuredModelManager.getModelManager().getModelForEdit((IStructuredDocument) document);
        model.beginRecording(this);
      }

      Document ownerDocument = beanNode.getOwnerDocument();

      NodeList childNodes = beanNode.getChildNodes();
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.