Skip to content

Commit

Permalink
api changed
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Sep 12, 2024
1 parent 1d0585c commit 40c3afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
import consulo.language.psi.PsiFile;
import consulo.module.content.layer.orderEntry.LibraryOrderEntry;
import consulo.ui.Component;
import consulo.ui.event.UIEvent;
import consulo.ui.event.ComponentEvent;
import consulo.util.concurrent.AsyncResult;

import jakarta.annotation.Nonnull;

import java.util.Collection;
import java.util.List;

Expand All @@ -37,7 +37,7 @@ interface AttachSourcesAction {

String getBusyText();

AsyncResult<Void> perform(@Nonnull List<LibraryOrderEntry> orderEntriesContainingFile, @Nonnull UIEvent<Component> e);
AsyncResult<Void> perform(@Nonnull List<LibraryOrderEntry> orderEntriesContainingFile, @Nonnull ComponentEvent<Component> e);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import consulo.project.localize.ProjectLocalize;
import consulo.ui.Component;
import consulo.ui.annotation.RequiredUIAccess;
import consulo.ui.event.UIEvent;
import consulo.ui.event.ComponentEvent;
import consulo.ui.ex.awt.Messages;
import consulo.ui.ex.awtUnsafe.TargetAWT;
import consulo.ui.ex.popup.BaseListPopupStep;
Expand Down Expand Up @@ -288,7 +288,7 @@ public String getBusyText()
}

@Override
public AsyncResult<Void> perform(List<LibraryOrderEntry> orderEntriesContainingFile, @Nonnull UIEvent<Component> e)
public AsyncResult<Void> perform(List<LibraryOrderEntry> orderEntriesContainingFile, @Nonnull ComponentEvent<Component> e)
{
final List<Library.ModifiableModel> modelsToCommit = new ArrayList<>();
for (LibraryOrderEntry orderEntry : orderEntriesContainingFile)
Expand Down Expand Up @@ -358,7 +358,7 @@ public String getBusyText()

@Override
@RequiredUIAccess
public AsyncResult<Void> perform(final List<LibraryOrderEntry> libraries, UIEvent<Component> e)
public AsyncResult<Void> perform(final List<LibraryOrderEntry> libraries, ComponentEvent<Component> e)
{
FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createMultipleJavaPathDescriptor();
descriptor.withTitleValue(ProjectLocalize.libraryAttachSourcesAction());
Expand Down

0 comments on commit 40c3afb

Please sign in to comment.