congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CopyOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
CopyOptions
in
org.eclipse.che.api.project.shared.dto

Best Java code snippets using org.eclipse.che.api.project.shared.dto.CopyOptions (Showing top 2 results out of 315)

origin: org.eclipse.che.core/che-core-api-project-shared

public CopyOptionsImpl(org.eclipse.che.api.project.shared.dto.CopyOptions origin) {
 this.name = origin.getName();
 this.overWrite = origin.getOverWrite();
}
origin: org.eclipse.che.core/che-core-ide-app

/**
 * Copies the {@code source} item to given {@code target} with {@code newName}.
 *
 * @param source the source path to be copied
 * @param target the target path, should be a container (project or folder)
 * @param newName the new name of the copied item
 * @param overwrite overwrite target is such has already exists
 * @return {@link Promise} with empty response
 * @see Path
 * @since 4.4.0
 */
public Promise<Void> copy(Path source, Path target, String newName, boolean overwrite) {
 final String url = getBaseUrl() + COPY + encodePath(source) + "?to=" + encodePath(target);
 final CopyOptions copyOptions = dtoFactory.createDto(CopyOptions.class);
 copyOptions.setName(newName);
 copyOptions.setOverWrite(overwrite);
 return reqFactory
   .createPostRequest(url, copyOptions)
   .loader(loaderFactory.newLoader("Copying..."))
   .send();
}
org.eclipse.che.api.project.shared.dtoCopyOptions

Most used methods

  • getName
    Get value of name attribute
  • getOverWrite
    Get value of overWrite attribute
  • setName
    Set value of name attribute
  • setOverWrite
    Set value of overWrite attribute

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getSystemService (Context)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now