IDEA-79592: "Choose Libraries" popup: wrong button order on Mac

This commit is contained in:
nik
2012-01-10 17:47:48 +04:00
parent 0c7b49544a
commit bb6c2ae8d8

View File

@@ -26,6 +26,7 @@ import com.intellij.openapi.roots.libraries.LibraryTable;
import com.intellij.openapi.roots.ui.configuration.libraries.LibraryPresentationManager;
import com.intellij.openapi.roots.ui.configuration.projectRoot.LibrariesModifiableModel;
import com.intellij.openapi.roots.ui.configuration.projectRoot.StructureConfigurableContext;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.ui.SimpleTextAttributes;
import com.intellij.util.ui.classpath.ChooseLibrariesFromTablesDialog;
import org.jetbrains.annotations.NotNull;
@@ -126,12 +127,10 @@ public class ProjectStructureChooseLibrariesDialog extends ChooseLibrariesFromTa
@Override
protected Action[] createActions() {
return new Action[]{getCancelAction()};
}
@Override
protected Action[] createLeftSideActions() {
return new Action[]{getOKAction(), new CreateNewLibraryAction()};
if (SystemInfo.isMac) {
return new Action[]{getCancelAction(), new CreateNewLibraryAction(), getOKAction()};
}
return new Action[]{getOKAction(), new CreateNewLibraryAction(), getCancelAction()};
}
@Override