Package org.eclipse.text.edits

Examples of org.eclipse.text.edits.TextEditGroup


     
      if (multiEdit.hasChildren()) {
        TextFileChange change = new TextFileChange("", file);
        change.setEdit(multiEdit);
        for (TextEdit e : multiEdit.getChildren()) {
          change.addTextEditGroup(new TextEditGroup("Rename " + descriptor.getType() + " reference", e));
        }
        return change;
      }
    }
    catch (IOException e) {
View Full Code Here


      }
      if (multiEdit.hasChildren()) {
        TextFileChange change = new TextFileChange("", file);
        change.setEdit(multiEdit);
        for (TextEdit e : multiEdit.getChildren()) {
          change.addTextEditGroup(new TextEditGroup("Rename class name", e));
        }
        return change;
      }
    }
    catch (IOException e) {
View Full Code Here

            changes.put( file, change );
          }
          ReplaceEdit edit = new ReplaceEdit( matchAccess.getMatchOffset(), matchAccess.getMatchLength(), RefactoringUtil.getNewFullyQualifiedName(
              renamedElement, getArguments().getNewName() ) );
          change.addEdit( edit );
          change.addTextEditGroup( new TextEditGroup( "Update type reference", edit ) ); //$NON-NLS-1$
          return true;
        }
      };
      TextSearchEngine.create().search( scope, collector, pattern, pm );
    }
View Full Code Here

            change.setEdit( new MultiTextEdit() );
            changes.put( file, change );
          }
          ReplaceEdit edit = new ReplaceEdit( matchAccess.getMatchOffset(), matchAccess.getMatchLength(), "" );
          change.addEdit( edit );
          change.addTextEditGroup( new TextEditGroup( "Remove type reference", edit ) ); //$NON-NLS-1$
          return true;
        }
      };
      TextSearchEngine.create().search( scope, collector, pattern, pm );
    }
View Full Code Here

          }
          // TODO destination
          ReplaceEdit edit = new ReplaceEdit( matchAccess.getMatchOffset(), matchAccess.getMatchLength(), RefactoringUtil.getNewDestinationFullyQualifiedName(
              renamedElement, getArguments().getDestination().toString() ) );
          change.addEdit( edit );
          change.addTextEditGroup( new TextEditGroup( "Update type reference", edit ) ); //$NON-NLS-1$
          return true;
        }
      };
      TextSearchEngine.create().search( scope, collector, pattern, pm );
    }
View Full Code Here

        }
        ReplaceEdit edit = new ReplaceEdit(
            matchAccess.getMatchOffset(),
            matchAccess.getMatchLength(), newFullyQualifiedName);
        change.addEdit(edit);
        change.addTextEditGroup(new TextEditGroup(
            "Update type reference", edit)); //$NON-NLS-1$
        return true;
      }
    };
    TextSearchEngine.create().search(scope, collector, pattern, pm);
View Full Code Here

          int index = content.indexOf("\"" + oldName + "\"");
          if (index >= 0) {
            ReplaceEdit edit = new ReplaceEdit(index + 1,
                oldName.length(), newName);
            change.addEdit(edit);
            change.addTextEditGroup(new TextEditGroup(
                "Update type reference", edit)); //$NON-NLS-1$
          }
        }
        return true;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.text.edits.TextEditGroup

Copyright © 2018 www.massapicom. 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.