mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-205256 Drop TemplateProjectStructure from "File | New Project Setup | Structure..." and the welcome screen
GitOrigin-RevId: 8375fb2874c9492c2d4d99dc63513824927953ee
This commit is contained in:
committed by
intellij-monorepo-bot
parent
752b941834
commit
a38bcdbed9
@@ -1,5 +1,3 @@
|
||||
action.TemplateProjectStructure.text=Structure for New Projects\u2026
|
||||
action.TemplateProjectStructure.description=Configure default structure for all new projects
|
||||
build.script.found.notification={0} build {1,choice,1#script|1<scripts} found
|
||||
build.script.found.notification.import={0,choice,1#Load|2#Load all}
|
||||
build.scripts.from.multiple.providers.found.notification=Build scripts found
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.ide.actions;
|
||||
|
||||
import com.intellij.ide.JavaUiBundle;
|
||||
import com.intellij.openapi.actionSystem.ActionPlaces;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.project.ProjectManager;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class TemplateProjectStructureAction extends ShowStructureSettingsAction {
|
||||
public TemplateProjectStructureAction() {
|
||||
getTemplatePresentation().setText(JavaUiBundle.messagePointer("action.TemplateProjectStructure.text"));
|
||||
getTemplatePresentation().setDescription(JavaUiBundle.messagePointer("action.TemplateProjectStructure.description"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void actionPerformed(@NotNull AnActionEvent e) {
|
||||
showDialog(ProjectManager.getInstance().getDefaultProject());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
if (e.getPlace().equals(ActionPlaces.WELCOME_SCREEN)) {
|
||||
final String text = getTemplatePresentation().getText();
|
||||
if (text == null) return;
|
||||
e.getPresentation().setText(StringUtil.trimEnd(text, "..."));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2874,7 +2874,6 @@ action.UntrustProject.text=Do Not Trust
|
||||
action.ShowTrustProjectDialog.text=Trust Project\u2026
|
||||
|
||||
action.RunConfigurationTemplatesForNewProjects.MainMenu.text=Run Configuration Templates\u2026
|
||||
action.TemplateProjectStructure.MainMenu.text=Structure\u2026
|
||||
action.ClickLink.text=Click Link
|
||||
|
||||
action.RunToolbarWidgetAction.text=Run/Debug Widget
|
||||
|
||||
@@ -47,10 +47,6 @@
|
||||
<add-to-group group-id="FileMainSettingsGroup" anchor="after" relative-to-action="ShowSettings"/>
|
||||
<add-to-group group-id="SettingsEntryPointGroup" anchor="before" relative-to-action="ShowSettings"/>
|
||||
</action>
|
||||
<action id="TemplateProjectStructure" class="com.intellij.ide.actions.TemplateProjectStructureAction">
|
||||
<add-to-group group-id="FileSettingsGroup" anchor="last"/>
|
||||
<override-text place="MainMenu"/>
|
||||
</action>
|
||||
<action id="ShowSiblings" class="com.intellij.codeInsight.hint.actions.ShowSiblingsAction">
|
||||
<add-to-group group-id="QuickActions" anchor="after" relative-to-action="QuickImplementations"/>
|
||||
</action>
|
||||
@@ -254,10 +250,6 @@
|
||||
<add-to-group group-id="WelcomeScreen.Documentation" anchor="last"/>
|
||||
</group>
|
||||
|
||||
<action id="WelcomeScreen.Configure.ProjectStructure" class="com.intellij.ide.actions.TemplateProjectStructureAction">
|
||||
<add-to-group group-id="WelcomeScreen.Configure" anchor="before" relative-to-action="RunConfigurationTemplatesForNewProjects"/>
|
||||
</action>
|
||||
|
||||
<action id="AddFrameworkSupport" class="com.intellij.ide.util.frameworkSupport.AddFrameworkSupportAction">
|
||||
<add-to-group group-id="ProjectViewPopupMenuSettingsGroup" anchor="before" relative-to-action="LoadUnloadModules"/>
|
||||
</action>
|
||||
|
||||
Reference in New Issue
Block a user