Tabnine Logo
PlaceManager.forceCloseAllPlaces
Code IndexAdd Tabnine to your IDE (free)

How to use
forceCloseAllPlaces
method
in
org.uberfire.client.mvp.PlaceManager

Best Java code snippets using org.uberfire.client.mvp.PlaceManager.forceCloseAllPlaces (Showing top 3 results out of 315)

origin: org.kie.workbench.screens/kie-wb-common-library-client

@Test
public void goToSameProjectTest() {
  final WorkspaceProject project = new WorkspaceProject(activeOrganizationalUnit,
                             activeRepository,
                             activeBranch,
                             activeModule);
  libraryPlaces.goToProject(project);
  verify(projectContextChangeEvent,
      never()).fire(any(WorkspaceProjectContextChangeEvent.class));
  verify(placeManager,
      never()).forceCloseAllPlaces();
}
origin: org.kie.workbench.screens/kie-wb-common-library-client

@Test
public void closeAllPlacesOrNothingWithUncloseablePlacesTest() {
  final Command successCallback = mock(Command.class);
  final List<PlaceRequest> uncloseablePlaces = new ArrayList<>();
  uncloseablePlaces.add(mock(PlaceRequest.class));
  doReturn(uncloseablePlaces).when(placeManager).getUncloseablePlaces();
  libraryPlaces.closeAllPlacesOrNothing(successCallback);
  verify(placeManager,
      never()).forceCloseAllPlaces();
  verify(successCallback,
      never()).execute();
  verify(closeUnsavedProjectAssetsPopUpPresenter).show(eq(activeProject),
                             eq(uncloseablePlaces),
                             any(),
                             any());
}
origin: org.kie.workbench.screens/kie-wb-common-library-client

public void closeAllPlacesOrNothing(final Command successCallback) {
  closingLibraryPlaces = true;
  final List<PlaceRequest> uncloseablePlaces = placeManager.getUncloseablePlaces();
  if (uncloseablePlaces != null && uncloseablePlaces.isEmpty()) {
    placeManager.closeAllPlaces();
    closingLibraryPlaces = false;
    if (successCallback != null) {
      successCallback.execute();
    }
  } else {
    final Command newSuccessCallback = () -> {
      placeManager.forceCloseAllPlaces();
      closingLibraryPlaces = false;
      if (successCallback != null) {
        successCallback.execute();
      }
    };
    closeUnsavedProjectAssetsPopUpPresenter.show(getActiveWorkspace(),
                           uncloseablePlaces,
                           newSuccessCallback,
                           () -> placeManager.goTo(uncloseablePlaces.get(0)));
  }
}
org.uberfire.client.mvpPlaceManagerforceCloseAllPlaces

Popular methods of PlaceManager

  • goTo
  • closePlace
  • forceClosePlace
  • getStatus
  • tryClosePlace
  • closeAllPlaces
  • executeOnCloseCallbacks
  • executeOnOpenCallbacks
  • getActivity
  • registerOnOpenCallback
  • getOnOpenCallbacks
  • getUncloseablePlaces
  • getOnOpenCallbacks,
  • getUncloseablePlaces,
  • registerOnCloseCallback,
  • canClosePlace,
  • getActiveSplashScreens,
  • getCurrentPlaceRequest,
  • getOnCloseCallbacks,
  • registerPerspectiveCloseChain

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top PhpStorm plugins
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