org.fife.rtext.plugins.project.tree
Class LogicalFolderProjectEntryTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode
          extended by org.fife.rtext.plugins.project.tree.LogicalFolderProjectEntryTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class LogicalFolderProjectEntryTreeNode
extends AbstractWorkspaceTreeNode

A tree node that's a "logical" folder; that is, one that's not reflecting a physical folder structure on the local file system.

Version:
1.0
Author:
Robert Futrell
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode
AbstractWorkspaceTreeNode.AddFileAction, AbstractWorkspaceTreeNode.AddFolderAction, AbstractWorkspaceTreeNode.AddLogicalFolderAction, AbstractWorkspaceTreeNode.DeleteAction, AbstractWorkspaceTreeNode.MoveDownAction, AbstractWorkspaceTreeNode.MoveUpAction, AbstractWorkspaceTreeNode.OpenAction, AbstractWorkspaceTreeNode.PropertiesAction, AbstractWorkspaceTreeNode.RefreshAction, AbstractWorkspaceTreeNode.RenameAction
 
Field Summary
protected  ProjectEntry entry
           
 
Fields inherited from class org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode
plugin
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
LogicalFolderProjectEntryTreeNode(ProjectPlugin plugin, LogicalFolderProjectEntry entry)
           
 
Method Summary
 java.lang.String getDisplayName()
          Returns the name to display for this node in the workspace tree.
 javax.swing.Icon getIcon()
          Returns the icon for this tree node.
static javax.swing.Icon getLogicalFolderIcon()
          Returns the icon shared amongst all logical folders.
 java.util.List<PopupContent> getPopupActions()
           
 java.lang.String getToolTipText()
           
protected  void handleDelete()
           
protected  void handleProperties()
           
 void handleRemove()
          Prompts for verification, then removes this project entry from its parent project.
protected  void handleRename()
           
 boolean moveProjectEntityDown()
          Moves the project model entity this tree node represents "down" in its parent, if it makes logical sense to do so.
 boolean moveProjectEntityUp()
          Moves the project model entity this tree node represents "up" in its parent, if it makes logical sense to do so.
 
Methods inherited from class org.fife.rtext.plugins.project.tree.AbstractWorkspaceTreeNode
escapeForHtml, possiblyAddOpenInActions, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entry

protected ProjectEntry entry
Constructor Detail

LogicalFolderProjectEntryTreeNode

public LogicalFolderProjectEntryTreeNode(ProjectPlugin plugin,
                                         LogicalFolderProjectEntry entry)
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Description copied from class: AbstractWorkspaceTreeNode
Returns the name to display for this node in the workspace tree.

Specified by:
getDisplayName in class AbstractWorkspaceTreeNode
Returns:
The display name.

getIcon

public javax.swing.Icon getIcon()
Description copied from class: AbstractWorkspaceTreeNode
Returns the icon for this tree node.

Specified by:
getIcon in class AbstractWorkspaceTreeNode
Returns:
The icon for this tree node.

getLogicalFolderIcon

public static javax.swing.Icon getLogicalFolderIcon()
Returns the icon shared amongst all logical folders.

Returns:
The shared icon.

getPopupActions

public java.util.List<PopupContent> getPopupActions()
Specified by:
getPopupActions in class AbstractWorkspaceTreeNode

getToolTipText

public java.lang.String getToolTipText()
Specified by:
getToolTipText in class AbstractWorkspaceTreeNode

handleDelete

protected void handleDelete()
Specified by:
handleDelete in class AbstractWorkspaceTreeNode

handleProperties

protected void handleProperties()
Specified by:
handleProperties in class AbstractWorkspaceTreeNode

handleRename

protected void handleRename()
Specified by:
handleRename in class AbstractWorkspaceTreeNode

handleRemove

public void handleRemove()
Prompts for verification, then removes this project entry from its parent project.


moveProjectEntityDown

public boolean moveProjectEntityDown()
Description copied from class: AbstractWorkspaceTreeNode
Moves the project model entity this tree node represents "down" in its parent, if it makes logical sense to do so. The default implementation returns false, since for most entities this operation does not make sense.

Overrides:
moveProjectEntityDown in class AbstractWorkspaceTreeNode
Returns:
Whether the entity was moved down.
See Also:
AbstractWorkspaceTreeNode.moveProjectEntityUp()

moveProjectEntityUp

public boolean moveProjectEntityUp()
Description copied from class: AbstractWorkspaceTreeNode
Moves the project model entity this tree node represents "up" in its parent, if it makes logical sense to do so. The default implementation returns false, since for most entities this operation does not make sense.

Overrides:
moveProjectEntityUp in class AbstractWorkspaceTreeNode
Returns:
Whether the entity was moved up.
See Also:
AbstractWorkspaceTreeNode.moveProjectEntityDown()