public class OomphConvention extends Object implements AutoCloseable
Base class for implementing a DSL around a specific part of the IDE.
| Modifier and Type | Field and Description |
|---|---|
protected OomphIdeExtension |
extension |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is called when the convention block ends.
|
protected void |
requireIUs(String... ius)
Ensures the p2 model contains the given IUs.
|
protected void |
setPerspectiveOver(String toSet,
String... toTrump)
Sets the perspective to the first value, if the existing value is one of the other values.
|
protected final OomphIdeExtension extension
protected void requireIUs(String... ius)
Ensures the p2 model contains the given IUs.
protected void setPerspectiveOver(String toSet, String... toTrump)
Sets the perspective to the first value, if the existing value is one of the other values.
This allows a consistent mechanism for PDE to trump JDT.
public void close()
This is called when the convention block ends.
Usually it can just be empty, but if you’ve been accumulating values, this is your chance to smush them down into a setup action (see ConventionJdt.
close in interface AutoCloseable