Permalink
Browse files

fix diff tests

  • Loading branch information...
1 parent d45f6c3 commit 8ce8c47683df17fabfb9e178c0d379e6b9cb4494 Mihail Muhin committed Dec 12, 2010
Oops, something went wrong.
@@ -28,7 +28,6 @@
<classNode dependClassName="javax.swing.Icon" />
<classNode dependClassName="javax.swing.JOptionPane" />
<classNode dependClassName="javax.swing.tree.TreeNode" />
- <classNode dependClassName="jetbrains.mps.internal.collections.runtime.ISelector" />
<classNode dependClassName="jetbrains.mps.internal.collections.runtime.ListSequence" />
<classNode dependClassName="jetbrains.mps.project.GlobalScope" />
<classNode dependClassName="jetbrains.mps.project.IModule" />
@@ -736,7 +735,7 @@
<classNode dependClassName="jetbrains.mps.reloading.ClassLoaderManager" />
<classNode dependClassName="jetbrains.mps.smodel.ModelAccess" />
<classNode dependClassName="org.jetbrains.annotations.NotNull" />
- <classNode extendsClassName="com.intellij.openapi.progress.Modal" />
+ <classNode extendsClassName="com.intellij.openapi.progress.Task.Modal" />
</dependency>
<dependency className="jetbrains.mps.ide.actions.Default_KeymapChanges" file="Default_KeymapChanges.java">
<classNode dependClassName="java.lang.String" />
@@ -21,7 +21,6 @@
import jetbrains.mps.smodel.ModelAccess;
import jetbrains.mps.smodel.SModelDescriptor;
import jetbrains.mps.project.GlobalScope;
-import jetbrains.mps.internal.collections.runtime.ISelector;
import jetbrains.mps.workbench.dialogs.choosers.CommonChoosers;
import jetbrains.mps.project.structure.modules.LanguageDescriptor;
import jetbrains.mps.smodel.IScope;
@@ -96,12 +95,9 @@ public void doExecute(@NotNull final AnActionEvent event) {
final List<SModelReference> models = ListSequence.fromList(new ArrayList<SModelReference>());
ModelAccess.instance().runReadAction(new Runnable() {
public void run() {
- List<SModelDescriptor> descriptors = GlobalScope.getInstance().getModelDescriptors();
- ListSequence.fromList(models).addSequence(ListSequence.fromList(descriptors).select(new ISelector<SModelDescriptor, SModelReference>() {
- public SModelReference select(SModelDescriptor it) {
- return it.getSModelReference();
- }
- }));
+ for (SModelDescriptor md : GlobalScope.getInstance().getModelDescriptors()) {
+ ListSequence.fromList(models).addElement(md.getSModelReference());
+ }
}
});
final SModelReference result = CommonChoosers.showDialogModelChooser(AddAccessoryModel_Action.this.frame, models, null);
Oops, something went wrong.

0 comments on commit 8ce8c47

Please sign in to comment.