|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.tasklist.core; import org.openide.text.Line; import org.openide.text.Annotation; import org.openide.text.Annotatable; import org.netbeans.modules.tasklist.core.Task; import org.netbeans.modules.tasklist.core.TaskViewListener; import org.netbeans.modules.tasklist.core.TaskAnnotation; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeEvent; /** * Listener which when notified off changes in current task * updates the editor. Registered at the default lookup. * * @todo Create the view lazily so that it isn't shown until I actually * encounter a Task in the user's view * * @author Tor Norbye * @author Petr Kuzel */ public final class TaskEditorListener implements TaskViewListener, PropertyChangeListener { /** Annotation showing the current position */ transient private Annotation taskMarker = null; /** Construct a new TaskEditorListener. */ public TaskEditorListener() { deflt = this; } private static TaskEditorListener deflt = null; static TaskEditorListener getDefault() { return (deflt == null) ? new TaskEditorListener() : deflt; } /** * Show the given task. "Showing" means getting the editor to * show the associated file position, and open up an area in the * tasklist view where the details of the task can be fully read. * * @param item task to annotate (subject of |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.