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 110242
Collapse All | Expand All

(-)html/nbproject/project.xml (+6 lines)
Lines 67-72 Link Here
67
                    </run-dependency>
67
                    </run-dependency>
68
                </dependency>
68
                </dependency>
69
                <dependency>
69
                <dependency>
70
                    <code-name-base>org.netbeans.modules.imagepaste</code-name-base>
71
                    <build-prerequisite/>
72
                    <compile-dependency/>
73
                    <run-dependency/>
74
                </dependency>
75
                <dependency>
70
                    <code-name-base>org.netbeans.modules.lexer</code-name-base>
76
                    <code-name-base>org.netbeans.modules.lexer</code-name-base>
71
                    <build-prerequisite/>
77
                    <build-prerequisite/>
72
                    <compile-dependency/>
78
                    <compile-dependency/>
(-)html/src/org/netbeans/modules/html/HtmlEditorSupport.java (+23 lines)
Lines 24-33 Link Here
24
import java.io.ObjectInput;
24
import java.io.ObjectInput;
25
import java.util.logging.Level;
25
import java.util.logging.Level;
26
import java.util.logging.Logger;
26
import java.util.logging.Logger;
27
import javax.swing.TransferHandler;
27
import javax.swing.text.EditorKit;
28
import javax.swing.text.EditorKit;
28
import javax.swing.text.StyledDocument;
29
import javax.swing.text.StyledDocument;
29
import javax.swing.text.BadLocationException;
30
import javax.swing.text.BadLocationException;
30
import org.netbeans.api.html.lexer.HTMLTokenId;
31
import org.netbeans.api.html.lexer.HTMLTokenId;
32
import org.netbeans.api.imagepaste.ImagePasteSupport;
31
import org.netbeans.api.lexer.Token;
33
import org.netbeans.api.lexer.Token;
32
import org.netbeans.api.lexer.TokenHierarchy;
34
import org.netbeans.api.lexer.TokenHierarchy;
33
import org.netbeans.api.lexer.TokenSequence;
35
import org.netbeans.api.lexer.TokenSequence;
Lines 88-93 Link Here
88
        }
90
        }
89
    };
91
    };
90
    
92
    
93
    private static final String IMG_TEMPLATE = "<img src=\"$FILENAME\" " +
94
            "alt=\"$TITLE\">";
95
    
96
    protected void initializeCloneableEditor(CloneableEditor editor) {
97
        try {
98
            super.initializeCloneableEditor(editor);
99
            TransferHandler handler = ImagePasteSupport.createTransferHandler(
100
                    editor.getEditorPane(), IMG_TEMPLATE);
101
            editor.getEditorPane().setTransferHandler(handler);
102
        } catch (IllegalStateException ise) {
103
            //Normal during restart if module has created a dataobject, then
104
            //immediately been unloaded and reloaded.  The editor toolbar
105
            //tries to get info from a node whose dataobject was destroyed
106
            //when the module was unloaded.  Bug is in the Ant Debugger module,
107
            //which is receiving property changes and not checking validity.
108
109
            //No worries about initialization not having completed - this
110
            //editor is going to be replaced completely anyway, it's being
111
            //initialized for nothing.
112
        }
113
    }
91
    
114
    
92
    /** Constructor. */
115
    /** Constructor. */
93
    HtmlEditorSupport(HtmlDataObject obj) {
116
    HtmlEditorSupport(HtmlDataObject obj) {
(-)nbbuild/cluster.properties (-1 / +1 lines)
Lines 183-188 Link Here
183
        ant/project,\
183
        ant/project,\
184
        apisupport/timers,\
184
        apisupport/timers,\
185
        classfile,\
185
        classfile,\
186
        contrib/imagepaste,\
186
        core/ide,\
187
        core/ide,\
187
        core/navigator,\
188
        core/navigator,\
188
        core/palette,\
189
        core/palette,\
Lines 797-803 Link Here
797
        contrib/genericnavigator,\
798
        contrib/genericnavigator,\
798
        contrib/htmlprojects,\
799
        contrib/htmlprojects,\
799
        contrib/insertunicode,\
800
        contrib/insertunicode,\
800
        contrib/imagepaste,\
801
        contrib/jalopy,\
801
        contrib/jalopy,\
802
        contrib/looks,\
802
        contrib/looks,\
803
        contrib/manifesteditor,\
803
        contrib/manifesteditor,\

Return to bug 110242