Tabnine Logo
Arrays
Code IndexAdd Tabnine to your IDE (free)

How to use
Arrays
in
org.eclipse.che.ide.util

Best Java code snippets using org.eclipse.che.ide.util.Arrays (Showing top 6 results out of 315)

origin: org.eclipse.che.core/che-core-ide-app

/** {@inheritDoc} */
@Override
public boolean deleteAllMarkers() {
 if (Arrays.isNullOrEmpty(markers)) {
  return false;
 }
 markers = new Marker[0];
 return true;
}
origin: org.eclipse.che.core/che-core-ide-app

/** {@inheritDoc} */
@Override
public boolean deleteMarker(String type) {
 checkArgument(!isNullOrEmpty(type), "Invalid marker type occurred");
 int index = -1;
 for (int i = 0; i < markers.length; i++) {
  Marker marker = markers[i];
  if (marker.getType().equals(type)) {
   index = i;
   markers = remove(markers, marker);
   resourceManager.notifyMarkerChanged(this, marker, REMOVED);
   break;
  }
 }
 return index != -1;
}
origin: org.eclipse.che.core/che-core-ide-app

Resource[] outdated = descendants.get();
final Resource[] removed = removeAll(outdated, reloaded, false);
for (Resource resource : removed) {
 store.dispose(resource.getLocation(), false);
    .filter(resource -> contains(outdated, resource))
    .toArray(Resource[]::new);
for (Resource resource : updated) {
   store.getResource(resource.getLocation());
 if (registered.isPresent()) {
  result = Arrays.add(result, registered.get());
final Resource[] added = removeAll(reloaded, outdated, false);
for (Resource resource : added) {
 store.register(resource);
   store.getResource(resource.getLocation());
 if (registered.isPresent()) {
  result = Arrays.add(result, registered.get());
   store.getResource(resource.getLocation());
 if (registered.isPresent()) {
  result = Arrays.add(result, registered.get());
origin: org.eclipse.che.plugin/che-plugin-git-ext-git

indexedFiles = add(indexedFiles, wrap(path));
indexedFiles = add(indexedFiles, wrap(path));
indexedFiles = add(indexedFiles, wrap(path));
origin: org.eclipse.che.plugin/che-plugin-git-ext-git

for (IndexFile file : indexedFiles) {
 if (!file.isIndexed()) {
  paths = add(paths, Path.valueOf(file.getPath()));
origin: org.eclipse.che.plugin/che-plugin-git-ext-git

/** {@inheritDoc} */
@Override
public void onRemoveClicked() {
 final GitOutputConsole console = gitOutputConsoleFactory.create(REMOVE_FROM_INDEX_COMMAND_NAME);
 final Resource[] resources = appContext.getResources();
 checkState(!isNullOrEmpty(resources));
 service
   .remove(project.getLocation(), toRelativePaths(resources), view.isRemoved())
   .then(
     ignored -> {
      console.print(constant.removeFilesSuccessful());
      consolesPanelPresenter.addCommandOutput(console);
      notificationManager.notify(constant.removeFilesSuccessful());
     })
   .catchError(
     error -> {
      handleError(error.getCause(), console);
      consolesPanelPresenter.addCommandOutput(console);
     });
 view.close();
}
org.eclipse.che.ide.utilArrays

Most used methods

  • add
  • isNullOrEmpty
  • contains
  • remove
  • removeAll

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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