public abstract class AbstractFavoritesListProvider<T> extends java.lang.Object implements FavoritesListProvider
Modifier and Type | Field and Description |
---|---|
static int |
BOOKMARKS_WEIGHT |
static int |
BREAKPOINTS_WEIGHT |
protected java.util.List<AbstractTreeNode<T>> |
myChildren |
protected FavoritesListNode |
myNode |
protected Project |
myProject |
static int |
TASKS_WEIGHT |
EP_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractFavoritesListProvider(Project project,
java.lang.String listName) |
protected |
AbstractFavoritesListProvider(Project project,
java.lang.String listName,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
int |
compare(FavoriteTreeNodeDescriptor o1,
FavoriteTreeNodeDescriptor o2) |
int |
compareTo(FavoritesListProvider o) |
FavoritesListNode |
createFavoriteListNode(Project project) |
void |
customizeRenderer(ColoredTreeCellRenderer renderer,
javax.swing.JTree tree,
java.lang.Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus) |
java.lang.String |
getCustomName(CommonActionsPanel.Buttons type) |
java.lang.String |
getListName(Project project) |
void |
handle(CommonActionsPanel.Buttons type,
Project project,
java.util.Set<java.lang.Object> selectedObjects,
javax.swing.JComponent component) |
boolean |
willHandle(CommonActionsPanel.Buttons type,
Project project,
java.util.Set<java.lang.Object> selectedObjects) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWeight
public static final int BOOKMARKS_WEIGHT
public static final int BREAKPOINTS_WEIGHT
public static final int TASKS_WEIGHT
protected final Project myProject
protected final java.util.List<AbstractTreeNode<T>> myChildren
protected final FavoritesListNode myNode
protected AbstractFavoritesListProvider(Project project, java.lang.String listName)
protected AbstractFavoritesListProvider(Project project, java.lang.String listName, java.lang.String description)
public java.lang.String getListName(Project project)
getListName
in interface FavoritesListProvider
public FavoritesListNode createFavoriteListNode(Project project)
createFavoriteListNode
in interface FavoritesListProvider
public int compare(FavoriteTreeNodeDescriptor o1, FavoriteTreeNodeDescriptor o2)
compare
in interface java.util.Comparator<FavoriteTreeNodeDescriptor>
public java.lang.String getCustomName(CommonActionsPanel.Buttons type)
getCustomName
in interface FavoritesListProvider
public boolean willHandle(CommonActionsPanel.Buttons type, Project project, java.util.Set<java.lang.Object> selectedObjects)
willHandle
in interface FavoritesListProvider
public void handle(CommonActionsPanel.Buttons type, Project project, java.util.Set<java.lang.Object> selectedObjects, javax.swing.JComponent component)
handle
in interface FavoritesListProvider
public int compareTo(FavoritesListProvider o)
compareTo
in interface java.lang.Comparable<FavoritesListProvider>
public void customizeRenderer(ColoredTreeCellRenderer renderer, javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
customizeRenderer
in interface FavoritesListProvider