/** * Distribution License: * BibleDesktop is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 2 as published by * the Free Software Foundation. This program is distributed in the hope * that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * The License is available on the internet at: * http://www.gnu.org/copyleft/gpl.html * or by writing to: * Free Software Foundation, Inc. * 59 Temple Place - Suite 330 * Boston, MA 02111-1307, USA * * Copyright: 2007 * The copyright to this program is held by it's authors. * * ID: $Id: org.eclipse.jdt.ui.prefs 1178 2006-11-06 12:48:02Z lanyjie $ */ package org.crosswire.bibledesktop.display.basic; import java.awt.event.MouseListener; import javax.swing.JEditorPane; import javax.swing.text.html.HTMLEditorKit; /** * * * @see gnu.gpl.License for license details. * The copyright to this program is held by it's authors. * @author Yingjie Lan [lanyjie at yahoo dot com] */ public class LazyHTMLEditorKit extends HTMLEditorKit { /** * Auto generated. */ private static final long serialVersionUID = 4673477549981614993L; private HTMLEditorKit.LinkController linkCtrl = null; /** * Called when the kit is being installed into the * a JEditorPane. * * @param c the JEditorPane */ public void install(JEditorPane c) { //c.addMouseListener(linkHandler); //c.addMouseMotionListener(linkHandler); super.install(c); MouseListener[] mls = c.getMouseListeners(); for(int i=0; i