public class BrokenReferencesSupport extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BrokenReferencesSupport.LibraryDefiner
Service which may be registered to download remote libraries or otherwise define them.
|
static interface |
BrokenReferencesSupport.PlatformUpdatedCallBack
Callback called after the project platform has been updated.
|
@Deprecated public static boolean isBroken(AntProjectHelper projectHelper, ReferenceHelper referenceHelper, String[] properties, String[] platformProperties)
ProjectProblemsProvider
into project lookup,
use BrokenReferencesSupport.createReferenceProblemsProvider(org.netbeans.spi.project.support.ant.AntProjectHelper, org.netbeans.spi.project.support.ant.ReferenceHelper, org.netbeans.spi.project.support.ant.PropertyEvaluator, java.lang.String[], java.lang.String[])
as default
implementation, and use ProjectProblems.isBroken(org.netbeans.api.project.Project)
projectHelper
- AntProjectHelper associated with the project.referenceHelper
- ReferenceHelper associated with the project.properties
- array of property names which values hold
references which may be broken. For example for J2SE project
the property names will be: "javac.classpath", "run.classpath", etc.platformProperties
- array of property names which values hold
name of the platform(s) used by the project. These platforms will be
checked for existence. For example for J2SE project the property
name is one and it is "platform.active". The name of the default
platform is expected to be "default_platform" and this platform
always exists.@Deprecated public static void showCustomizer(AntProjectHelper projectHelper, ReferenceHelper referenceHelper, String[] properties, String[] platformProperties)
ProjectProblemsProvider
into project lookup,
use BrokenReferencesSupport.createReferenceProblemsProvider(org.netbeans.spi.project.support.ant.AntProjectHelper, org.netbeans.spi.project.support.ant.ReferenceHelper, org.netbeans.spi.project.support.ant.PropertyEvaluator, java.lang.String[], java.lang.String[])
as default
implementation, and use ProjectProblems.showCustomizer(org.netbeans.api.project.Project)
projectHelper
- AntProjectHelper associated with the project.referenceHelper
- ReferenceHelper associated with the project.properties
- array of property names which values hold
references which may be broken. For example for J2SE project
the property names will be: "javac.classpath", "run.classpath", etc.platformProperties
- array of property names which values hold
name of the platform(s) used by the project. These platforms will be
checked for existence. For example for J2SE project the property
name is one and it is "platform.active". The name of the default
platform is expected to be "default_platform" and this platform
always exists.BrokenReferencesSupport.LibraryDefiner
@Deprecated public static void showAlert()
ProjectProblemsProvider
into project lookup,
use BrokenReferencesSupport.createReferenceProblemsProvider(org.netbeans.spi.project.support.ant.AntProjectHelper, org.netbeans.spi.project.support.ant.ReferenceHelper, org.netbeans.spi.project.support.ant.PropertyEvaluator, java.lang.String[], java.lang.String[])
as default
implementation, and use ProjectProblems.showAlert(org.netbeans.api.project.Project)
@Deprecated public static void showAlert(@NonNull AntProjectHelper projectHelper, @NonNull ReferenceHelper referenceHelper, @NonNull PropertyEvaluator evaluator, @NonNull String[] properties, @NonNull String[] platformProperties)
ProjectProblemsProvider
into project lookup,
use BrokenReferencesSupport.createReferenceProblemsProvider(org.netbeans.spi.project.support.ant.AntProjectHelper, org.netbeans.spi.project.support.ant.ReferenceHelper, org.netbeans.spi.project.support.ant.PropertyEvaluator, java.lang.String[], java.lang.String[])
as default
implementation, and use ProjectProblems.showAlert(org.netbeans.api.project.Project)
projectHelper
- the AntProjectHelper
used to resolve broken referencesreferenceHelper
- the ReferenceHelper
used to resolve broken referencesevaluator
- the PropertyEvaluator
used to resolve broken referencesproperties
- array of property names which values hold
references which may be broken. For example for J2SE project
the property names will be: "javac.classpath", "run.classpath", etc.platformProperties
- array of property names which values hold
name of the platform(s) used by the project. These platforms will be
checked for existence. For example for J2SE project the property
name is one and it is "platform.active". The name of the default
platform is expected to be "default_platform" and this platform
always exists.@NonNull public static ProjectProblemsProvider createReferenceProblemsProvider(@NonNull AntProjectHelper projectHelper, @NonNull ReferenceHelper referenceHelper, @NonNull PropertyEvaluator evaluator, @NonNull String[] properties, @NonNull String[] platformProperties)
ProjectProblemsProvider
creating broken references
problems.projectHelper
- AntProjectHelper associated with the project.referenceHelper
- ReferenceHelper associated with the project.evaluator
- the PropertyEvaluator
used to resolve broken referencesproperties
- array of property names which values hold
references which may be broken. For example for J2SE project
the property names will be: "javac.classpath", "run.classpath", etc.platformProperties
- array of property names which values hold
name of the platform(s) used by the project. These platforms will be
checked for existence. For example for J2SE project the property
name is one and it is "platform.active". The name of the default
platform is expected to be "default_platform" and this platform
always exists.ProjectProblemsProvider
to be laced into project lookup.ProjectProblemsProvider
@NonNull public static ProjectProblemsProvider createReferenceProblemsProvider(@NonNull AntProjectHelper projectHelper, @NonNull ReferenceHelper referenceHelper, @NonNull PropertyEvaluator evaluator, @NullAllowed BrokenReferencesSupport.PlatformUpdatedCallBack platformUpdatedCallBack, @NonNull String[] properties, @NonNull String[] platformProperties)
ProjectProblemsProvider
creating broken references
problems.projectHelper
- AntProjectHelper associated with the project.referenceHelper
- ReferenceHelper associated with the project.evaluator
- the PropertyEvaluator
used to resolve broken referencesplatformUpdatedCallBack
- called by problem resolution after the platform property has changed
to a new platform. The project type can do project specific changes like updating project.xml file.
The hook is called under ProjectManager.mutex()
write access before the project is saved.properties
- array of property names which values hold
references which may be broken. For example for J2SE project
the property names will be: "javac.classpath", "run.classpath", etc.platformProperties
- array of property names which values hold
name of the platform(s) used by the project. These platforms will be
checked for existence. For example for J2SE project the property
name is one and it is "platform.active". The name of the default
platform is expected to be "default_platform" and this platform
always exists.ProjectProblemsProvider
to be laced into project lookup.ProjectProblemsProvider
@NonNull public static ProjectProblemsProvider createPlatformVersionProblemProvider(@NonNull AntProjectHelper projectHelper, @NonNull PropertyEvaluator evaluator, @NullAllowed BrokenReferencesSupport.PlatformUpdatedCallBack postPlatformSetHook, @NonNull String platformType, @NonNull String platformProperty, @NonNull String... versionProperties)
ProjectProblemsProvider
creating wrong Java platform
version problems.projectHelper
- AntProjectHelper associated with the project.evaluator
- the PropertyEvaluator
used to resolve broken referencespostPlatformSetHook
- called by problem resolution after the platform property has changed
to a new platform. The project type can do project specific changes like updating project.xml file.
The hook is called under ProjectManager.mutex()
write access before the project is saved.platformType
- the type of platform, for example j2seplatformProperty
- a property holding the active platform id.versionProperties
- array of property names which values hold the source,
target level.ProjectProblemsProvider
to be laced into project lookup.ProjectProblemsProvider
@NonNull public static ProjectProblemsProvider createPlatformVersionProblemProvider(@NonNull AntProjectHelper projectHelper, @NonNull PropertyEvaluator evaluator, @NullAllowed BrokenReferencesSupport.PlatformUpdatedCallBack postPlatformSetHook, @NonNull String platformType, @NonNull SpecificationVersion minimalVersion, @NonNull String platformProperty, @NonNull String... versionProperties)
ProjectProblemsProvider
creating wrong Java platform
version problems.projectHelper
- AntProjectHelper associated with the project.evaluator
- the PropertyEvaluator
used to resolve broken referencespostPlatformSetHook
- called by problem resolution after the platform property has changed
to a new platform. The project type can do project specific changes like updating project.xml file.
The hook is called under ProjectManager.mutex()
write access before the project is saved.platformType
- the type of platform, for example j2seminimalVersion
- the minimal source level required by the projectplatformProperty
- a property holding the active platform id.versionProperties
- array of property names which values hold the source,
target level.ProjectProblemsProvider
to be laced into project lookup.ProjectProblemsProvider
@NonNull public static ProjectProblemsProvider createProfileProblemProvider(@NonNull AntProjectHelper projectHelper, @NonNull ReferenceHelper referenceHelper, @NonNull PropertyEvaluator evaluator, @NonNull String profileProperty, @NonNull String... classPathProperties)
ProjectProblemsProvider
creating wrong JDK 8 Profile
problems.projectHelper
- AntProjectHelper associated with the projectreferenceHelper
- ReferenceHelper associated with the projectevaluator
- the PropertyEvaluator
used to resolve broken referencesprofileProperty
- the property holding the actual project profileclassPathProperties
- an array of property names which values hold the
classpaths to be checked.ProjectProblemsProvider
to be placed into project lookup.ProjectProblemsProvider