ISVNProperty property = svnResource.getSvnProperty("bugtraq:message"); ISVNProperty labelProperty = svnResource.getSvnProperty("bugtraq:label");
ISVNProperty property = null; ISVNProperty labelProperty = null; if (svnResource.isManaged()) { property = svnResource.getSvnProperty("bugtraq:message"); labelProperty = svnResource.getSvnProperty("bugtraq:label"); }
    public static ProjectProperties getProjectProperties(IResource resource) throws SVNException {        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);        ISVNProperty property = svnResource.getSvnProperty("bugtraq:message"); //$NON-NLS-1$        ISVNProperty labelProperty = svnResource.getSvnProperty("bugtraq:label"); //$NON-NLS-1$        if ((property != null) && (property.getValue() != null) && (property.getValue().trim().length() > 0)) {            ProjectProperties projectProperties = new ProjectProperties();            projectProperties.setMessage(property.getValue());            if ((labelProperty != null) && (labelProperty.getValue() != null) && (labelProperty.getValue().trim().length() != 0)) projectProperties.setLabel(labelProperty.getValue());            property = svnResource.getSvnProperty("bugtraq:url"); //$NON-NLS-1$            if (property != null) projectProperties.setUrl(property.getValue());             property = svnResource.getSvnProperty("bugtraq:number"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setNumber(property.getValue().equalsIgnoreCase("true")); //$NON-NLS-1$              property = svnResource.getSvnProperty("bugtraq:warnifnoissue"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setWarnIfNoIssue(property.getValue().equalsIgnoreCase("true")); //$NON-NLS-1$               property = svnResource.getSvnProperty("bugtraq:append"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setAppend(property.getValue().equalsIgnoreCase("true")); //$NON-NLS-1$                                               return projectProperties;                   }        IResource checkResource = resource;        while (checkResource.getParent() != null) {            checkResource = checkResource.getParent();            if (checkResource.getParent() == null) return null;            svnResource = SVNWorkspaceRoot.getSVNResourceFor(checkResource);            property = svnResource.getSvnProperty("bugtraq:message"); //$NON-NLS-1$            if (property != null) return getProjectProperties(checkResource);        }        return null;    }