public abstract class RuntimePluginBaseEditor extends BaseEditor<Plugin,DefaultMetadata>
Modifier and Type | Field and Description |
---|---|
protected Plugin |
plugin |
baseView, changeTitleNotification, concurrentChangePopup, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, deletePopUpPresenter, fileNameValidator, isReadOnly, isValidationRunning, makeMenuBarPromise, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, placeManager, promises, saveAndRenameCommandBuilder, saveWithComments, type, versionRecordManager
Modifier | Constructor and Description |
---|---|
|
RuntimePluginBaseEditor() |
protected |
RuntimePluginBaseEditor(BaseEditorView baseView) |
addDownloadMenuItem, buildMenuBar, disableMenuItem, downloadMenuItem, enableMenuItem, getBeforeSaveAndRenameCommand, getCurrentContentHash, getMenus, getMetadataSupplier, getPathSupplier, getRenameServiceCaller, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveSuccessCallback, getSaveValidator, getTitle, getTitleText, getValidateCommand, getVersionRecordManager, init, init, init, isDirty, isDirtySupplier, makeMenuBar, mayClose, onAfterValidate, onBeforeValidate, onRename, onRestore, onSave, onSuccess, onValidate, reload, setMetadataOriginalHash, setOriginalHash, showConcurrentUpdatePopup, showVersions
protected Plugin plugin
public RuntimePluginBaseEditor()
protected RuntimePluginBaseEditor(BaseEditorView baseView)
protected abstract PluginType getPluginType()
protected abstract ClientResourceType getResourceType()
protected Supplier<Plugin> getContentSupplier()
getContentSupplier
in class BaseEditor<Plugin,DefaultMetadata>
public void onStartup(ObservablePath path, PlaceRequest place)
protected void onPlugInRenamed(@Observes PluginRenamed pluginRenamed)
protected org.jboss.errai.common.client.api.Caller<? extends SupportsDelete> getDeleteServiceCaller()
getDeleteServiceCaller
in class BaseEditor<Plugin,DefaultMetadata>
protected org.jboss.errai.common.client.api.Caller<? extends SupportsSaveAndRename<Plugin,DefaultMetadata>> getSaveAndRenameServiceCaller()
getSaveAndRenameServiceCaller
in class BaseEditor<Plugin,DefaultMetadata>
protected org.jboss.errai.common.client.api.Caller<? extends SupportsCopy> getCopyServiceCaller()
getCopyServiceCaller
in class BaseEditor<Plugin,DefaultMetadata>
protected void loadContent()
loadContent
in class BaseEditor<Plugin,DefaultMetadata>
public Plugin getContent()
protected void save()
save
in class BaseEditor<Plugin,DefaultMetadata>
public boolean mayClose()
public Validator getRenameValidator()
getRenameValidator
in class BaseEditor<Plugin,DefaultMetadata>
public Validator getCopyValidator()
getCopyValidator
in class BaseEditor<Plugin,DefaultMetadata>
public void onPluginSaved(@Observes PluginSaved pluginSaved)
public void onPluginAdded(@Observes PluginAdded pluginAdded)
public void onPluginDeleted(@Observes PluginDeleted pluginDeleted)
public void onPluginRenamed(@Observes PluginRenamed pluginRenamed)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.