Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a welcome screen if no database is open #12461

Merged
merged 70 commits into from
Mar 19, 2025
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
08ec5d8
Fix #12272 - Show a welcome screen if no database is open
oops-shlok Feb 4, 2025
684f7df
Fix #12272 - Fix missing localisation keys for WelcomePage
oops-shlok Feb 4, 2025
3759e24
Fix #12272 - Fix missing localisation keys for WelcomePage
oops-shlok Feb 4, 2025
9fc595d
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 5, 2025
4e576e9
Fix #12272 - Addressed 1st Review Changes
oops-shlok Feb 5, 2025
52409bd
Fix #12272 - Checkstyle issue fix in ExportCommand file
oops-shlok Feb 5, 2025
f130244
Reverted csl-styles submodule changes
oops-shlok Feb 5, 2025
2559f22
Reverted abbrv.jabref.org submodule changes
oops-shlok Feb 5, 2025
0d240c9
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 6, 2025
cb05ec7
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 11, 2025
0489da1
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 13, 2025
669083d
Integrated WelcomePage in WelcomeTab and code changes
oops-shlok Feb 13, 2025
cf3188e
Implemented Review Changes 5
oops-shlok Feb 14, 2025
e5a4840
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 14, 2025
d4332c6
Fix #12272 - Localization key fix in JabRef_en.properties
oops-shlok Feb 14, 2025
c11ca80
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 17, 2025
5c0b6ee
Implemented Open Welcome tab in help menu option and open welcome tab…
oops-shlok Feb 17, 2025
f97be18
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 18, 2025
cdc1977
Implemented Review Changes 6
oops-shlok Feb 18, 2025
7db3b81
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 23, 2025
4de4651
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Feb 25, 2025
815ba53
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Feb 26, 2025
c401e67
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Mar 4, 2025
dea3f05
Merge branch 'fix-for-issue-#12272' of https://github.com/oops-shlok/…
oops-shlok Mar 4, 2025
40c4ca3
Reverted Interface changes and fixed save as and save for welcome tab
oops-shlok Mar 4, 2025
a8ee2c8
Fixed checkstyle import issue
oops-shlok Mar 4, 2025
f048c4b
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 4, 2025
0e5ed41
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 6, 2025
76b1aba
Simplify and fix casting
calixtus Mar 6, 2025
970d7e8
Fix casting
calixtus Mar 6, 2025
fbf3405
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Mar 7, 2025
5e199c4
Merge branch 'fix-for-issue-#12272' of https://github.com/oops-shlok/…
oops-shlok Mar 7, 2025
e373b34
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Mar 8, 2025
fc78dc5
Fixed Responsiveness
oops-shlok Mar 8, 2025
66ccb58
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Mar 10, 2025
1e24223
Undo newlines in MainToolBar.java
calixtus Mar 10, 2025
8efa826
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Mar 11, 2025
5196593
Merge branch 'fix-for-issue-#12272' of https://github.com/oops-shlok/…
oops-shlok Mar 11, 2025
afa8b54
Added Footer for Welcome Tab
oops-shlok Mar 11, 2025
d920d6c
Fixed Localization issues
oops-shlok Mar 11, 2025
5aa63d2
Merge branch 'main' of https://github.com/JabRef/jabref into fix-for-…
oops-shlok Mar 17, 2025
fcc5be3
Fixed Recents Library issue
oops-shlok Mar 17, 2025
a6d50e2
Fixed Tragbot review for Footer
oops-shlok Mar 17, 2025
2f9811f
Refactored the code as suggested in review comments
oops-shlok Mar 17, 2025
8885b4d
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 17, 2025
721a77f
Introduced URLs Util
oops-shlok Mar 17, 2025
6744ec2
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 17, 2025
22347f8
Fixed Localization issues
oops-shlok Mar 17, 2025
a8ac3e5
Fixed Localization issues
oops-shlok Mar 17, 2025
cc78bbe
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 17, 2025
cd11463
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 17, 2025
efc4767
Fixed Localization issues
oops-shlok Mar 17, 2025
c0a4696
Merge branch 'fix-for-issue-#12272' of https://github.com/oops-shlok/…
oops-shlok Mar 17, 2025
8aed6f7
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 17, 2025
7ba378d
Fixed missing Localization in WelcomeTab
oops-shlok Mar 17, 2025
95a93eb
Fixed missing Localization in WelcomeTab
oops-shlok Mar 17, 2025
0e786cc
Fixed Review changes
oops-shlok Mar 17, 2025
f6a5587
Added Changelog entry
oops-shlok Mar 17, 2025
ba1ad6f
Update src/main/java/org/jabref/gui/frame/JabRefFrame.java
koppor Mar 19, 2025
23891b6
Update src/main/java/org/jabref/gui/WelcomeTab.java
koppor Mar 19, 2025
4bc74b6
Update src/main/java/org/jabref/gui/frame/JabRefFrame.java
koppor Mar 19, 2025
0076919
Fixed Localization issue
oops-shlok Mar 19, 2025
a71d9fb
Merge branch 'main' into fix-for-issue-#12272
oops-shlok Mar 19, 2025
3c14ba8
Fix position of showing welcome tab
koppor Mar 19, 2025
c94fb15
Streamline wording
koppor Mar 19, 2025
c695f5b
Merge branch 'fix-for-issue-#12272' of https://github.com/oops-shlok/…
koppor Mar 19, 2025
5115579
Remove obsolete strings
koppor Mar 19, 2025
f7c0c3b
Fix obsolete code
koppor Mar 19, 2025
5d84d89
Fix comment
koppor Mar 19, 2025
37e24d2
Fix localization
koppor Mar 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix casting
calixtus committed Mar 6, 2025
commit 970d7e83135738aeb34cf9619b608b7b0b8d0076
37 changes: 19 additions & 18 deletions src/main/java/org/jabref/gui/frame/JabRefFrame.java
Original file line number Diff line number Diff line change
@@ -450,7 +450,8 @@ private void updateTabBarVisible() {
* Returns the currently viewed LibraryTab.
*/
public LibraryTab getCurrentLibraryTab() {
if (tabbedPane.getSelectionModel().getSelectedItem() == null) {
if (tabbedPane.getSelectionModel().getSelectedItem() == null
|| !(tabbedPane.getSelectionModel().getSelectedItem() instanceof LibraryTab)) {
return null;
}
return (LibraryTab) tabbedPane.getSelectionModel().getSelectedItem();
@@ -467,24 +468,24 @@ public void showWelcomeTab() {
tabbedPane.getSelectionModel().select(tab);
return;
}

// If the WelcomeTab is not found, a new instance is created and added
WelcomeTab welcomeTab = new WelcomeTab(
this,
preferences,
aiService,
dialogService,
stateManager,
fileUpdateMonitor,
entryTypesManager,
undoManager,
clipBoardManager,
taskExecutor,
fileHistory
);
tabbedPane.getTabs().add(welcomeTab);
tabbedPane.getSelectionModel().select(welcomeTab);
}

// If the WelcomeTab is not found, a new instance is created and added
WelcomeTab welcomeTab = new WelcomeTab(
this,
preferences,
aiService,
dialogService,
stateManager,
fileUpdateMonitor,
entryTypesManager,
undoManager,
clipBoardManager,
taskExecutor,
fileHistory
);
tabbedPane.getTabs().add(welcomeTab);
tabbedPane.getSelectionModel().select(welcomeTab);
}

/**