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.

View | Details | Raw Unified | Return to bug 209231
Collapse All | Expand All

(-)a/html.editor.lib/nbproject/project.xml (-8 lines)
Lines 111-124 Link Here
111
                    </run-dependency>
111
                    </run-dependency>
112
                </dependency>
112
                </dependency>
113
                <dependency>
113
                <dependency>
114
                    <code-name-base>org.openide.loaders</code-name-base>
115
                    <build-prerequisite/>
116
                    <compile-dependency/>
117
                    <run-dependency>
118
                        <specification-version>7.17</specification-version>
119
                    </run-dependency>
120
                </dependency>
121
                <dependency>
122
                    <code-name-base>org.openide.modules</code-name-base>
114
                    <code-name-base>org.openide.modules</code-name-base>
123
                    <build-prerequisite/>
115
                    <build-prerequisite/>
124
                    <compile-dependency/>
116
                    <compile-dependency/>
(-)a/html.editor.lib/src/org/netbeans/editor/ext/html/parser/api/HtmlSource.java (-5 / +1 lines)
Lines 47-53 Link Here
47
import org.netbeans.modules.parsing.api.Snapshot;
47
import org.netbeans.modules.parsing.api.Snapshot;
48
import org.openide.cookies.EditorCookie;
48
import org.openide.cookies.EditorCookie;
49
import org.openide.filesystems.FileObject;
49
import org.openide.filesystems.FileObject;
50
import org.openide.loaders.DataObject;
51
import org.openide.util.Exceptions;
50
import org.openide.util.Exceptions;
52
51
53
/**
52
/**
Lines 103-111 Link Here
103
102
104
    private void loadContentFromFileObject() {
103
    private void loadContentFromFileObject() {
105
        try {
104
        try {
106
            DataObject dobj = DataObject.find(sourceFileObject);
105
                EditorCookie cake = sourceFileObject.getLookup().lookup(EditorCookie.class);
107
            if (dobj != null) {
108
                EditorCookie cake = dobj.getCookie(EditorCookie.class);
109
                final Document doc = cake.openDocument();
106
                final Document doc = cake.openDocument();
110
                doc.render(new Runnable() {
107
                doc.render(new Runnable() {
111
                    @Override
108
                    @Override
Lines 117-123 Link Here
117
                        }
114
                        }
118
                    }
115
                    }
119
                });
116
                });
120
            }
121
        } catch (IOException ex) {
117
        } catch (IOException ex) {
122
            Exceptions.printStackTrace(ex);
118
            Exceptions.printStackTrace(ex);
123
        }
119
        }

Return to bug 209231