/** * Reads the properties from the given storage and * returns it. * * @param javaProject the Java project * @param accessorClassReference the accessor class reference * @return the properties or <code>null</code> if it was not successfully read */ public static Properties getProperties(IJavaProject javaProject, AccessorClassReference accessorClassReference) { try { IStorage storage= NLSHintHelper.getResourceBundle(javaProject, accessorClassReference); return getProperties(storage); } catch (JavaModelException ex) { // sorry no properties return null; } }
/** * Reads the properties from the given storage and * returns it. * * @param javaProject the Java project * @param accessorClassReference the accessor class reference * @return the properties or <code>null</code> if it was not successfully read */ public static Properties getProperties(IJavaProject javaProject, AccessorClassReference accessorClassReference) { try { IStorage storage= NLSHintHelper.getResourceBundle(javaProject, accessorClassReference); return getProperties(storage); } catch (JavaModelException ex) { // sorry no properties return null; } }
/** * Reads the properties from the given storage and * returns it. * * @param javaProject the Java project * @param accessorClassReference the accessor class reference * @return the properties or <code>null</code> if it was not successfully read */ public static Properties getProperties(IJavaProject javaProject, AccessorClassReference accessorClassReference) { try { IStorage storage= NLSHintHelper.getResourceBundle(javaProject, accessorClassReference); return getProperties(storage); } catch (JavaModelException ex) { // sorry no properties return null; } }
props= NLSHintHelper.getProperties(project, accessClassRef);
props= NLSHintHelper.getProperties(project, accessClassRef);
props= NLSHintHelper.getProperties(project, accessClassRef);
Properties properties= NLSHintHelper.getProperties(propertiesFile); if (properties == null) return null;
Properties properties= null; try { properties= NLSHintHelper.getProperties(propertiesFile); } catch (IllegalArgumentException e) { return new NLSHoverControlInput(toHtml(propertiesFileName, JavaHoverMessages.NLSStringHover_NLSStringHover_PropertiesFileCouldNotBeReadWarning, e.getLocalizedMessage(), false),
Properties properties= null; try { properties= NLSHintHelper.getProperties(propertiesFile); } catch (IllegalArgumentException e) { return new NLSHoverControlInput(toHtml(propertiesFileName, JavaHoverMessages.NLSStringHover_NLSStringHover_PropertiesFileCouldNotBeReadWarning, e.getLocalizedMessage(), false),