public class LoadProjectAction
extends org.eclipse.jface.action.Action
implements org.eclipse.ui.intro.config.IIntroAction, org.eclipse.ui.cheatsheets.ICheatSheetAction, org.eclipse.help.ILiveHelpAction
closeIntro
(or param1 in case of a
cheatsheet/live help), path
(param2), type
(param3)
and bundle
(param4). All are optional. closeIntro
is set to "true" an opened intro is closed when
the action is run.path
is specified the given path gets opened instead of
showing a dialog to choose the project. type
can change this. Valid types are "file", "uri" and
"bundle". "uri" will interpret the path as a URI, nothing happens if the
given path is not a correct URI. bundle
parameter).Modifier and Type | Field and Description |
---|---|
static String |
TYPE_BUNDLE
Value for type parameter, specifying that the path is a bundle internal
path.
|
static String |
TYPE_FILE
Value for type parameter, specifying that the path is a file path.
|
static String |
TYPE_URI
Value for type parameter, specifying that the path is an uri.
|
Constructor and Description |
---|
LoadProjectAction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(boolean closeIntro)
Executes the action.
|
void |
execute(boolean closeIntro,
String path)
Executes the action.
|
void |
execute(boolean closeIntro,
String path,
String type)
Executes the action.
|
void |
execute(boolean closeIntro,
String path,
String type,
String bundle)
Executes the action.
|
void |
run() |
void |
run(org.eclipse.ui.intro.IIntroSite site,
Properties params) |
void |
run(String[] params,
org.eclipse.ui.cheatsheets.ICheatSheetManager manager) |
void |
setInitializationString(String data) |
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, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public static final String TYPE_FILE
public static final String TYPE_URI
public static final String TYPE_BUNDLE
public void run()
public void run(org.eclipse.ui.intro.IIntroSite site, Properties params)
run
in interface org.eclipse.ui.intro.config.IIntroAction
IIntroAction.run(org.eclipse.ui.intro.IIntroSite,
java.util.Properties)
public void run(String[] params, org.eclipse.ui.cheatsheets.ICheatSheetManager manager)
run
in interface org.eclipse.ui.cheatsheets.ICheatSheetAction
ICheatSheetAction.run(java.lang.String[],
org.eclipse.ui.cheatsheets.ICheatSheetManager)
public void setInitializationString(String data)
setInitializationString
in interface org.eclipse.help.ILiveHelpAction
ILiveHelpAction.setInitializationString(java.lang.String)
public void execute(boolean closeIntro)
closeIntro
- whether to close the intro if a project was
opened/loaded or notpublic void execute(boolean closeIntro, String path)
closeIntro
- whether to close the intro if a project was
opened/loaded or notpath
- the file to load, a dialog is shown if fileName is nullpublic void execute(boolean closeIntro, String path, String type)
closeIntro
- whether to close the intro if a project was
opened/loaded or notpath
- the file to load, a dialog is shown if fileName is nulltype
- the type of the pathpublic void execute(boolean closeIntro, String path, String type, String bundle)
closeIntro
- whether to close the intro if a project was
opened/loaded or notpath
- the file to load, a dialog is shown if fileName is nulltype
- the type of the pathbundle
- the bundle in which to locate the path if it is a bundle
type pathBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a