Examples of rename()


Examples of org.drools.workbench.screens.dtablexls.service.DecisionTableXLSService.rename()

        drlTextEditorService.copy(makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/rule1.drl"), "copiedFromRule1.drl", "copied");       
        URL testUrl = this.getClass().getResource( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl" );
        assertNotNull(testUrl);
       
        //Rename
        drlTextEditorService.rename(makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/copiedFromRule1.drl"), "renamedFromRule1.drl", "renamed");       
        testUrl = this.getClass().getResource( "/ProjectStructureValid/src/main/resources/org/kie/test/renamedFromRule1.drl" );
        assertNotNull(testUrl);
       
        //Delete
        drlTextEditorService.delete(makePath( "/ProjectStructureValid/src/main/resources/org/kie/test/renamedFromRule1.drl"), "deleted");

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.rename()

    try {
      String initialValue = node.getLaunchConfiguration().getName();
      InputDialog dialog = openInputDialog(Message_rename, Message_renameLaunchConfiguration, initialValue, new LaunchConfigurationNameValidator(initialValue));
      if (dialog.getReturnCode() == Window.OK) {
        ILaunchConfigurationWorkingCopy workingCopy = node.getLaunchConfiguration().getWorkingCopy();
        workingCopy.rename(dialog.getValue().trim());
        workingCopy.doSave();
      }
    } catch (CoreException e) {
      openErrorDialog(Message_error, e.getMessage());
    }

Examples of org.eclipse.dltk.internal.corext.refactoring.rename.RenameModifications.rename()

  @Override
  protected RenameModifications computeRenameModifications()
      throws CoreException {
    RenameModifications result = new RenameModifications();
    if (modelElement instanceof ILocalVariable) {
      result.rename((ILocalVariable)modelElement, new RenameArguments(getNewElementName(), getUpdateReferences()));
    } else if (modelElement instanceof IField) {
      // TODO: add switching method in RenameModifications
      result.rename((IField)modelElement, new RenameArguments(getNewElementName(), getUpdateReferences()));
    }

Examples of org.eclipse.jdt.core.IMethod.rename()

        "pack1.SimpleBean");
    IMethod[] methods = type.getMethods();
    for (int i = 0; i < methods.length; i++) {
      IMethod method = methods[i];
      if ("setStuff".equals(method.getElementName())) {
        method.rename("setStuf", false, null);
      }
    }
  }

  public void testValidationErrors() throws Exception {

Examples of org.eclipse.jgit.lib.RefRename.rename()

      if (!Repository.isValidRefName(fullNewName))
        throw new InvalidRefNameException(MessageFormat.format(JGitText
            .get().branchNameInvalid, fullNewName));

      RefRename rename = repo.renameRef(fullOldName, fullNewName);
      Result renameResult = rename.rename();

      setCallable(false);

      boolean ok = Result.RENAMED == renameResult;

Examples of org.geowebcache.storage.blobstore.file.FileBlobStore.rename()

        listener.layerRenamed(EasyMock.eq(layerName), EasyMock.eq(newLayerName));
        EasyMock.replay(listener);

        fbs.addListener(listener);

        boolean renamed = fbs.rename(layerName, newLayerName);
        assertTrue(renamed);

        EasyMock.verify(listener);

        try {

Examples of org.gephi.filters.api.FilterController.rename()

                    NbBundle.getMessage(QueryNode.class, "QueryNode.actions.rename.title"));
            question.setInputText(query.getName());
            if (DialogDisplayer.getDefault().notify(question) == NotifyDescriptor.OK_OPTION) {
                String input = question.getInputText();
                if (input != null && !input.isEmpty()) {
                    filterController.rename(query, input);
                }
            }
        }
    }

Examples of org.getspout.spoutapi.inventory.ItemMap.rename()

      if ((new File(worldFolder, "spout_meta/worldItemMap.txt")).exists()) {
        World world = Bukkit.getWorld(worldFolder.getName());
        if (world != null) {
          ItemMap worldItemMap = SpoutManager.getChunkDataManager().getItemMap(world);
          if (worldItemMap != null) {
            worldItemMap.rename(fullOldKey, fullNewKey);
            continue;
          }
        }
        FlatFileStore<Integer> fs = new FlatFileStore<Integer>(new File(worldFolder, "spout_meta/worldItemMap.txt"), Integer.class);
        fs.load();

Examples of org.gradle.api.tasks.bundling.Zip.rename()

            inst.from(delayedFile(PAULSCODE_LISCENCE1));
            inst.from(delayedFile(PAULSCODE_LISCENCE2));
            inst.from(delayedFile(FORGE_LOGO));
            inst.from(delayedZipTree(INSTALLER_BASE), new CopyInto("", "!*.json", "!*.png"));
            inst.dependsOn("packageUniversal", "downloadBaseInstaller", "generateInstallJson");
            inst.rename("forge_logo\\.png", "big_logo.png");
            inst.setExtension("jar");
        }
        project.getArtifacts().add("archives", inst);

        final Zip patchZipFML = makeTask("zipFmlPatches", Zip.class);

Examples of org.h2.store.fs.FileSystem.rename()

        String trace = getBaseDir() + "/toolsConvertTraceFile.trace.db";
        assertTrue(fs.exists(trace));
        String newTrace = getBaseDir() + "/test.trace.db";
        fs.delete(newTrace);
        assertFalse(fs.exists(newTrace));
        fs.rename(trace, newTrace);
        deleteDb("toolsConvertTraceFile");
        Player.main(getBaseDir() + "/test.trace.db");
        testTraceFile(url);

        deleteDb("toolsConvertTraceFile");
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.