本文整理了Java中org.uberfire.client.workbench.Workbench.removeStartupBlocker()
方法的一些代码示例,展示了Workbench.removeStartupBlocker()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workbench.removeStartupBlocker()
方法的具体详情如下:
包路径:org.uberfire.client.workbench.Workbench
类名称:Workbench
方法名:removeStartupBlocker
[英]Causes the given responsible party to no longer block workbench initialization. If the given responsible party was not already in the blocking set (either because it was never added, or it has already been removed) then the method call has no effect.
After removing the blocker, if there are no more blockers left in the blocking set, the workbench UI is bootstrapped immediately. If there are still one or more blockers left in the blocking set, the workbench UI remains uninitialized.
[中]使指定的责任方不再阻止工作台初始化。如果给定的责任方不在阻塞集中(因为它从未被添加,或者已经被删除),那么方法调用没有效果。
移除拦截器后,如果拦截器集中没有剩余拦截器,工作台UI将立即启动。如果阻塞集中还有一个或多个阻塞器,工作台UI将保持未初始化状态。
代码示例来源:origin: org.kie.uberfire/kie-uberfire-perspective-editor-client
@Override
public boolean error( Object o,
Throwable throwable ) {
workbench.removeStartupBlocker( PerspectiveEntryPoint.this.getClass() );
return false;
}
} ).loadAll();
代码示例来源:origin: org.kie.uberfire/kie-uberfire-perspective-editor-client
public void callback( List<PerspectiveEditor> editors ) {
for ( PerspectiveEditor editor : editors ) {
perspectiveEditorGenerator.generate( editor );
}
workbench.removeStartupBlocker( PerspectiveEntryPoint.this.getClass() );
}
}, new ErrorCallback<Object>() {
代码示例来源:origin: kiegroup/appformer
@AfterInitialization
private void afterInit() {
removeStartupBlocker(Workbench.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-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: org.kie/business-central-webapp
@Test
public void setupMenuTest() {
kieWorkbenchEntryPoint.setupMenu();
verify(menuBar).addMenus(any());
verify(menusHelper).addUtilitiesMenuItems();
verify(workbench).removeStartupBlocker(KieWorkbenchEntryPoint.class);
verify(workbenchProfileCssClassEvent).fire(any(WorkbenchProfileCssClass.class));
}
代码示例来源:origin: org.kie/kie-wb-monitoring-webapp
@Test
public void setupMenuTest() {
kieWorkbenchEntryPoint.setupMenu();
verify(menuBar).addMenus(any());
verify(menusHelper).addUtilitiesMenuItems();
verify(workbench).removeStartupBlocker(KieWorkbenchEntryPoint.class);
}
代码示例来源:origin: org.kie/kie-drools-wb-webapp
@Test
public void setupMenuTest() {
kieWorkbenchEntryPoint.setupMenu();
verify(menuBar).addMenus(any());
verify(menusHelper).addUtilitiesMenuItems();
verify(workbench).removeStartupBlocker(KieDroolsWorkbenchEntryPoint.class);
}
代码示例来源:origin: org.kie/kie-wb-webapp
@Test
public void setupMenuTest() {
kieWorkbenchEntryPoint.setupMenu();
verify(menuBar).addMenus(any());
verify(menusHelper).addUtilitiesMenuItems();
verify(workbench).removeStartupBlocker(KieWorkbenchEntryPoint.class);
}
代码示例来源:origin: kiegroup/appformer
@Override
public void callback(List<RuntimePlugin> plugins) {
try {
for (final RuntimePlugin p : plugins) {
if (isJSPlugin(p)) {
ScriptInjector.fromString(p.getPluginContent()).setWindow(ScriptInjector.TOP_WINDOW).inject();
} else if (isPerspectivePlugin(p)) {
perspectiveEditorGenerator.generatePerspective(p.getPluginContent());
}
}
} finally {
workbench.removeStartupBlocker(RuntimePluginStartup.class);
}
}
}).getRuntimePlugins();
代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client
@Override
public void callback(List<RuntimePlugin> plugins) {
try {
for (final RuntimePlugin p : plugins) {
if (isJSPlugin(p)) {
ScriptInjector.fromString(p.getPluginContent()).setWindow(ScriptInjector.TOP_WINDOW).inject();
} else if (isPerspectivePlugin(p)) {
perspectiveEditorGenerator.generatePerspective(p.getPluginContent());
}
}
} finally {
workbench.removeStartupBlocker(RuntimePluginStartup.class);
}
}
}).getRuntimePlugins();
内容来源于网络,如有侵权,请联系作者删除!