mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UsageTrigger for "Create File"
This commit is contained in:
@@ -18,6 +18,7 @@ package com.intellij.ide.actions;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.internal.statistic.UsageTrigger;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.fileTypes.FileType;
|
||||
import com.intellij.openapi.fileTypes.FileTypeManager;
|
||||
@@ -133,6 +134,12 @@ public class CreateFileAction extends CreateElementActionBase implements DumbAwa
|
||||
return myErrorText;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiElement[] create(String newName) throws Exception {
|
||||
UsageTrigger.trigger("CreateFile." + CreateFileAction.this.getClass().getSimpleName());
|
||||
return super.create(newName);
|
||||
}
|
||||
|
||||
public boolean canClose(String inputString) {
|
||||
if (inputString.length() == 0) {
|
||||
return super.canClose(inputString);
|
||||
|
||||
Reference in New Issue
Block a user