Search in sources :

Example 1 with DockPlaceHolderPlace

use of org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace in project kie-wb-common by kiegroup.

the class KieEditor method registerDock.

protected void registerDock(final String id, final IsWidget widget) {
    final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id);
    placeManager.registerOnOpenCallback(placeRequest, () -> {
        if (getDockPresenter(placeRequest).isPresent()) {
            getDockPresenter(placeRequest).get().setWidget(widget);
        }
    });
}
Also used : DockPlaceHolderPlace(org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace)

Example 2 with DockPlaceHolderPlace

use of org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace in project kie-wb-common by kiegroup.

the class TestReportingDocksHandler method provideDocks.

@Override
public Collection<UberfireDock> provideDocks(String perspectiveIdentifier) {
    List<UberfireDock> result = new ArrayList<>();
    testReportDock = new UberfireDock(UberfireDockPosition.EAST, "PLAY_CIRCLE", new DockPlaceHolderPlace(TEST_RUNNER_REPORTING_PANEL), perspectiveIdentifier);
    result.add(testReportDock.withSize(450).withLabel(DefaultWorkbenchConstants.INSTANCE.TestReport()));
    return result;
}
Also used : ArrayList(java.util.ArrayList) DockPlaceHolderPlace(org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace) UberfireDock(org.uberfire.client.workbench.docks.UberfireDock)

Example 3 with DockPlaceHolderPlace

use of org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace in project kie-wb-common by kiegroup.

the class KieMultipleDocumentEditor method registerDock.

protected void registerDock(final String id, final IsWidget widget) {
    final DockPlaceHolderPlace placeRequest = new DockPlaceHolderPlace(id);
    registerDock(placeRequest, widget);
}
Also used : DockPlaceHolderPlace(org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace)

Example 4 with DockPlaceHolderPlace

use of org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace in project drools-wb by kiegroup.

the class ScenarioSimulationBusinessCentralDocksHandler method provideDocks.

@Override
public Collection<UberfireDock> provideDocks(String perspectiveIdentifier) {
    Collection<UberfireDock> result = super.provideDocks(perspectiveIdentifier);
    testRunnerDock = new UberfireDock(UberfireDockPosition.EAST, "PLAY_CIRCLE", new DockPlaceHolderPlace(TEST_RUNNER_REPORTING_PANEL), perspectiveIdentifier);
    result.add(testRunnerDock.withSize(450).withLabel(ScenarioSimulationEditorConstants.INSTANCE.testReport()));
    coverageDock = new UberfireDock(UberfireDockPosition.EAST, "BAR_CHART", new DefaultPlaceRequest(CoverageReportPresenter.IDENTIFIER), perspectiveIdentifier);
    result.add(coverageDock.withSize(450).withLabel(ScenarioSimulationEditorConstants.INSTANCE.coverageReport()));
    return result;
}
Also used : DockPlaceHolderPlace(org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace) UberfireDock(org.uberfire.client.workbench.docks.UberfireDock) DefaultPlaceRequest(org.uberfire.mvp.impl.DefaultPlaceRequest)

Example 5 with DockPlaceHolderPlace

use of org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace in project drools-wb by kiegroup.

the class GuidedDecisionTableDocksHandler method provideDocks.

@Override
public Collection<UberfireDock> provideDocks(final String perspectiveIdentifier) {
    final List<UberfireDock> result = new ArrayList<>();
    verifierReportDock = new UberfireDock(UberfireDockPosition.EAST, "PLAY_CIRCLE", new DockPlaceHolderPlace(AnalysisDockPlaceHolder.IDENTIFIER, VERIFIER_DOCK), perspectiveIdentifier);
    result.add(verifierReportDock.withSize(450).withLabel(AnalysisConstants.INSTANCE.Analysis()));
    return result;
}
Also used : ArrayList(java.util.ArrayList) DockPlaceHolderPlace(org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace) UberfireDock(org.uberfire.client.workbench.docks.UberfireDock)

Aggregations

DockPlaceHolderPlace (org.kie.workbench.common.widgets.client.docks.DockPlaceHolderPlace)5 UberfireDock (org.uberfire.client.workbench.docks.UberfireDock)3 ArrayList (java.util.ArrayList)2 DefaultPlaceRequest (org.uberfire.mvp.impl.DefaultPlaceRequest)1