public static final class ProjectConvertor.Result extends Object implements Lookup.Provider
Constructor and Description |
---|
Result(Lookup lookup,
Callable<? extends Project> projectFactory,
String displayName,
Icon icon)
Creates a
ProjectConvertor.Result . |
Modifier and Type | Method and Description |
---|---|
Project |
createProject()
Converts the folder into the
Project . |
String |
getDisplayName()
Returns the
Project display name. |
Icon |
getIcon()
Returns the
Project icon. |
Lookup |
getLookup()
|
public Result(@NonNull Lookup lookup, @NonNull Callable<? extends Project> projectFactory, @NullAllowed String displayName, @NullAllowed Icon icon)
ProjectConvertor.Result
.lookup
- the transient Project
Lookup
which may contain additional project
services. The ProjectInformation
is added automatically but can be
overridden by a custom implementation in this lookupprojectFactory
- the factory method converting a folder into Project
displayName
- the Project
display name may be nullicon
- the Project
icon may be null@CheckForNull public String getDisplayName()
Project
display name.@CheckForNull public Icon getIcon()
Project
icon.@NonNull public Project createProject() throws IOException
Project
.Project
IOException
- in case of error