本文整理匯總了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();
}