Examples of aboutToChangeModel()


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

        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);
          removeOpenCloseComments(document, openCommentOffset + OPEN_COMMENT.length(), closeCommentOffset - openCommentOffset - CLOSE_COMMENT.length());
View Full Code Here

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

        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) {
              document.replace(openCommentOffset, OPEN_COMMENT.length(), ""); //$NON-NLS-1$
View Full Code Here

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

              SSEUIMessages.ToggleComment_label,
              SSEUIMessages.ToggleComment_description);

          // keeps listeners from doing anything until updates are all
          // done
          model.aboutToChangeModel();
          if (document instanceof IDocumentExtension4) {
            session = ((IDocumentExtension4) document)
                .startRewriteSession(DocumentRewriteSessionType.UNRESTRICTED);
          }
          changed = true;
View Full Code Here

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

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

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

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

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

        if (document instanceof IStructuredDocument) {
          IStructuredDocument sDoc = (IStructuredDocument) document;
          IStructuredDocumentRegion regionAtCharacterOffset = sDoc
              .getRegionAtCharacterOffset(selectionOffset);
View Full Code Here

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

    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.aboutToChangeModel()

                            SSEUIMessages.ToggleComment_label,
                            SSEUIMessages.ToggleComment_description);

                    // keeps listeners from doing anything until updates are all
                    // done
                    model.aboutToChangeModel();
                    if (document instanceof IDocumentExtension4) {
                        session = ((IDocumentExtension4) document)
                                .startRewriteSession(DocumentRewriteSessionType.UNRESTRICTED);
                    }
                    changed = true;
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.