congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PlaceManager.goTo
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.uberfire.client.mvp.PlaceManager.goTo (Showing top 20 results out of 792)

origin: org.kie.workbench.widgets/kie-wb-common-ui

  @Override
  public void execute() {
    placeManager.goTo("repositoryStructureScreen");
  }
}).endMenu().build().getItems().get(0);
origin: org.kie.workbench.widgets/kie-wb-common-ui

  @Override
  public void execute() {
    placeManager.goTo("CategoryManager");
  }
}).endMenu().build().getItems().get(0);
origin: org.guvnor/guvnor-structure-client

  @Override
  public void callback(final Map response) {
    if (isRegularFile(response)) {
      placeManager.goTo(path);
    }
  }
}).readAttributes(path);
origin: org.uberfire/uberfire-preferences-ui-client

  @Override
  public void execute() {
    placeManager.goTo(perspectiveIdentifierToGoBackTo);
  }
})
origin: org.dashbuilder/dashbuilder-navigation-client

void gotoPerspectiveCommand() {
  if (perspectiveId != null) {
    placeManager.goTo(perspectiveId);
  }
}
origin: org.kie.workbench.screens/kie-wb-common-workbench-client

@Inject
public AdminCustomMenuBuilder(final IconMenuItemPresenter menuItem,
               final PlaceManager placeManager) {
  this.menuItem = menuItem;
  menuItem.setup("fa fa-cog",
          DefaultWorkbenchConstants.INSTANCE.Admin(),
          () -> placeManager.goTo(PerspectiveIds.ADMIN));
}
origin: org.kie.workbench.screens/kie-wb-common-workbench-client

@Inject
public HelpCustomMenuBuilder(final IconMenuItemPresenter menuItem,
               final PlaceManager placeManager) {
  this.menuItem = menuItem;
  menuItem.setup("fa fa-question",
          DefaultWorkbenchConstants.INSTANCE.Help(),
          () -> placeManager.goTo(PerspectiveIds.ADMIN));
}
origin: org.kie.workbench.widgets/kie-wb-common-ui

  @Override
  public void onClick( ClickEvent event ) {
    final Set<T> selectedSet = selectionModel.getSelectedSet();
    for ( T selected : selectedSet ) {
      getPlaceManager().goTo( selected.getPath() );
    }
  }
} );
origin: org.kie.workbench.screens/kie-wb-common-project-editor-client

  @Override
  public void callback(final WorkspaceProject project) {
    NewWorkspaceProjectWizard.super.complete();
    invokeCallback(project);
    if (openEditor) {
      placeManager.goTo("ProjectSettings");
    }
    notificationEvent.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemCreatedSuccessfully()));
    busyIndicatorView.hideBusyIndicator();
  }
};
origin: org.kie.workbench.widgets/kie-wb-common-ui

  @Override
  public void callback(final Path path) {
    busyIndicatorView.hideBusyIndicator();
    presenter.complete();
    notifySuccess();
    newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path));
    placeManager.goTo(path);
  }
};
origin: org.uberfire/uberfire-preferences-ui-client

@Test
public void fireSaveEventWithoutAdminScreenToGoBackToTest() {
  actionsScreen.fireSaveEvent();
  verify(preSaveEvent).fire(any(PreferencesCentralPreSaveEvent.class));
  verify(saveEvent).fire(any(PreferencesCentralSaveEvent.class));
  verify(placeManager,
      never()).goTo(any(PlaceRequest.class));
}
origin: org.uberfire/uberfire-workbench-client

@Test
public void goToNoWhere() throws Exception {
  when(perspectiveActivity2.isDefault()).thenReturn(false);
  workbench.startIfNotBlocked();
  verify(placeManager,
      never()).goTo(any(PlaceRequest.class));
}
origin: org.uberfire/uberfire-workbench-client

@Test
public void setupHomeLinkWithNoDefaultPerspective() {
  doReturn(null).when(workbench).getHomePerspectiveActivity();
  doReturn(true).when(presenter).hasAccessToPerspective(any());
  presenter.setupHomeLink();
  ArgumentCaptor<Command> commandCaptor = ArgumentCaptor.forClass(Command.class);
  verify(view).setHomeLinkAction(commandCaptor.capture());
  verify(view).setBrandImageAction(commandCaptor.capture());
  commandCaptor.getValue().execute();
  verify(placeManager,
      never()).goTo(anyString());
}
origin: org.uberfire/uberfire-preferences-ui-client

