This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.dialogs</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.14</specification-version>
<code-name-base>org.openide.filesystems</code-name-base>
}
/** This method returns an image, which is displayed for the FileObject in the explorer.
* @param doc This is the documet, in which the icon will be used (for exmaple for completion).
* @param doc This is the document, in which the icon will be used (for example for completion).
* @param fo file object for which the icon is looking for
* @return an Image which is dislayed in the explorer for the file.
*/
return null;
/** returns top most joined html token seuence for the document at the specified offset. */
/** returns top most joined html token sequence for the document at the specified offset. */
public static TokenSequence<HTMLTokenId> getJoinedHtmlSequence(Document doc, int offset) {
TokenHierarchy th = TokenHierarchy.get(doc);
TokenSequence ts = th.tokenSequence();
<folder name="html">
<folder name="CodeGenerators">
<file name="org-netbeans-modules-html-editor-codegen-LoremIpsumGenerator$Factory.instance">
<attr name="position" intvalue="100"/>
</file>
</folder>
<file name="org-netbeans-modules-html-editor-HtmlCaretAwareSourceTask$Factory.instance">
<attr name="instanceOf" stringvalue="org.netbeans.modules.parsing.spi.TaskFactory"/>
<file name="format">
<attr name="position" intvalue="1400"/>
<file name="generate-code">
<attr name="position" intvalue="1480"/>
<file name="SeparatorAfterFormat.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="1666"/>
public class Utils {
public static String readFileContentToString(File file) throws IOException {
StringBuffer buff = new StringBuffer();
StringBuilder buff = new StringBuilder();
BufferedReader rdr = new BufferedReader(new FileReader(file));
try{
while ((line = rdr.readLine()) != null){
buff.append(line + "\n");
buff.append(line).append("\n");
} finally{
rdr.close();