Class 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 String EDITOR_ID  
      javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notificationEvent  
      org.jboss.errai.ui.client.local.spi.TranslationService translationService  
      • 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.IsWidget asWidget()  
      org.uberfire.ext.widgets.common.client.ace.AceEditorMode getAceEditorMode()  
      protected String getEditorIdentifier()  
      void getMenus​(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)  
      com.google.gwt.user.client.ui.IsWidget getTitle()  
      String getTitleText()  
      void onStartup​(org.uberfire.backend.vfs.ObservablePath path, org.uberfire.mvp.PlaceRequest place)  
      protected void save​(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

      • 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:
        onStartup in class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
      • getMenus

        public void getMenus​(Consumer<org.uberfire.workbench.model.menu.Menus> menusConsumer)
        Overrides:
        getMenus in class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
      • getTitle

        public com.google.gwt.user.client.ui.IsWidget getTitle()
        Overrides:
        getTitle in class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
      • getTitleText

        public String getTitleText()
        Overrides:
        getTitleText in class org.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:
        getAceEditorMode in class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter
      • getEditorIdentifier

        protected String getEditorIdentifier()
        Specified by:
        getEditorIdentifier in class org.kie.workbench.common.widgets.metadata.client.KieEditor<String>
      • save

        protected void save​(String commitMessage)
        Overrides:
        save in class org.kie.workbench.common.screens.defaulteditor.client.editor.KieTextEditorPresenter