Skip to content

Use a Event-Driven model to speed up IDE (FIX #10214 #10235) #10249

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

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
Next Next commit
improved responsiveness of dialogues: Boards and Library manager (using
invokeLater )
  • Loading branch information
ricardojlrufino committed May 7, 2020
commit f936d59e98956bb4198c5676acf831a138b14664
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ private void builtInPackageIsNewerCheck() throws InterruptedException {
return;
}

while (!base.hasActiveEditor()) {
Thread.sleep(100);
}
base.getWaitActiveEditor();

if (VersionComparator.greaterThan(installedBuiltIn.getParsedVersion(), installedNotBuiltIn.getParsedVersion())) {
SwingUtilities.invokeLater(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void run() {
}

SwingUtilities.invokeLater(() -> {
Editor ed = base.getActiveEditor();
Editor ed = base.getWaitActiveEditor();
boolean accessibleIde = PreferencesData.getBoolean("ide.accessible");
if (accessibleIde) {
notificationPopup = new NotificationPopup(ed, hyperlinkListener, text, false, this, button1Name, button2Name);
Expand Down
Loading