本文整理汇总了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;
}
示例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));
}
示例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;
}
示例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;
}
示例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();
}