@Dependent public class ScenarioSimulationEditorPresenter extends org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>
| Modifier and Type | Field and Description |
|---|---|
protected com.google.gwt.event.shared.EventBus |
eventBus |
static String |
IDENTIFIER |
protected org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle |
oracle |
protected String |
packageName |
protected org.uberfire.backend.vfs.ObservablePath |
path |
protected org.uberfire.mvp.PlaceRequest |
rightPanelRequest |
protected ScenarioGridPanel |
scenarioGridPanel |
alertsButtonMenuItemBuilder, assetUpdateValidator, copyPopUpPresenter, deletePopUpPresenter, fileMenuBuilder, kieView, metadata, overviewWidget, projectController, renamePopUpPresenter, savePopUpPresenter, workbenchContextbaseView, changeTitleNotification, concurrentDeleteAcceptedEvent, concurrentDeleteIgnoredEvent, concurrentRenameAcceptedEvent, concurrentRenameIgnoredEvent, concurrentUpdateSessionInfo, fileNameValidator, isReadOnly, isValidationRunning, menuBuilder, menuBuilderManagedInstance, menuItems, menus, metadataOriginalHash, notification, originalHash, place, placeManager, saveAndRenameCommandBuilder, versionRecordManager| Constructor and Description |
|---|
ScenarioSimulationEditorPresenter() |
ScenarioSimulationEditorPresenter(org.jboss.errai.common.client.api.Caller<ScenarioSimulationService> service,
ScenarioSimulationProducer scenarioSimulationProducer,
ScenarioSimulationResourceType type,
org.kie.workbench.common.widgets.configresource.client.widget.bound.ImportsWidgetPresenter importsWidget,
org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracleFactory oracleFactory,
org.uberfire.client.mvp.PlaceManager placeManager,
org.kie.workbench.common.workbench.client.test.TestRunnerReportingScreen testRunnerReportingScreen,
ScenarioSimulationDocksHandler scenarioSimulationDocksHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonActions(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder) |
void |
expandToolsDock() |
protected org.uberfire.client.callbacks.Callback<org.kie.soup.project.datamodel.oracle.ModelField[]> |
fieldCompletionsCallback(String factName,
org.uberfire.client.callbacks.Callback<FactModelTree> aggregatorCallback)
This
Callback will receive ModelField[] from AsyncPackageDataModelOracleFactory.getFieldCompletions(final String,
final Callback<ModelField[]>); build a FactModelTree from them, and send it to the
given Callback<FactModelTree> aggregatorCallback |
protected Supplier<ScenarioSimulationModel> |
getContentSupplier() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsCopy> |
getCopyServiceCaller() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsDelete> |
getDeleteServiceCaller() |
protected FactModelTree |
getFactModelTree(String factName,
org.kie.soup.project.datamodel.oracle.ModelField[] modelFields)
Create a
FactModelTree for a given factName populating it with the given
ModelField[] |
org.uberfire.workbench.model.menu.Menus |
getMenus() |
ScenarioSimulationModel |
getModel() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsRename> |
getRenameServiceCaller() |
protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>> |
getSaveAndRenameServiceCaller() |
com.google.gwt.user.client.ui.IsWidget |
getTitle() |
String |
getTitleText() |
ScenarioSimulationView |
getView() |
com.google.gwt.user.client.ui.IsWidget |
getWidget() |
protected void |
loadContent() |
protected void |
makeMenuBar()
If you want to customize the menu override this method.
|
boolean |
mayClose() |
void |
onClose() |
void |
onPlaceGainFocusEvent(org.uberfire.client.workbench.events.PlaceGainFocusEvent placeGainFocusEvent) |
void |
onPlaceHiddenEvent(org.uberfire.client.workbench.events.PlaceHiddenEvent placeHiddenEvent) |
void |
onRunScenario() |
void |
onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place) |
protected void |
registerRightPanelCallback() |
void |
reloadRightPanel(boolean disable)
To be called to force right panel reload
|
protected void |
save(String commitMessage) |
protected void |
unRegisterRightPanelCallback() |
addCopy, addDelete, addDownloadMenuItem, addImportsTab, addPage, addRename, addSave, addSourcePage, buildMenuBar, canUpdateProject, createOriginalHash, getCouldNotGenerateSourceErrorCallback, getMetadataSupplier, getNoSuchFileExceptionErrorCallback, getRenameValidator, getSelectedTabIndex, init, init, init, init, isEditorTabSelected, isOverviewTabSelected, mayClose, mayClose, OnClose, onEditTabSelected, onEditTabUnselected, onOverviewSelected, onRepositoryRemoved, onSave, onSourceTabSelected, resetEditorPages, save, saveAction, selectEditorTab, selectOverviewTab, setOriginalHash, setSelectedTab, showVersions, updateSourceaddDownloadMenuItem, downloadMenuItem, getCopyValidator, getCurrentContentHash, getPathSupplier, getSaveAndRename, getSaveAndRenameCommandBuilder, getSaveSuccessCallback, getValidateCommand, getVersionRecordManager, init, isDirty, isDirtySupplier, onAfterValidate, onBeforeValidate, onRename, onRestore, onSuccess, onValidate, reload, setMetadataOriginalHash, showConcurrentUpdatePopuppublic static final String IDENTIFIER
protected org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle oracle
protected String packageName
protected org.uberfire.mvp.PlaceRequest rightPanelRequest
protected org.uberfire.backend.vfs.ObservablePath path
protected com.google.gwt.event.shared.EventBus eventBus
protected ScenarioGridPanel scenarioGridPanel
public ScenarioSimulationEditorPresenter()
@Inject public ScenarioSimulationEditorPresenter(org.jboss.errai.common.client.api.Caller<ScenarioSimulationService> service, ScenarioSimulationProducer scenarioSimulationProducer, ScenarioSimulationResourceType type, org.kie.workbench.common.widgets.configresource.client.widget.bound.ImportsWidgetPresenter importsWidget, org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracleFactory oracleFactory, org.uberfire.client.mvp.PlaceManager placeManager, org.kie.workbench.common.workbench.client.test.TestRunnerReportingScreen testRunnerReportingScreen, ScenarioSimulationDocksHandler scenarioSimulationDocksHandler)
public void onStartup(org.uberfire.backend.vfs.ObservablePath path,
org.uberfire.mvp.PlaceRequest place)
public void onClose()
@OnMayClose public boolean mayClose()
public String getTitleText()
getTitleText in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>public com.google.gwt.user.client.ui.IsWidget getTitle()
getTitle in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>public com.google.gwt.user.client.ui.IsWidget getWidget()
getWidget in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>public org.uberfire.workbench.model.menu.Menus getMenus()
public void onPlaceGainFocusEvent(@Observes
org.uberfire.client.workbench.events.PlaceGainFocusEvent placeGainFocusEvent)
public void onPlaceHiddenEvent(@Observes
org.uberfire.client.workbench.events.PlaceHiddenEvent placeHiddenEvent)
public void expandToolsDock()
public ScenarioSimulationView getView()
public ScenarioSimulationModel getModel()
public void reloadRightPanel(boolean disable)
disable - set this to true to also disable the panelpublic void onRunScenario()
protected void registerRightPanelCallback()
protected void unRegisterRightPanelCallback()
protected void makeMenuBar()
makeMenuBar in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected Supplier<ScenarioSimulationModel> getContentSupplier()
getContentSupplier in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected void save(String commitMessage)
save in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected void addCommonActions(org.kie.workbench.common.widgets.client.menu.FileMenuBuilder fileMenuBuilder)
addCommonActions in class org.kie.workbench.common.widgets.metadata.client.KieEditor<ScenarioSimulationModel>protected void loadContent()
loadContent in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.uberfire.client.callbacks.Callback<org.kie.soup.project.datamodel.oracle.ModelField[]> fieldCompletionsCallback(String factName, org.uberfire.client.callbacks.Callback<FactModelTree> aggregatorCallback)
Callback will receive ModelField[] from AsyncPackageDataModelOracleFactory.getFieldCompletions(final String,
final Callback<ModelField[]>); build a FactModelTree from them, and send it to the
given Callback<FactModelTree> aggregatorCallbackfactName - aggregatorCallback - protected FactModelTree getFactModelTree(String factName, org.kie.soup.project.datamodel.oracle.ModelField[] modelFields)
FactModelTree for a given factName populating it with the given
ModelField[]factName - modelFields - protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsDelete> getDeleteServiceCaller()
getDeleteServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsRename> getRenameServiceCaller()
getRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsCopy> getCopyServiceCaller()
getCopyServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>protected org.jboss.errai.common.client.api.Caller<? extends org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>> getSaveAndRenameServiceCaller()
getSaveAndRenameServiceCaller in class org.uberfire.ext.editor.commons.client.BaseEditor<ScenarioSimulationModel,org.guvnor.common.services.shared.metadata.model.Metadata>Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.