'Show project structure' actions moved to idea-ui module
[idea/community.git] / java / idea-ui / src / com / intellij / ide / actions / TemplateProjectStructureAction.java
similarity index 78%
rename from platform/platform-impl/src/com/intellij/ide/actions/TemplateProjectStructureAction.java
rename to java/idea-ui/src/com/intellij/ide/actions/TemplateProjectStructureAction.java
index 22b98d5b36de864c1edafb0df84fb4bcc29bba70..8386a91d80370ece19aa92fb3267373ffad30aa1 100644 (file)
@@ -17,18 +17,16 @@ package com.intellij.ide.actions;
 
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.options.Configurable;
 import com.intellij.openapi.options.ShowSettingsUtil;
 import com.intellij.openapi.options.newEditor.OptionsEditorDialog;
-import com.intellij.openapi.options.ex.ProjectConfigurablesGroup;
-import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.DumbAware;
+import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ex.ProjectManagerEx;
+import com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable;
 
 public class TemplateProjectStructureAction extends AnAction implements DumbAware {
   public void actionPerformed(final AnActionEvent e) {
     Project defaultProject = ProjectManagerEx.getInstanceEx().getDefaultProject();
-    final Configurable configurable = ProjectConfigurablesGroup.getProjectStructureConfigurable(defaultProject);
-    ShowSettingsUtil.getInstance().editConfigurable(defaultProject, OptionsEditorDialog.DIMENSION_KEY, configurable);
+    ShowSettingsUtil.getInstance().editProjectConfigurable(defaultProject, ProjectStructureConfigurable.class, OptionsEditorDialog.DIMENSION_KEY);
   }
 }
\ No newline at end of file