Class PomEditor
- java.lang.Object
-
- org.uberfire.ext.editor.commons.client.BaseEditor<T,org.guvnor.common.services.shared.metadata.model.Metadata>
-
- org.kie.workbench.common.widgets.metadata.client.KieEditor<String>
-
- org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
- org.kie.workbench.common.screens.library.client.util.PomEditor
-
- All Implemented Interfaces:
org.kie.workbench.common.widgets.metadata.client.KieEditorWrapperView.KieEditorWrapperPresenter
public class PomEditor extends org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
-
Field Summary
Fields Modifier and Type Field Description static StringEDITOR_IDjavax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent>notificationEventorg.jboss.errai.ui.client.local.spi.TranslationServicetranslationService-
Fields inherited from class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
busyIndicatorView, defaultEditorService, view
-
Fields inherited from class org.kie.workbench.common.widgets.metadata.client.KieEditor
alertsButtonMenuItemBuilder, assetUpdateValidator, copyPopUpPresenter, docks, fileMenuBuilder, kieView, metadata, overviewWidget, perspectiveManager, projectController, renamePopUpPresenter, savePopUpPresenter, workbenchContext
-
Fields inherited from class org.uberfire.ext.editor.commons.client.BaseEditor
baseView, changeTitleNotification, concurrentChangePopup, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, deletePopUpPresenter, isReadOnly, isValidationRunning, makeMenuBarPromise, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, promises, saveAndRenameCommandBuilder, saveWithComments, type, versionRecordManager
-
-
Constructor Summary
Constructors Constructor Description PomEditor(org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorView baseView, org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.screens.projecteditor.service.PomEditorService> pomEditorService, org.guvnor.common.services.project.client.repositories.ConflictingRepositoriesPopup conflictingRepositoriesPopup, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.IsWidgetasWidget()org.uberfire.ext.widgets.common.client.ace.AceEditorModegetAceEditorMode()protected StringgetEditorIdentifier()voidgetMenus(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)com.google.gwt.user.client.ui.IsWidgetgetTitle()StringgetTitleText()voidonStartup(org.uberfire.backend.vfs.ObservablePath path, org.uberfire.mvp.PlaceRequest place)protected voidsave(String commitMessage)-
Methods inherited from class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
getContentSupplier, getSaveAndRenameServiceCaller, init, loadContent, makeMenuBar, mayClose, onAfterViewLoaded, onClose
-
Methods inherited from class org.kie.workbench.common.widgets.metadata.client.KieEditor
addCommonActions, addCopy, addDelete, addDownloadMenuItem, addImportsTab, addPage, addRename, addSave, addSourcePage, addTabBarWidget, buildMenuBar, createOriginalHash, getCouldNotGenerateSourceErrorCallback, getMetadataSupplier, getNoSuchFileExceptionErrorCallback, getRenameValidator, getSelectedTabIndex, getWidget, hideDocks, init, init, init, init, isEditorTabSelected, isOverviewTabSelected, mayClose, mayClose, onEditTabSelected, onEditTabUnselected, onHideDocks, onOverviewSelected, onRepositoryRemoved, onSave, onShowDiagramEditorDocks, onSourceTabSelected, registerDock, resetEditorPages, resetEditorPagesOnLoadError, resetMetadata, save, saveAction, selectEditorTab, selectOverviewTab, setOriginalHash, setSelectedTab, showDocks, showVersions, updateSource, verifyEventIdentifier
-
Methods inherited from class org.uberfire.ext.editor.commons.client.BaseEditor
addDownloadMenuItem, disableMenuItem, downloadMenuItem, enableMenuItem, getBeforeSaveAndRenameCommand, getCopyServiceCaller, getCopyValidator, getCurrentContentHash, getDeleteServiceCaller, getPathSupplier, getRenameServiceCaller, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveSuccessCallback, getSaveValidator, getValidateCommand, getVersionRecordManager, init, isDirty, isDirtySupplier, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, showConcurrentUpdatePopup
-
-
-
-
Field Detail
-
EDITOR_ID
public static final String EDITOR_ID
- See Also:
- Constant Field Values
-
notificationEvent
public final javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent
-
translationService
public final org.jboss.errai.ui.client.local.spi.TranslationService translationService
-
-
Constructor Detail
-
PomEditor
@Inject public PomEditor(org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorView baseView, org.jboss.errai.common.client.api.Caller<org.kie.workbench.common.screens.projecteditor.service.PomEditorService> pomEditorService, org.guvnor.common.services.project.client.repositories.ConflictingRepositoriesPopup conflictingRepositoriesPopup, javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
-
-
Method Detail
-
onStartup
public void onStartup(org.uberfire.backend.vfs.ObservablePath path, org.uberfire.mvp.PlaceRequest place)- Overrides:
onStartupin classorg.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
getMenus
public void getMenus(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
- Overrides:
getMenusin classorg.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
getTitle
public com.google.gwt.user.client.ui.IsWidget getTitle()
- Overrides:
getTitlein classorg.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
getTitleText
public String getTitleText()
- Overrides:
getTitleTextin classorg.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
asWidget
public com.google.gwt.user.client.ui.IsWidget asWidget()
-
getAceEditorMode
public org.uberfire.ext.widgets.common.client.ace.AceEditorMode getAceEditorMode()
- Overrides:
getAceEditorModein classorg.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
getEditorIdentifier
protected String getEditorIdentifier()
- Specified by:
getEditorIdentifierin classorg.kie.workbench.common.widgets.metadata.client.KieEditor<String>
-
save
protected void save(String commitMessage)
- Overrides:
savein classorg.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
-
-