WidgetDefinition widget = null;
if ( type == DashboardWidgetComponent.TYPE_DIAL ) {
// load the XML document that defines the dial
IActionSequenceResource resource =
new ActionSequenceResource( title, IActionSequenceResource.SOLUTION_FILE_RESOURCE, "text/xml", //$NON-NLS-1$
definitionPath );
Document dialDefinition = null;
try {
org.dom4j.io.SAXReader reader = new org.dom4j.io.SAXReader();
reader.setEntityResolver( new SolutionURIResolver() );
dialDefinition =
reader.read( resource.getInputStream( RepositoryFilePermission.READ, LocaleHelper.getLocale() ) );
} catch ( Throwable t ) {
// XML document can't be read. We'll just return a null document.
}
if ( dialDefinition == null ) {