public class OomphIdeExtension extends Object implements P2Declarative
DSL for OomphIdePlugin
.
Constructor and Description |
---|
OomphIdeExtension(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addAllProjects()
Adds all eclipse projects from all gradle projects.
|
void |
addAllProjects(Spec<String> include)
Adds all eclipse projects from all gradle projects whose paths meet the given spec.
|
void |
addProject(String projectPath)
Adds the eclipse project from the given project path.
|
void |
addProjectFolder(Object folderObj)
Adds the given folder as an eclipse project.
|
void |
addSetupAction(SetupAction internalSetupAction)
Adds an action which will be run inside our running application.
|
void |
addSetupActionLazy(Action<List<SetupAction>> lazyInternalSetupAction)
Eventually adds some actions which will be run inside our running application.
|
void |
eclipseIni(Action<EclipseIni> eclipseIni)
Sets properties in the
eclipse.ini . |
P2Model |
getP2()
Returns the P2 model so that users can add the features they’d like.
|
Project |
getProject()
Returns the underlying project.
|
void |
icon(Object icon)
Sets the icon image - any size and format is okay, but something square is recommended.
|
void |
ideDir(Object ideDir)
Sets the folder where the ide will be built.
|
void |
jdt(Action<ConventionJdt> action)
Adds the java development tools.
|
void |
name(String name)
Sets the name of the generated IDE.
|
void |
pde(Action<ConventionPde> action)
Adds the plugin-development environment, @see ConventionPde.
|
void |
perspective(String perspective)
Sets the starting perspective (window layout), see
Perspectives for common perspectives. |
void |
splash(Object splash)
Sets the splash screen image - any size and format is okay.
|
void |
style(Action<ConventionStyle> action)
Convenience methods for setting the style.
|
void |
workspaceProp(String file,
Action<Map<String,String>> configSupplier)
Sets the given path within the workspace directory to be a property file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
artifactRepo, artifactRepo, feature, feature, iu, iu, metadataRepo, metadataRepo, populate, repo, repo, repoEclipse, repoEclipseLatest
public static final String NAME
public OomphIdeExtension(Project project) throws IOException
IOException
public Project getProject()
Returns the underlying project.
public P2Model getP2()
Returns the P2 model so that users can add the features they’d like.
getP2
in interface P2Declarative
public void icon(Object icon)
Sets the icon image - any size and format is okay, but something square is recommended.
public void splash(Object splash)
Sets the splash screen image - any size and format is okay.
public void name(String name)
Sets the name of the generated IDE. Defaults to the name of the root project.
public void perspective(String perspective)
Sets the starting perspective (window layout), see Perspectives
for common perspectives.
public void eclipseIni(Action<EclipseIni> eclipseIni)
Sets properties in the eclipse.ini
.
public void ideDir(Object ideDir)
Sets the folder where the ide will be built.
public void addAllProjects()
Adds all eclipse projects from all gradle projects.
public void addAllProjects(Spec<String> include)
Adds all eclipse projects from all gradle projects whose paths meet the given spec.
public void addProject(String projectPath)
Adds the eclipse project from the given project path.
public void addProjectFolder(Object folderObj)
Adds the given folder as an eclipse project.
public void workspaceProp(String file, Action<Map<String,String>> configSupplier)
Sets the given path within the workspace directory to be a property file.
public void addSetupAction(SetupAction internalSetupAction)
Adds an action which will be run inside our running application.
public void addSetupActionLazy(Action<List<SetupAction>> lazyInternalSetupAction)
Eventually adds some actions which will be run inside our running application.
public void style(Action<ConventionStyle> action)
Convenience methods for setting the style.
public void jdt(Action<ConventionJdt> action)
Adds the java development tools.
public void pde(Action<ConventionPde> action)
Adds the plugin-development environment, @see ConventionPde.