當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。