mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
New Welcome Screen in WebStorm
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 793 B |
Binary file not shown.
|
After Width: | Height: | Size: 868 B |
+1
-1
@@ -31,6 +31,6 @@ public class FlatWelcomeFrameProvider implements WelcomeFrameProvider {
|
||||
|
||||
public static boolean isAvailable() {
|
||||
return Registry.is("ide.new.welcome.screen")
|
||||
&& (PlatformUtils.isIntelliJ() || PlatformUtils.isCidr());
|
||||
&& (PlatformUtils.isIntelliJ() || PlatformUtils.isCidr() || PlatformUtils.isWebStorm());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.platform;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ide.RecentProjectsManager;
|
||||
import com.intellij.idea.ActionsBundle;
|
||||
import com.intellij.internal.statistic.UsageTrigger;
|
||||
@@ -33,6 +34,7 @@ import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.wm.impl.welcomeScreen.NewWelcomeScreen;
|
||||
import com.intellij.projectImport.ProjectOpenedCallback;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -111,4 +113,11 @@ public class NewDirectoryProjectAction extends AnAction implements DumbAware {
|
||||
protected Object showSettings(DirectoryProjectGenerator generator, VirtualFile baseDir) throws ProcessCanceledException {
|
||||
return generator.showGenerationSettings(baseDir);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
if (NewWelcomeScreen.isNewWelcomeScreen(e)) {
|
||||
e.getPresentation().setIcon(AllIcons.Welcome.CreateNewProject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1173,6 +1173,7 @@ public class AllIcons {
|
||||
public static class Welcome {
|
||||
public static final Icon CreateDesktopEntry = IconLoader.getIcon("/welcome/createDesktopEntry.png"); // 32x32
|
||||
public static final Icon CreateNewProject = IconLoader.getIcon("/welcome/createNewProject.png"); // 16x16
|
||||
public static final Icon CreateNewProjectfromExistingFiles = IconLoader.getIcon("/welcome/CreateNewProjectfromExistingFiles.png"); // 16x16
|
||||
public static final Icon FromVCS = IconLoader.getIcon("/welcome/fromVCS.png"); // 16x16
|
||||
public static final Icon ImportProject = IconLoader.getIcon("/welcome/importProject.png"); // 16x16
|
||||
public static final Icon OpenProject = IconLoader.getIcon("/welcome/openProject.png"); // 16x16
|
||||
|
||||
Reference in New Issue
Block a user