forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored importAction and addTab methods, introduced MainToolbar an…
…d MainMenu (JabRef#10305) * Merged import classes * refactor * Removed control flow by exceptions * Replaced boolean with enum * Removed comments * refactored * Introduced LibraryTabContainer interface * Extracted Toolbar to proper class * Extracted MenuBar to proper class * Move openSharedDatabase * Expanded use of LibraryTabContainer * Refactored overloaded addTab method * Moved openSharedDatabaseAction again * Fixed highlighting new panel * Fixed merge conflicts and extracted Globals * Fixed javadoc and extracted more Globals
- Loading branch information
Showing
23 changed files
with
1,141 additions
and
846 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.jabref.gui; | ||
|
||
import java.util.List; | ||
|
||
public interface LibraryTabContainer { | ||
LibraryTab getLibraryTabAt(int i); | ||
|
||
List<LibraryTab> getLibraryTabs(); | ||
|
||
LibraryTab getCurrentLibraryTab(); | ||
|
||
void showLibraryTab(LibraryTab libraryTab); | ||
|
||
void addTab(LibraryTab libraryTab, boolean raisePanel); | ||
|
||
void closeTab(LibraryTab libraryTab); | ||
|
||
void closeCurrentTab(); | ||
} |
Oops, something went wrong.