Codota Logo
ProjectImporterData.getImporters
Code IndexAdd Codota to your IDE (free)

How to use
getImporters
method
in
org.eclipse.che.api.project.shared.dto.ProjectImporterData

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.eclipse.che.core/che-core-api-project-shared

public ProjectImporterDataImpl(org.eclipse.che.api.project.shared.dto.ProjectImporterData origin) {
 java.util.Map<java.lang.String, java.lang.String> configurationIn = origin.getConfiguration();
 if (configurationIn != null) {
  java.util.Map<java.lang.String, java.lang.String> configurationOut = new java.util.HashMap<java.lang.String, java.lang.String>();
  for (java.util.Map.Entry<String, java.lang.String> entry0 : configurationIn.entrySet()) {
   java.lang.String configurationIn_ = entry0.getValue();
    configurationOut.put(entry0.getKey(), configurationIn_);
  }
  this.configuration = configurationOut;
 }
 java.util.List<org.eclipse.che.api.project.shared.dto.ProjectImporterDescriptor> importersIn = origin.getImporters();
 if (importersIn != null) {
  java.util.List<org.eclipse.che.api.project.shared.dto.ProjectImporterDescriptor> importersOut = new java.util.ArrayList<org.eclipse.che.api.project.shared.dto.ProjectImporterDescriptor>();
  for (org.eclipse.che.api.project.shared.dto.ProjectImporterDescriptor importersIn_ : importersIn) {
    importersOut.add(importersIn_ == null ? null : new ProjectImporterDescriptorImpl(importersIn_));
  }
  this.importers = importersOut;
 }
}
origin: org.eclipse.che.core/che-core-ide-app

@Override
protected void onSuccess(ProjectImporterData data) {
 List<ProjectImporterDescriptor> result = data.getImporters();
 String defaultImporterId = data.getConfiguration().get(DEFAULT_PROJECT_IMPORTER);
 result.sort(getProjectImporterComparator(defaultImporterId));
 ProjectImporterDescriptor defaultImporter = null;
 for (ProjectImporterDescriptor importer : result) {
  if (importer.isInternal()
    || importer.getCategory() == null
    || !importWizardRegistry.getWizardRegistrar(importer.getId()).isPresent()) {
   continue;
  }
  if (importersByCategory.containsKey(importer.getCategory())) {
   importersByCategory.get(importer.getCategory()).add(importer);
  } else {
   Set<ProjectImporterDescriptor> importersSet = new LinkedHashSet<>();
   importersSet.add(importer);
   importersByCategory.put(importer.getCategory(), importersSet);
  }
  if (importer.getId().equals(defaultImporterId)) {
   defaultImporter = importer;
  }
 }
 setImporters(defaultImporter);
}
org.eclipse.che.api.project.shared.dtoProjectImporterDatagetImporters

Popular methods of ProjectImporterData

  • getConfiguration

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now