本文整理了Java中org.uberfire.client.workbench.Workbench.addStartupBlocker()
方法的一些代码示例,展示了Workbench.addStartupBlocker()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.addStartupBlocker()
方法的具体详情如下:
包路径:org.uberfire.client.workbench.Workbench
类名称:Workbench
方法名:addStartupBlocker
[英]Requests that the workbench does not attempt to create any UI parts until the given responsible party has been removed as a startup blocker. Blockers are tracked as a set, so adding the same class more than once has no effect.
[中]
代码示例来源:origin: kiegroup/appformer
@PostConstruct
public void init() {
workbench.addStartupBlocker(RuntimePluginStartup.class);
}
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
@PostConstruct
public void init() {
workbench.addStartupBlocker(RuntimePluginStartup.class);
}
代码示例来源:origin: org.kie.uberfire/kie-uberfire-perspective-editor-client
@PostConstruct
public void init() {
workbench.addStartupBlocker( this.getClass() );
}
代码示例来源:origin: kiegroup/appformer
@PostConstruct
public void init() {
workbench.addStartupBlocker(JSEntryPoint.class);
runtimePluginsService.listFrameworksContent(new ParameterizedCommand<Collection<String>>() {
@Override
public void execute(final Collection<String> response) {
for (final String s : response) {
ScriptInjector.fromString(s).setWindow(TOP_WINDOW).inject();
}
runtimePluginsService.listPluginsContent(new ParameterizedCommand<Collection<String>>() {
@Override
public void execute(final Collection<String> response) {
try {
for (final String s : response) {
ScriptInjector.fromString(s).setWindow(TOP_WINDOW).inject();
}
} finally {
workbench.removeStartupBlocker(JSEntryPoint.class);
}
}
});
}
});
}
}
代码示例来源:origin: kiegroup/appformer
@PostConstruct
private void earlyInit() {
layout = layoutSelection.get();
WorkbenchResources.INSTANCE.CSS().ensureInjected();
Map<String, List<String>> windowParamMap = Window.Location.getParameterMap();
isStandaloneMode = windowParamMap.containsKey("standalone");
List<String> headers = windowParamMap.getOrDefault("header", Collections.emptyList());
headersToKeep.addAll(headers);
addStartupBlocker(Workbench.class);
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void shouldNotStartWhenBlocked() throws Exception {
verify(appReadyEvent,
never()).fire(any(ApplicationReadyEvent.class));
workbench.addStartupBlocker(WorkbenchStartupTest.class);
workbench.startIfNotBlocked();
verify(appReadyEvent,
never()).fire(any(ApplicationReadyEvent.class));
}
代码示例来源:origin: org.uberfire/uberfire-workbench-client
@Test
public void shouldStartWhenUnblocked() throws Exception {
workbench.addStartupBlocker(WorkbenchStartupTest.class);
workbench.removeStartupBlocker(WorkbenchStartupTest.class);
verify(appReadyEvent,
times(1)).fire(any(ApplicationReadyEvent.class));
}
代码示例来源:origin: kiegroup/appformer
@Test
public void shouldNotStartWhenBlocked() throws Exception {
verify(appReadyEvent,
never()).fire(any(ApplicationReadyEvent.class));
workbench.addStartupBlocker(WorkbenchStartupTest.class);
workbench.startIfNotBlocked();
verify(appReadyEvent,
never()).fire(any(ApplicationReadyEvent.class));
}
代码示例来源:origin: kiegroup/appformer
@Test
public void shouldStartWhenUnblocked() throws Exception {
workbench.addStartupBlocker(WorkbenchStartupTest.class);
workbench.removeStartupBlocker(WorkbenchStartupTest.class);
verify(appReadyEvent,
times(1)).fire(any(ApplicationReadyEvent.class));
}
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
@PostConstruct
public void init() {
WebAppResource.INSTANCE.CSS().ensureInjected();
workbench.addStartupBlocker(RuntimePluginsEntryPoint.class);
pluginServices.call(new RemoteCallback<Collection<RuntimePlugin>>() {
@Override
代码示例来源:origin: kiegroup/appformer
@PostConstruct
public void init() {
WebAppResource.INSTANCE.CSS().ensureInjected();
workbench.addStartupBlocker(RuntimePluginsEntryPoint.class);
pluginServices.call(new RemoteCallback<Collection<RuntimePlugin>>() {
@Override
代码示例来源:origin: org.kie/kie-wb-monitoring-webapp
@Test
public void initTest() {
kieWorkbenchEntryPoint.init();
verify(workbench).addStartupBlocker(KieWorkbenchEntryPoint.class);
verify(navTreeEditor).setMaxLevels(NavTreeDefinitions.GROUP_WORKBENCH,
2);
}
代码示例来源:origin: org.kie/kie-wb-webapp
@Test
public void initTest() {
kieWorkbenchEntryPoint.init();
verify(workbench).addStartupBlocker(KieWorkbenchEntryPoint.class);
verify(navTreeEditor).setMaxLevels(NavTreeDefinitions.GROUP_WORKBENCH, 2);
verify(navTreeEditor).setNewDividerEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setNewPerspectiveEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setOnlyRuntimePerspectives(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setPerspectiveContextEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
}
代码示例来源:origin: org.kie/business-central-webapp
@Test
public void initTest() {
kieWorkbenchEntryPoint.init();
verify(workbench).addStartupBlocker(KieWorkbenchEntryPoint.class);
verify(navTreeEditor).setMaxLevels(NavTreeDefinitions.GROUP_WORKBENCH, 2);
verify(navTreeEditor).setNewDividerEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setNewPerspectiveEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setOnlyRuntimePerspectives(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setPerspectiveContextEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
}
代码示例来源:origin: org.kie/kie-drools-wb-webapp
@Test
public void initTest() {
kieWorkbenchEntryPoint.init();
verify(workbench).addStartupBlocker(KieDroolsWorkbenchEntryPoint.class);
verify(navTreeEditor).setMaxLevels(NavTreeDefinitions.GROUP_WORKBENCH, 2);
verify(navTreeEditor).setNewDividerEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setNewPerspectiveEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setOnlyRuntimePerspectives(NavTreeDefinitions.GROUP_WORKBENCH, false);
verify(navTreeEditor).setPerspectiveContextEnabled(NavTreeDefinitions.GROUP_WORKBENCH, false);
}
内容来源于网络,如有侵权,请联系作者删除!