Package org.eclipse.wst.sse.core.internal.provisional

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


    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

    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

      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

                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

  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

  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

  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();

      AttrImpl attrNode = (AttrImpl) ownerDocument.createAttribute(BeansSchemaConstants.ATTR_FACTORY_METHOD);
View Full Code Here

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

      NodeList childNodes = beanNode.getChildNodes();
      int numRemoved = 0;
      for (int i = childNodes.getLength() - 1; i >= 0; i--) {
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.