org.netbeans.spi.java.project.support.ui
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.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isBroken(AntProjectHelper projectHelper,
ReferenceHelper referenceHelper,
String[] properties,
String[] platformProperties)
Checks whether the project has some broken references or not.
|
static void |
showAlert()
Show alert message box informing user that a project has broken
references.
|
static void |
showAlert(AntProjectHelper projectHelper,
ReferenceHelper referenceHelper,
PropertyEvaluator evaluator,
String[] properties,
String[] platformProperties)
Show alert message box informing user that a project has broken
references.
|
static void |
showCustomizer(AntProjectHelper projectHelper,
ReferenceHelper referenceHelper,
String[] properties,
String[] platformProperties)
Shows UI customizer which gives users chance to fix encountered problems.
|
public static boolean isBroken(AntProjectHelper projectHelper, ReferenceHelper referenceHelper, String[] properties, String[] platformProperties)
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.public static void showCustomizer(AntProjectHelper projectHelper, ReferenceHelper referenceHelper, String[] properties, String[] platformProperties)
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
public static void showAlert()
public static void showAlert(@NonNull AntProjectHelper projectHelper, @NonNull ReferenceHelper referenceHelper, @NonNull PropertyEvaluator evaluator, @NonNull String[] properties, @NonNull String[] platformProperties)
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.Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.