Search in sources :

Example 1 with ImportProjectsSetupEvent

use of org.kie.workbench.common.screens.library.client.screens.importrepository.ImportProjectsSetupEvent in project kie-wb-common by kiegroup.

the class LibraryPlaces method goToExternalImportPresenter.

public void goToExternalImportPresenter(final Set<ImportProject> projects) {
    closeAllPlacesOrNothing(() -> {
        // TODO add title
        final DefaultPlaceRequest placeRequest = new DefaultPlaceRequest(LibraryPlaces.IMPORT_PROJECTS_SCREEN);
        final PartDefinitionImpl part = new PartDefinitionImpl(placeRequest);
        part.setSelectable(false);
        placeManager.goTo(part, libraryPerspective.getRootPanel());
        setupExternalImportBreadCrumbs();
        importProjectsSetupEvent.fire(new ImportProjectsSetupEvent(projects));
    });
}
Also used : PartDefinitionImpl(org.uberfire.workbench.model.impl.PartDefinitionImpl) ImportProjectsSetupEvent(org.kie.workbench.common.screens.library.client.screens.importrepository.ImportProjectsSetupEvent) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest)

Aggregations

ImportProjectsSetupEvent (org.kie.workbench.common.screens.library.client.screens.importrepository.ImportProjectsSetupEvent)1 DefaultPlaceRequest (org.uberfire.mvp.impl.DefaultPlaceRequest)1 PartDefinitionImpl (org.uberfire.workbench.model.impl.PartDefinitionImpl)1