public class OpenFile
extends org.eclipse.core.commands.AbstractHandler
The parameter "URI" is used to determine the correct file service, the path and the file name. An optional file name can be added to present the end user with a different file name as the one used to retrieve it.
The instance specific service is called by its ID and must have been externally created
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
static java.lang.String |
PARAM_FILE_NAME |
static java.lang.String |
PARAM_FILE_URI |
Constructor and Description |
---|
OpenFile() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event) |
java.lang.Object |
execute(java.lang.String openFileServiceId,
java.lang.String fileUri,
java.lang.String fileName) |
void |
setOpenFileServiceId(java.lang.String openFileServiceId) |
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
public static final java.lang.String ID
public static final java.lang.String PARAM_FILE_NAME
public static final java.lang.String PARAM_FILE_URI
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
public java.lang.Object execute(java.lang.String openFileServiceId, java.lang.String fileUri, java.lang.String fileName)
public void setOpenFileServiceId(java.lang.String openFileServiceId)
Copyright © 2007–2020. All rights reserved.