org.netbeans.api.project
public final class SourceGroupModifier extends Object
SourceGroupModifier
provides ways of create specific folders (SourceGroup
root folders)
in case they don't exist, eg. cannot be retrieved from Sources
The project type supporting automated creation of SourceGroup
root folders needs to
provide SourceGroupModifierImplementation
in the project's lookup.Modifier and Type | Class and Description |
---|---|
static class |
SourceGroupModifier.Future
A wrapper class that is capable of lazily creating a
SourceGroup instance. |
Modifier and Type | Method and Description |
---|---|
static SourceGroup |
createSourceGroup(Project project,
String type,
String hint)
Creates a
SourceGroup in the given Project of the given type and hint. |
static SourceGroupModifier.Future |
createSourceGroupFuture(Project project,
String type,
String hint)
Creates a
SourceGroupModifier.Future object
that is capable of lazily creating SourceGroup in the given Project of the given type and hint. |
public static final SourceGroup createSourceGroup(Project project, String type, String hint)
SourceGroup
in the given Project
of the given type and hint.
Typically a type is a constant for java/groovy/ruby source roots and hint is a constant for main sources or test sources.
Please consult specific APIs fro the supported types/hints. Eg. JavaProjectConstants
for java related project sources.project
- type
- constant for type of sourceshint
- public static final SourceGroupModifier.Future createSourceGroupFuture(Project project, String type, String hint)
SourceGroupModifier.Future
object
that is capable of lazily creating SourceGroup
in the given Project
of the given type and hint.
Typically a type is a constant for java/groovy/ruby source roots and hint is a constant for main sources or test sources.
Please consult specific APIs fro the supported types/hints. Eg. JavaProjectConstants
for java related project sources.project
- type
- constant for type of sourceshint
- Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.