public class MapFolderTreeActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
Constructor and Description |
---|
MapFolderTreeActions(@NotNull MapFolderTree<G,A,R> mapFolderTree,
@NotNull PickmapSettings pickmapSettings,
@NotNull NewMapDialogFactory<G,A,R> newMapDialogFactory,
@NotNull java.lang.String createFolderKey,
@NotNull java.lang.String deleteFolderKey,
@NotNull java.lang.String confirmDeleteFolderKey,
@NotNull java.lang.String deleteFolderNotEmptyKey)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
createPickmapFolder()
Action callback function to create a new pickmap folder.
|
void |
deletePickmapFolder()
Action callback function to delete the current pickmap folder.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
void |
setPickmapFoldersMenu(@Nullable javax.swing.JMenu folderMenu)
Deprecated.
|
public MapFolderTreeActions(@NotNull @NotNull MapFolderTree<G,A,R> mapFolderTree, @NotNull @NotNull PickmapSettings pickmapSettings, @NotNull @NotNull NewMapDialogFactory<G,A,R> newMapDialogFactory, @NotNull @NotNull java.lang.String createFolderKey, @NotNull @NotNull java.lang.String deleteFolderKey, @NotNull @NotNull java.lang.String confirmDeleteFolderKey, @NotNull @NotNull java.lang.String deleteFolderNotEmptyKey)
mapFolderTree
- the model to operate onpickmapSettings
- the pickmap settings to usenewMapDialogFactory
- the factory for creating new pickmap folderscreateFolderKey
- the action key for "create folder"deleteFolderKey
- the action key for "delete folder"confirmDeleteFolderKey
- the dialog key for "confirm delete
folder?"deleteFolderNotEmptyKey
- the dialog key for "delete folder not
empty"@Deprecated public void setPickmapFoldersMenu(@Nullable @Nullable javax.swing.JMenu folderMenu)
null
, nothing is updated.folderMenu
- the pickmap folders menu@ActionMethod public void createPickmapFolder()
@ActionMethod public void deletePickmapFolder()
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)
EditorAction
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action