'Show project structure' actions moved to idea-ui module
[idea/community.git] / java / idea-ui / src / com / intellij / ide / actions / ShowStructureSettingsAction.java
similarity index 69%
rename from platform/platform-impl/src/com/intellij/ide/actions/ShowStructureSettingsAction.java
rename to java/idea-ui/src/com/intellij/ide/actions/ShowStructureSettingsAction.java
index a4781c8a0235f8078acbe5e4665d218569c01509..6f4e0fa08cc7def04d20b4f785209ad314307811 100644 (file)
@@ -18,30 +18,20 @@ package com.intellij.ide.actions;
 import com.intellij.openapi.actionSystem.AnAction;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.PlatformDataKeys;
-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.DumbAware;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ProjectManager;
-import com.intellij.openapi.project.DumbAware;
-import com.intellij.openapi.diagnostic.Logger;
+import com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable;
 
 public class ShowStructureSettingsAction extends AnAction implements DumbAware {
-
-  private static final Logger LOG = Logger.getInstance("#com.intellij.ide.actions.ShowStructureSettingsAction");
-
   public void actionPerformed(AnActionEvent e) {
     Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
     if (project == null) {
       project = ProjectManager.getInstance().getDefaultProject();
     }
 
-    final Configurable configurable = ProjectConfigurablesGroup.getProjectStructureConfigurable(project);
-    if (configurable != null) {
-      ShowSettingsUtil.getInstance().editConfigurable(project, OptionsEditorDialog.DIMENSION_KEY, configurable);
-    } else {
-      LOG.info("No project structure configurable found");
-    }
+    ShowSettingsUtil.getInstance().editProjectConfigurable(project, ProjectStructureConfigurable.class, OptionsEditorDialog.DIMENSION_KEY);
   }
 }
\ No newline at end of file