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

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

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

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

@PostConstruct
public void setup() {
  libraryBreadcrumbs.init(this);
  projectContext.addChangeHandler(this);
  placeManager.registerPerspectiveCloseChain(LIBRARY_PERSPECTIVE,
                        (chain, place) -> {
                          if (LIBRARY_PERSPECTIVE.equals(place.getIdentifier())) {
                            closeAllPlacesOrNothing(chain::execute);
                          } else {
                            closePlace(chain::execute,
                                 place);
                          }
                        });
}
org.uberfire.client.mvpPlaceManagerregisterPerspectiveCloseChain

Javadoc

Registers a callback interceptor that uses a chain approach to execute code before a PlaceRequest is closed, if the perspective passed as a parameter is currently opened. It will not be executed in the case of a forced close.

Popular methods of PlaceManager

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

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)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JCheckBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
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