public final class ClassPathUiSupport extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClassPathUiSupport.Callback
Optional callback to perform initialization of item.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
addArtifacts(DefaultListModel listModel,
int[] indices,
AntArtifactItem[] artifactItems,
ClassPathUiSupport.Callback callback) |
static int[] |
addJarFiles(DefaultListModel listModel,
int[] indices,
String[] filePaths,
File base,
String[] variables,
ClassPathUiSupport.Callback callback) |
static int[] |
addLibraries(DefaultListModel listModel,
int[] indices,
Library[] libraries,
Set<Library> alreadyIncludedLibs,
ClassPathUiSupport.Callback callback) |
static boolean |
canEdit(ListSelectionModel selectionModel,
DefaultListModel listModel) |
static boolean |
canMoveDown(ListSelectionModel selectionModel,
int modelSize) |
static boolean |
canMoveUp(ListSelectionModel selectionModel) |
static DefaultListModel |
createListModel(Iterator it) |
static void |
edit(DefaultListModel listModel,
int[] selectedIndices,
AntProjectHelper helper) |
static Iterator<ClassPathSupport.Item> |
getIterator(DefaultListModel model) |
static List<ClassPathSupport.Item> |
getList(DefaultListModel model) |
static int[] |
moveDown(DefaultListModel listModel,
int[] indices)
Moves items down in the list.
|
static int[] |
moveUp(DefaultListModel listModel,
int[] indices)
Moves items up in the list.
|
static int[] |
remove(DefaultListModel listModel,
int[] indices)
Removes selected indices from the model.
|
public static DefaultListModel createListModel(Iterator it)
public static Iterator<ClassPathSupport.Item> getIterator(DefaultListModel model)
public static List<ClassPathSupport.Item> getList(DefaultListModel model)
public static boolean canEdit(ListSelectionModel selectionModel, DefaultListModel listModel)
public static void edit(DefaultListModel listModel, int[] selectedIndices, AntProjectHelper helper)
public static int[] moveUp(DefaultListModel listModel, int[] indices)
public static boolean canMoveUp(ListSelectionModel selectionModel)
public static int[] moveDown(DefaultListModel listModel, int[] indices)
public static boolean canMoveDown(ListSelectionModel selectionModel, int modelSize)
public static int[] remove(DefaultListModel listModel, int[] indices)
public static int[] addLibraries(DefaultListModel listModel, int[] indices, Library[] libraries, Set<Library> alreadyIncludedLibs, ClassPathUiSupport.Callback callback)
public static int[] addJarFiles(DefaultListModel listModel, int[] indices, String[] filePaths, File base, String[] variables, ClassPathUiSupport.Callback callback)
public static int[] addArtifacts(DefaultListModel listModel, int[] indices, AntArtifactItem[] artifactItems, ClassPathUiSupport.Callback callback)