Package org.drools.guvnor.server.util

Examples of org.drools.guvnor.server.util.PerspectiveConfigurationParser


public class PerspectiveConfigurationParserTest {

    @Test
    public void testReadConfig() throws Exception {
        InputStream in = this.getClass().getResourceAsStream("/org/drools/guvnor/gwtutil/perspective.xml");
        PerspectiveConfigurationParser a = new PerspectiveConfigurationParser(in);
    List<ModuleEditorConfiguration> configList = a.getModuleEditors();

        assertEquals(2, configList.size());
        boolean foundPackageModuleEditor = false;
        boolean foundSOAServiceModuleEditor = false;
        for(ModuleEditorConfiguration config:configList) {
View Full Code Here


                Class perspectiveClass = Class.forName(getPerspectiveClassName(perspectiveType));

                InputStream in = perspectiveClass.getResourceAsStream("perspective.xml");
                // REVISIT: can a perspective have no perspective configuration file, eg, the runtime perspective?
                if (in != null) {
                    PerspectiveConfigurationParser parser = new PerspectiveConfigurationParser(in);
                    List<ModuleEditorConfiguration> moduleEditors = parser.getModuleEditors();
                    moduleEditorConfigurations.put(perspectiveType, moduleEditors);
                }
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
View Full Code Here

                Class perspectiveClass = Class.forName(getPerspectiveClassName(perspectiveType));

                InputStream in = perspectiveClass.getResourceAsStream("perspective.xml");
                // REVISIT: can a perspective have no perspective configuration file, eg, the runtime perspective?
                if (in != null) {
                    PerspectiveConfigurationParser parser = new PerspectiveConfigurationParser(in);
                    List<ModuleEditorConfiguration> moduleEditors = parser.getModuleEditors();
                    moduleEditorConfigurations.put(perspectiveType, moduleEditors);
                }
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
View Full Code Here

        for(String perspectiveType : registeredPerspectiveTypes) {
            Perspective p = getPerspective(perspectiveType);
            InputStream in = p.getClass().getResourceAsStream("perspective.xml");
            //REVISIT: can a perspective have no perspective configuration file, eg, the runtime perspective?
            if(in != null) {
                PerspectiveConfigurationParser parser = new PerspectiveConfigurationParser(in);
                List<ModuleEditorConfiguration> moduleEditors = parser.getModuleEditors();
                moduleEditorConfigurations.put(perspectiveType, moduleEditors);
            }
        }
       
      return moduleEditorConfigurations;
View Full Code Here

public class PerspectiveConfigurationParserTest {

    @Test
    public void testReadConfig() throws Exception {
        InputStream in = this.getClass().getResourceAsStream("/perspective.xml");
        PerspectiveConfigurationParser a = new PerspectiveConfigurationParser(in);
    List<ModuleEditorConfiguration> configList = a.getModuleEditors();

        assertEquals(2, configList.size());
        boolean foundPackageModuleEditor = false;
        boolean foundSOAServiceModuleEditor = false;
        for(ModuleEditorConfiguration config:configList) {
View Full Code Here

TOP

Related Classes of org.drools.guvnor.server.util.PerspectiveConfigurationParser

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.