org.netbeans.modules.projectapi/1 1.36.1

org.netbeans.api.project
Class SourceGroupModifier

java.lang.Object
  extended by org.netbeans.api.project.SourceGroupModifier

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.

Since:
org.netbeans.modules.projectapi 1.24

Nested Class Summary
static class SourceGroupModifier.Future
          A wrapper class that is capable of lazily creating a SourceGroup instance.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSourceGroup

public static final SourceGroup createSourceGroup(Project project,
                                                  String type,
                                                  String hint)
Creates a 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.

Parameters:
project -
type - constant for type of sources
hint -
Returns:
the created SourceGroup or null

createSourceGroupFuture

public static final 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. 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.

Parameters:
project -
type - constant for type of sources
hint -
Returns:
Future instance that is capable of creating a SourceGroup or null

org.netbeans.modules.projectapi/1 1.36.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.