@Test
public void fireSaveEventTest() {
  actionsScreen.initEvent(new PreferencesCentralActionsConfigurationEvent("screen",
                                      null));
  actionsScreen.fireSaveEvent();
  verify(preSaveEvent).fire(any(PreferencesCentralPreSaveEvent.class));
  verify(saveEvent).fire(any(PreferencesCentralSaveEvent.class));
  verify(placeManager).goTo(eq(new DefaultPlaceRequest(AdminPagePerspective.IDENTIFIER,
                             params)));
}
origin: org.jbpm/jbpm-wb-common-client

  private void verifyInitSelectorBasicViewInteractions() {

    ArgumentCaptor<Command> captureCommand = ArgumentCaptor.forClass(Command.class);
    verify(view).setOptionChangeCommand(captureCommand.capture());
    captureCommand.getValue().execute();
    verify(view).getSelectedOption();
    ArgumentCaptor<DefaultPlaceRequest> captureDefaultPlaceRequest = ArgumentCaptor.forClass(DefaultPlaceRequest.class);
    verify(placeManagerMock).goTo(captureDefaultPlaceRequest.capture());
    assertEquals(selected_Perspective,
           captureDefaultPlaceRequest.getValue().getIdentifier());

    verify(view).refresh();
  }
}
origin: org.dashbuilder/dashbuilder-dataset-editor

@Test
public void testNewDataSet() {
  presenter.newDataSet();
  verify(placeManager).tryClosePlace(eq(new DefaultPlaceRequest("DataSetDefWizard")), any(Command.class));
  verify(placeManager).goTo("DataSetDefWizard");
}

origin: org.uberfire/uberfire-preferences-ui-client

@Test
public void setupTest() {
  screen.setup();
  verify(placeManager).goTo(new DefaultPlaceRequest(PreferencesCentralNavBarScreen.IDENTIFIER),
               view.getNavbarContainer());
  verify(placeManager).goTo(new DefaultPlaceRequest(PreferencesCentralActionsScreen.IDENTIFIER),
               view.getActionsContainer());
}
origin: org.kie.workbench.screens/kie-wb-common-library-client

@Test
public void testOnSocialFileSelected_Module() {
  doReturn(mock(WorkspaceProject.class)).when(projectService).resolveProject(any(Path.class));
  doReturn(PlaceStatus.OPEN).when(placeManager).getStatus(LibraryPlaces.LIBRARY_PERSPECTIVE);
  final PlaceRequest libraryPerspective = libraryPlaces.getLibraryPlaceRequestWithoutRefresh();
  final SocialFileSelectedEvent event = new SocialFileSelectedEvent(ModuleEventType.NEW_MODULE.name(),
                                   null);
  libraryPlaces.onSocialFileSelected(event);
  verify(placeManager).goTo(libraryPerspective);
  verify(libraryPlaces).goToProject();
}
origin: org.kie.workbench.screens/kie-wb-common-library-client

@Test
public void goToTrySamplesTest() {
  final PlaceRequest trySamplesScreen = new DefaultPlaceRequest(LibraryPlaces.IMPORT_SAMPLE_PROJECTS_SCREEN);
  final PartDefinitionImpl part = new PartDefinitionImpl(trySamplesScreen);
  part.setSelectable(false);
  libraryPlaces.goToTrySamples();
  verify(libraryPlaces).closeAllPlacesOrNothing(any());
  verify(placeManager).goTo(eq(part),
               any(PanelDefinition.class));
  verify(libraryBreadcrumbs).setupForTrySamples(activeOrganizationalUnit);
}
origin: org.uberfire/uberfire-workbench-client

@Test
public void goToHomePerspective() throws Exception {
  when(authorizationPolicy.getHomePerspective(identity)).thenReturn("perspective1");
  workbench.startIfNotBlocked();
  verify(placeManager).goTo(new DefaultPlaceRequest(perspectiveActivity1.getIdentifier()));
}
org.uberfire.client.mvpPlaceManagergoTo

Javadoc

Locates the Activity associated with the given place, and if that activity is not already part of the workbench, starts it and adds its view to the given widget container. If the activity is already part of the current workbench, it will be selected, and it will not be moved from its current location.

The activity will be properly shut down in any of the following scenarios:

  1. by a call to one of the PlaceManager methods for closing a place: #closePlace(PlaceRequest), #closePlace(String), or #closeAllPlaces()
  2. by switching to another perspective, which has the side effect of closing all places
  3. by removing the activity's view from the DOM, either using the GWT Widget API, or by direct DOM manipulation.
  4. by opening another place on the same container.

Popular methods of PlaceManager

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

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JTextField (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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