Package org.drools.guvnor.client.perspectives

Examples of org.drools.guvnor.client.perspectives.PerspectiveFactory


    private MenuBar getMenu() {
        addNewServiceMenuItem();

        //We assume for every asset type, we always have a corresponding "New Asset" menu item for this type
        PerspectiveFactory perspectiveFactory = GWT.create(PerspectiveFactory.class);
        String[] formats = perspectiveFactory.getRegisteredAssetEditorFormats("soaservice");
        for(final String format:formats) {
            addNewAssetMenuItem(format);        
        }

        MenuBar rootMenuBar = new MenuBar( true );
View Full Code Here


    private MenuBar getMenu() {
        addNewServiceMenuItem();

        //We assume for every asset type, we always have a corresponding "New Asset" menu item for this type
        PerspectiveFactory perspectiveFactory = GWT.create(PerspectiveFactory.class);
        String[] formats = perspectiveFactory.getRegisteredAssetEditorFormats("soaservice");
        for(final String format:formats) {
            addNewAssetMenuItem(format);        
        }

        MenuBar rootMenuBar = new MenuBar( true );
View Full Code Here

                clientFactory.getPerspectivesPanelView()
        ).thenReturn(
                perspectivesPanelView
        );
       
        PerspectiveFactory perspectiveFactory = mock(PerspectiveFactory.class);
        when(
                clientFactory.getPerspectiveFactory()
        ).thenReturn(
                perspectiveFactory
        );
       
        when(
                perspectiveFactory.getRegisteredPerspectiveTypes()
        ).thenReturn(
                new String[]{"author", "runtime"}
               
        );
       
View Full Code Here

                clientFactory.getPerspectivesPanelView()
        ).thenReturn(
                view
        );

        PerspectiveFactory perspectiveFactory = mock(PerspectiveFactory.class);
        when(
                clientFactory.getPerspectiveFactory()
        ).thenReturn(
                perspectiveFactory
        );
       
        when(
                perspectiveFactory.getPerspective("author")
        ).thenReturn(
                new AuthorPerspective()
               
        );
       
        when(
                perspectiveFactory.getPerspective("runtime")
        ).thenReturn(
                new RunTimePerspective()
               
        );       
       
        when(
                perspectiveFactory.getRegisteredPerspectiveTypes()
        ).thenReturn(
                new String[]{"author", "runtime"}
               
        );
       
View Full Code Here

                clientFactory.getAssetEditorFactory()
        ).thenReturn(
                assetEditorFactory
        );
       
        PerspectiveFactory perspectiveFactory = mock( PerspectiveFactory.class );
        when(
                perspectiveFactory.getRegisteredAssetEditorFormats("package")
        ).thenReturn(
                new String[0]
        );

        NavigationViewFactory navigationViewFactory = mock( NavigationViewFactory.class );
View Full Code Here

        when(
                navigationViewFactory.getModuleTreeItemView() ).thenReturn(
                                                                            moduleTreeItemView
                );

        PerspectiveFactory perspectiveFactory = mock( PerspectiveFactory.class );
        when(
                clientFactory.getPerspectiveFactory() ).thenReturn(
                        perspectiveFactory
                );
        when(
                perspectiveFactory.getRegisteredAssetEditorFormats("package") ).thenReturn(
                                                                                   new String[0]
                );

        eventBus = mock( EventBus.class );
    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.perspectives.PerspectiveFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.