Examples of HelpManagerUsingFiles


Examples of org.apache.isis.core.metamodel.facetdecorator.help.file.internal.HelpManagerUsingFiles

        super(FacetDecoratorInstaller.TYPE, "help-file");
    }

    @Override
    public List<FacetDecorator> createDecorators() {
        final HelpManagerUsingFiles manager = new HelpManagerUsingFiles(getConfiguration());
        return Arrays.<FacetDecorator> asList(new HelpFacetDecoratorUsingHelpManager(manager));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facetdecorators.help.file.internal.HelpManagerUsingFiles

        super(FacetDecoratorInstaller.TYPE, "help-file");
    }

    @Override
    public List<FacetDecorator> createDecorators() {
        final HelpManagerUsingFiles manager = new HelpManagerUsingFiles(getConfiguration());
        return Arrays.<FacetDecorator> asList(new HelpFacetDecoratorUsingHelpManager(manager));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facetdecorators.help.file.internal.HelpManagerUsingFiles

        assertEquals("", s);
    }

    public void testMessageForFileError() {
        final Identifier identifier = Identifier.propertyOrCollectionIdentifier("cls", "fld2");
        final HelpManagerUsingFiles manager = new HelpManagerUsingFiles(new IsisConfigurationDefault()) {
            @Override
            protected BufferedReader getReader() throws FileNotFoundException {
                throw new FileNotFoundException("not found");
            }
        };
        final String s = manager.getHelpText(identifier);
        assertEquals("Failure opening help file: not found", s);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.