mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Better project code style migration message
with a link to a web page containing more info.
This commit is contained in:
@@ -16,10 +16,13 @@
|
||||
|
||||
package com.intellij.psi.codeStyle;
|
||||
|
||||
import com.intellij.ide.BrowserUtil;
|
||||
import com.intellij.notification.Notification;
|
||||
import com.intellij.notification.NotificationDisplayType;
|
||||
import com.intellij.notification.NotificationGroup;
|
||||
import com.intellij.notification.NotificationType;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.application.ApplicationBundle;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.TransactionGuard;
|
||||
@@ -170,6 +173,18 @@ public class ProjectCodeStyleSettingsManager extends CodeStyleSettingsManager {
|
||||
ApplicationBundle.message("project.code.style.migration.title"),
|
||||
ApplicationBundle.message("project.code.style.migration.message", projectName),
|
||||
NotificationType.INFORMATION);
|
||||
addAction(new ShowMoreInfoAction());
|
||||
}
|
||||
}
|
||||
|
||||
private static class ShowMoreInfoAction extends AnAction {
|
||||
public ShowMoreInfoAction() {
|
||||
super("More info");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
BrowserUtil.open("https://confluence.jetbrains.com/display/IDEADEV/New+project+code+style+settings+format+in+2017.3");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -809,6 +809,4 @@ title.save.code.style.scheme.as=Duplicate Code Style Scheme As
|
||||
title.save.color.scheme.as=Duplicate Color Scheme As
|
||||
|
||||
project.code.style.migration.title=Project code style settings migration
|
||||
project.code.style.migration.message={0} code style settings were migrated from .idea/codeStyleSettings.xml to \
|
||||
new configuration files codeStyleConfig.xml and Project.xml under .idea/codeStyles directory.\
|
||||
\nIf project configuration directory .idea is under version control, the files can be added to VCS too.
|
||||
project.code.style.migration.message=The code style settings of your project {0} were migrated to the new format. We''re keeping the old format for now, for backwards compatibility.
|
||||
Reference in New Issue
Block a user