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

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

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

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.dtoProjectImporterDatagetConfiguration

Popular methods of ProjectImporterData

  • getImporters

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • String (java.lang)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collectors (java.util.stream)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTable (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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