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

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

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

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

Popular methods of PlaceManager

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
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