Class orion.dialogs.DialogService
The dialog service provides common helper dialogs such as confirmation and
information dialogs.
Defined in: </shared/eclipse/e4/orion/I201107200200/plugins/org.eclipse.orion.client.core/web/orion/dialogs.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a new dialog service.
|
Method Attributes | Method Name and Description |
---|---|
confirm(message, onDone)
Prompts the user for configuration, and executes the provided function when done.
|
|
openFiles(onDone)
Prompts the user to select one or more files
|
Class Detail
orion.dialogs.DialogService()
Constructs a new dialog service. Clients should obtain a dialog service by
requesting the service orion.page.dialog from the service registry. This
constructor should only be used by configuration code that is initializing
a service registry
Method Detail
confirm(message, onDone)
Prompts the user for configuration, and executes the provided function when done.
- Parameters:
- {String} message
- The confirmation message
- {Function} onDone
- The function to invoke upon confirmation.
openFiles(onDone)
Prompts the user to select one or more files
- Parameters:
- {Function} onDone
- The function to invoke upon confirmation.