当前位置: 首页>>代码示例>>Java>>正文


Java ClientTypeRegistry类代码示例

本文整理汇总了Java中org.uberfire.client.workbench.type.ClientTypeRegistry的典型用法代码示例。如果您正苦于以下问题:Java ClientTypeRegistry类的具体用法?Java ClientTypeRegistry怎么用?Java ClientTypeRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ClientTypeRegistry类属于org.uberfire.client.workbench.type包,在下文中一共展示了ClientTypeRegistry类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PluginsInfo

import org.uberfire.client.workbench.type.ClientTypeRegistry; //导入依赖的package包/类
@Inject
public PluginsInfo(EditorPluginResourceType editorPluginResourceType,
                   PerspectiveLayoutPluginResourceType perspectiveLayoutPluginResourceType,
                   ScreenPluginResourceType screenPluginResourceType,
                   SplashPluginResourceType splashPluginResourceType,
                   DynamicMenuResourceType dynamicMenuResourceType,
                   ActivityBeansInfo activityBeansInfo,
                   ClientTypeRegistry clientTypeRegistry) {
    this.editorPluginResourceType = editorPluginResourceType;
    this.perspectiveLayoutPluginResourceType = perspectiveLayoutPluginResourceType;
    this.screenPluginResourceType = screenPluginResourceType;
    this.splashPluginResourceType = splashPluginResourceType;
    this.dynamicMenuResourceType = dynamicMenuResourceType;
    this.activityBeansInfo = activityBeansInfo;
    this.clientTypeRegistry = clientTypeRegistry;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:17,代码来源:PluginsInfo.java

示例2: setup

import org.uberfire.client.workbench.type.ClientTypeRegistry; //导入依赖的package包/类
@Before
public void setup() {

    editorPluginResourceType = mock(EditorPluginResourceType.class);
    perspectiveLayoutPluginResourceType = mock(PerspectiveLayoutPluginResourceType.class);
    screenPluginResourceType = mock(ScreenPluginResourceType.class);
    splashPluginResourceType = mock(SplashPluginResourceType.class);
    dynamicMenuResourceType = mock(DynamicMenuResourceType.class);
    activityBeansInfo = mock(ActivityBeansInfo.class);
    clientTypeRegistry = mock(ClientTypeRegistry.class);

    when(activityBeansInfo.getAvailableWorkbenchEditorsIds()).thenReturn(Arrays.asList(new String[]{"editorId1"}));
    when(activityBeansInfo.getAvailablePerspectivesIds()).thenReturn(Arrays.asList(new String[]{"perspectiveId1", "perspectiveId2"}));
    when(activityBeansInfo.getAvailableWorkbenchScreensIds()).thenReturn(Arrays.asList(new String[]{"screenId1", "screenId2", "screenId3"}));
    when(activityBeansInfo.getAvailableSplashScreensIds()).thenReturn(Arrays.asList(new String[]{"splashScreenId1", "splashScreenId2", "splashScreenId3", "splashScreenId4"}));

    when(clientTypeRegistry.resolve(any(Path.class))).thenReturn(dynamicMenuResourceType);

    pluginsInfo = spy(new PluginsInfo(editorPluginResourceType,
                                      perspectiveLayoutPluginResourceType,
                                      screenPluginResourceType,
                                      splashPluginResourceType,
                                      dynamicMenuResourceType,
                                      activityBeansInfo,
                                      clientTypeRegistry));
    doReturn(Collections.emptyList()).when(pluginsInfo).lookupBeans(any(Class.class));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:28,代码来源:PluginsInfoTest.java

示例3: PerspectivePluginManager

import org.uberfire.client.workbench.type.ClientTypeRegistry; //导入依赖的package包/类
@Inject
public PerspectivePluginManager(ClientTypeRegistry clientTypeRegistry,
                                LayoutGenerator layoutGenerator,
                                NavigationManager navigationManager,
                                Caller<PerspectivePluginServices> pluginServices,
                                Event<PerspectivePluginsChangedEvent> perspectivesChangedEvent) {
    this.clientTypeRegistry = clientTypeRegistry;
    this.layoutGenerator = layoutGenerator;
    this.navigationManager = navigationManager;
    this.pluginServices = pluginServices;
    this.perspectivesChangedEvent = perspectivesChangedEvent;
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:13,代码来源:PerspectivePluginManager.java

示例4: OverviewWidgetPresenter

import org.uberfire.client.workbench.type.ClientTypeRegistry; //导入依赖的package包/类
@Inject
public OverviewWidgetPresenter(
        final ClientTypeRegistry clientTypeRegistry,
        final OverviewScreenView view) {
    this.view = view;

    view.setPresenter(this);
    
    this.clientTypeRegistry = clientTypeRegistry;
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:11,代码来源:OverviewWidgetPresenter.java

示例5: setUp

import org.uberfire.client.workbench.type.ClientTypeRegistry; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    ClientTypeRegistry clientTypeRegistry = mock(ClientTypeRegistry.class);
    view = mock(OverviewScreenView.class);

    editor = new OverviewWidgetPresenter(
            clientTypeRegistry,
            view);
    editor.user = new UserImpl("");
    presenter = editor;

    overview = new Overview();
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:14,代码来源:OverviewWidgetPresenterTest.java


注:本文中的org.uberfire.client.workbench.type.ClientTypeRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。