Tabnine Logo
PerspectiveManager.removePerspectiveStates
Code IndexAdd Tabnine to your IDE (free)

How to use
removePerspectiveStates
method
in
org.uberfire.client.mvp.PerspectiveManager

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

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

private void refreshPerspective() {
  final PerspectiveActivity currentPerspective = perspectiveManager.getCurrentPerspective();
  perspectiveManager.removePerspectiveStates( new org.uberfire.mvp.Command() {
    @Override
    public void execute() {
      if ( currentPerspective != null ) {
        final PlaceRequest pr = new ForcedPlaceRequest( currentPerspective.getIdentifier(),
                                currentPerspective.getPlace().getParameters() );
        placeManager.goTo( pr );
      }
    }
  } );
}
origin: org.kie.workbench.widgets/kie-wb-common-ui

  @Override
  public void onClick(ClickEvent event) {
    if (Window.confirm(CommonConstants.INSTANCE.PromptResetPerspectives())) {
      final PerspectiveActivity currentPerspective = perspectiveManager.getCurrentPerspective();
      perspectiveManager.removePerspectiveStates(new Command() {
        @Override
        public void execute() {
          if (currentPerspective != null) {
            //Use ForcedPlaceRequest to force re-loading of the current Perspective
            final PlaceRequest pr = new ForcedPlaceRequest(currentPerspective.getIdentifier(),
                                    currentPerspective.getPlace().getParameters());
            placeManager.goTo(pr);
          }
        }
      });
    }
  }
});
org.uberfire.client.mvpPerspectiveManagerremovePerspectiveStates

Javadoc

This method removes all persisted Perspective definitions. Subsequent requests for previously persisted perspectives should load the Perspective definition from the applicable object.

Popular methods of PerspectiveManager

  • getCurrentPerspective
  • savePerspectiveState
  • getCurrentPerspectivePlaceRequest
  • getLivePerspectiveDefinition
  • switchToPerspective
  • getDefaultPerspectiveIdentifier

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Option (scala)
  • 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