MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / Bookmarks

Method Bookmarks

src/main/java/Conference/Bookmarks.java:74–93  ·  view source on GitHub ↗

Creates a new instance of Bookmarks @param toAdd

(BookmarkItem toAdd)

Source from the content-addressed store, hash-verified

72 * @param toAdd
73 */
74 public Bookmarks(BookmarkItem toAdd) {
75 super(null, false);
76 loadBookmarks();
77
78 if (getItemCount() == 0 && toAdd == null) {
79 new ConferenceForm();
80 return;
81 }
82
83 this.toAdd = toAdd;
84
85 if (toAdd != null) {
86 addBookmark();
87 }
88
89 mainbar = new MainBar(2, null, SR.MS_BOOKMARKS + " (" + getItemCount() + ") ", false);//for title updating after "add bookmark"
90
91 enableListWrapping(true);
92 show();
93 }
94
95 public void commandState() {
96 menuCommands.removeAllElements();

Callers

nothing calls this directly

Calls 5

loadBookmarksMethod · 0.95
addBookmarkMethod · 0.95
enableListWrappingMethod · 0.80
getItemCountMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected