First implementation of a bookmarks system.

Not persistent yet, so you lose them all when you close ATCS.
This commit is contained in:
Zukero
2018-09-13 13:34:04 +02:00
parent bf42f86408
commit 0a3da17d47
19 changed files with 653 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ import java.util.concurrent.ConcurrentHashMap;
import javax.swing.tree.TreeNode;
import com.gpl.rpg.atcontentstudio.model.bookmarks.BookmarkEntry;
public abstract class GameDataElement implements ProjectTreeNode, Serializable {
private static final long serialVersionUID = 2028934451226743389L;
@@ -31,6 +33,8 @@ public abstract class GameDataElement implements ProjectTreeNode, Serializable {
public boolean writable = false;
public BookmarkEntry bookmark = null;
//List of objects whose transition to "linked" state made them point to this instance.
private Map<GameDataElement, Integer> backlinks = new ConcurrentHashMap<GameDataElement, Integer>();