Class NewFileAction
java.lang.Object
ru.cg.webbpm.studio.platform.api.action_system.BaseAction
ru.cg.webbpm.studio.platform.api.hierarchy.actions.NewFileAction
- All Implemented Interfaces:
AnAction
- Direct Known Subclasses:
NewBpmn2Action
,NewFolderAction
,NewJavaAction
,NewPageAction
,NewTsAction
,NewUnknownFileAction
user: Ildar
date: 26.03.15
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Alerts
protected final FileBasedIndex
protected final FileManager
protected final Hierarchy
-
Constructor Summary
ConstructorsConstructorDescriptionNewFileAction
(String text, javafx.scene.image.Image icon, FileManager fileManager, Alerts alerts, FileBasedIndex fileBasedIndex, Hierarchy hierarchy) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
actionPerformed
(AnActionEvent event) protected void
fileCreated
(Path file, String fileName) protected abstract String
protected abstract String
boolean
isEnabled
(AnActionEvent event) protected abstract boolean
isFolder()
Methods inherited from class ru.cg.webbpm.studio.platform.api.action_system.BaseAction
getPresentation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.platform.api.action_system.AnAction
getId, getKeyboardShortcut, getLayout, getParentId, isVisible, update
-
Field Details
-
alerts
-
fileManager
-
fileBasedIndex
-
hierarchy
-
-
Constructor Details
-
NewFileAction
public NewFileAction(String text, javafx.scene.image.Image icon, FileManager fileManager, Alerts alerts, FileBasedIndex fileBasedIndex, Hierarchy hierarchy)
-
-
Method Details
-
actionPerformed
-
getCreateFileName
-
getExtension
-
isFolder
protected abstract boolean isFolder() -
fileCreated
-
isEnabled
-