public void dispose() { if (isdisposed == false) { PDEXMLHelper.Instance().recycleSAXParser(fParser); isdisposed = true; } }
/** * @param text * @param substituteChars * @return */ public static String translateWriteText(String text, HashMap substituteChars) { return translateWriteText(text, null, substituteChars); }
/** * @param project * @return */ public static String getJavaSourceLevel(IProject project) { return getJavaLevel(project, JavaCore.COMPILER_SOURCE); }
/** * Convenience method to delete the given file and any content (if the file is a * directory). Equivalent to calling {@link #deleteContent(File, IProgressMonitor)} * with <code>null</code> as the monitor. This operation cannot be undone. * * @param fileToDelete the file to delete */ public static void deleteContent(File fileToDelete) { deleteContent(fileToDelete, null); }
/** * */ public SAXParserWrapper() throws ParserConfigurationException, SAXException, FactoryConfigurationError { fParser = PDEXMLHelper.Instance().getDefaultSAXParser(); isdisposed = false; }
public void dispose() { if (isdisposed == false) { PDEXMLHelper.Instance().recycleDOMParser(fParser); isdisposed = true; } }
public String getWritableString(String source) { return PDEXMLHelper.getWritableString(source); } /*
/** * */ public DOMParserWrapper() throws ParserConfigurationException, FactoryConfigurationError { fParser = PDEXMLHelper.Instance().getDefaultDOMParser(); isdisposed = false; }
public static PDEXMLHelper Instance() throws FactoryConfigurationError { if (fPinstance == null) { fPinstance = new PDEXMLHelper(); } return fPinstance; }
public static XMLComponentRegistry Instance() { if (fPinstance == null) { fPinstance = new XMLComponentRegistry(); } return fPinstance; }
/** * Case-preserved keys. */ public synchronized Enumeration keys() { return new ArrayEnumeration(headers, size); }
@Override public String write() { return fName + "=\"" + //$NON-NLS-1$ PDEXMLHelper.getWritableAttributeString(fValue) + "\""; //$NON-NLS-1$ }
/** * @param tag */ public PDEPerfTesterUtil(String tag) { fTag = tag; reset(); }
/** * Support case-insensitivity for keys. * * @param key name. */ public synchronized Object get(Object key) { int i = -1; if ((i = getIndex(key)) != -1) return values[i]; return null; }
public void dispose() { if (isdisposed == false) { PDEXMLHelper.Instance().recycleSAXParser(fParser); isdisposed = true; } }
/** * */ public SAXParserWrapper() throws ParserConfigurationException, SAXException, FactoryConfigurationError { fParser = PDEXMLHelper.Instance().getDefaultSAXParser(); isdisposed = false; }
/** * @param project * @return */ public static String getJavaComplianceLevel(IProject project) { return getJavaLevel(project, JavaCore.COMPILER_COMPLIANCE); }
public static PDEXMLHelper Instance() throws FactoryConfigurationError { if (fPinstance == null) { fPinstance = new PDEXMLHelper(); } return fPinstance; }
public static XMLComponentRegistry Instance() { if (fPinstance == null) { fPinstance = new XMLComponentRegistry(); } return fPinstance; }
/** * Values. */ public synchronized Enumeration elements() { return new ArrayEnumeration(values, size); }