@Override public String toString(final IResourceReference resourceReference) { return ResourceReferenceUtilities.toString(resourceReference); }
@Override public String toString(final IResourceReference resourceReference) { return ResourceReferenceUtilities.toString(resourceReference); }
private byte[] read(final IResourceReference resourceReference) { if (resourceReference == null) { final String message = "Error loading text resource, resource value is not defined"; //$NON-NLS-1$ logger.log(ILevel.ERROR, message); throw new RuntimeException(message); } try (InputStream input = this.resourceReferenceHandler.openInputStream(resourceReference);) { return read(input); } catch (final Exception e) { final String message = MessageFormat .format("Error loading text resource ''{0}''", ResourceReferenceUtilities.toString(resourceReference)); //$NON-NLS-1$ logger.log(ILevel.ERROR, message, e); throw new RuntimeException(message, e); } }
private byte[] read(final IResourceReference resourceReference) { if (resourceReference == null) { final String message = "Error loading text resource, resource value is not defined"; //$NON-NLS-1$ logger.log(ILevel.ERROR, message); throw new RuntimeException(message); } try (InputStream input = this.resourceReferenceHandler.openInputStream(resourceReference);) { return read(input); } catch (final Exception e) { final String message = MessageFormat .format("Error loading text resource ''{0}''", ResourceReferenceUtilities.toString(resourceReference)); //$NON-NLS-1$ logger.log(ILevel.ERROR, message, e); throw new RuntimeException(message, e); } }