Class NewApplicationAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
com.e1c.g5.dt.internal.applications.ui.view.NewApplicationAction
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
public class NewApplicationAction
extends org.eclipse.jface.action.Action
The action that creates a new application.
Saves editors before showing application creation wizard.
-
Field Summary
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT -
Constructor Summary
ConstructorsConstructorDescriptionNewApplicationAction(Supplier<org.eclipse.core.resources.IProject> projectProvider, ISaveManager saveManager, IRuntimeInstallationManager runtimeInstallationManager, IApplicationUiSupport applicationUiSupport) Constructor forNewApplicationAction. -
Method Summary
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
NewApplicationAction
public NewApplicationAction(Supplier<org.eclipse.core.resources.IProject> projectProvider, ISaveManager saveManager, IRuntimeInstallationManager runtimeInstallationManager, IApplicationUiSupport applicationUiSupport) Constructor forNewApplicationAction.- Parameters:
projectProvider- Specifies project for which to create new application. Provider itself must not benullbut it may returnnullif no project is currently selected. In this case,NewApplicationDialogis responsible to make sure that a proper project is selected.saveManager- Manager that is to be used to save editors before creating an application. Must not benull.runtimeInstallationManager- 1C:Enterprise Runtime installation manager, that manages this page type of 1C:Enterprise Runtime installations, cannot benullapplicationUiSupport- Service used to show errors. Must not benull.
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceorg.eclipse.jface.action.IAction- Overrides:
runin classorg.eclipse.jface.action.Action
-