org.netbeans.modules.java.project/1 1.38.1

org.netbeans.spi.java.project.support.ui
Class SharableLibrariesUtils

java.lang.Object
  extended by org.netbeans.spi.java.project.support.ui.SharableLibrariesUtils

public final class SharableLibrariesUtils
extends Object

Utility methods related to sharable libraries UI.

Since:
org.netbeans.modules.java.project 1.15

Field Summary
static String DEFAULT_LIBRARIES_FILENAME
          The default filename for sharable library definition file.
 
Constructor Summary
SharableLibrariesUtils()
           
 
Method Summary
static String browseForLibraryLocation(String current, Component comp, File projectLocation)
          File chooser implementation for browsing for shared library location.
static boolean isLastProjectSharable()
          boolean value representing the state of library sharability of the last created project.
static void setLastProjectSharable(boolean sharable)
          Setter for boolean value representing the state of library sharability of the last created project.
static boolean showMakeSharableWizard(AntProjectHelper helper, ReferenceHelper ref, List<String> libraryNames, List<String> jarReferences)
          Show a multistep wizard for converting a non-sharable project to a sharable, self-contained one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIBRARIES_FILENAME

public static final String DEFAULT_LIBRARIES_FILENAME
The default filename for sharable library definition file.

See Also:
Constant Field Values
Constructor Detail

SharableLibrariesUtils

public SharableLibrariesUtils()
Method Detail

isLastProjectSharable

public static boolean isLastProjectSharable()
boolean value representing the state of library sharability of the last created project. To be used by new project wizards.

Returns:
true if last created project was created sharable, false if not.

setLastProjectSharable

public static void setLastProjectSharable(boolean sharable)
Setter for boolean value representing the state of library sharability of the last created project. To be used by new project wizards.

Parameters:
sharable -

browseForLibraryLocation

public static String browseForLibraryLocation(String current,
                                              Component comp,
                                              File projectLocation)
File chooser implementation for browsing for shared library location.

Parameters:
current -
comp -
projectLocation -
Returns:
relative or absolute path to project libraries folder.

showMakeSharableWizard

public static boolean showMakeSharableWizard(AntProjectHelper helper,
                                             ReferenceHelper ref,
                                             List<String> libraryNames,
                                             List<String> jarReferences)
Show a multistep wizard for converting a non-sharable project to a sharable, self-contained one.

Parameters:
helper -
ref -
libraryNames -
jarReferences -
Returns:
true is migration was performed, false when aborted.

org.netbeans.modules.java.project/1 1.38.1

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