public abstract class AbstractExportProjectProvider extends Object implements IExportProjectProvider
for usage scenarios| Modifier and Type | Field and Description |
|---|---|
static org.eclipse.core.runtime.IProgressMonitor |
NPM |
| Constructor and Description |
|---|
AbstractExportProjectProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus |
fail(String message)
Produces an error in the application
|
protected String[] |
getApplicationArguments() |
List<String> |
getParameters(String option) |
List<String> |
getParameters(String option,
int expected)
Returns a list of strings representing the parameters to the specified option.
|
protected Map<String,List<String>> |
getParsedArgs()
Returns a mapping from string option to parameter string list
For example, if -option p1 p2 p3 appears on the command line, then the mapping option=>[p1,p2,p3] will be present in the map |
String |
getSingleString(String option)
Gets an option's single parameter, or throws a CoreException should the option
not be present, or if it does not have exactly one parameter
|
boolean |
isPresent(String option)
Returns whether the specified option appears in the application arguments
|
void |
setApplicationArguments(String[] arguments)
This method will be called by the export framework before any other method
in this class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProject, getExportProperties, getLocationConverterprotected String[] getApplicationArguments()
public void setApplicationArguments(String[] arguments)
IExportProjectProvidersetApplicationArguments in interface IExportProjectProviderarguments - the application argumentsPlatform.getApplicationArgs()protected Map<String,List<String>> getParsedArgs()
public String getSingleString(String option) throws org.eclipse.core.runtime.CoreException
option - org.eclipse.core.runtime.CoreException - should the specified option
not be present, or if it does not have exactly one parameterpublic List<String> getParameters(String option)
option - public boolean isPresent(String option)
option - the option to check forpublic List<String> getParameters(String option, int expected) throws org.eclipse.core.runtime.CoreException
option - expected - the number of parameters expectedorg.eclipse.core.runtime.CoreExceptionpublic org.eclipse.core.runtime.IStatus fail(String message) throws org.eclipse.core.runtime.CoreException
message - an error message suitable for the userorg.eclipse.core.runtime.CoreException - Throws a CoreException with an ERROR statusCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.