mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TreeUiTests fixed
This commit is contained in:
@@ -210,24 +210,24 @@ public class MockApplication extends MockComponentManager implements Application
|
||||
@NotNull
|
||||
@Override
|
||||
public ModalityState getCurrentModalityState() {
|
||||
throw new UnsupportedOperationException();
|
||||
return getNoneModalityState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ModalityState getAnyModalityState() {
|
||||
throw new UnsupportedOperationException();
|
||||
return getNoneModalityState();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public ModalityState getModalityStateForComponent(@NotNull Component c) {
|
||||
throw new UnsupportedOperationException();
|
||||
return getNoneModalityState();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public ModalityState getDefaultModalityState() {
|
||||
throw new UnsupportedOperationException();
|
||||
return getNoneModalityState();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1330,6 +1330,10 @@ public class AbstractTreeUi {
|
||||
}
|
||||
}
|
||||
|
||||
if (!canInitiateNewActivity()) {
|
||||
throw new ProcessCanceledException();
|
||||
}
|
||||
|
||||
final Object element = getElementFor(node);
|
||||
addNodeAction(element, new NodeAction() {
|
||||
public void onReady(final DefaultMutableTreeNode node) {
|
||||
|
||||
Reference in New Issue
Block a user