public class WorkspaceRepositoryLoader extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WorkspaceRepositoryLoader.WorkspaceRepositoryLoaderListener |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(WorkspaceRepositoryLoader.WorkspaceRepositoryLoaderListener listener)
Add a listener
|
static boolean |
failed()
return true if an error occurred during the workspace loading process
|
static Workspace |
getWorkspace(java.lang.String className) |
static java.util.ArrayList<java.lang.String> |
getWorkspaceFiles(RepositoryPreferences.RepositoryInfo repos)
Return the workspaces file list from a repository URL
|
static java.util.ArrayList<Workspace> |
getWorkspaces() |
static java.util.ArrayList<Workspace> |
getWorkspaces(RepositoryPreferences.RepositoryInfo repos)
Return the workspace list from the specified repository
|
static boolean |
isLoading() |
static void |
reload()
Reload all online workspaces from all active repositories (old list is cleared)
|
static void |
removeListener(WorkspaceRepositoryLoader.WorkspaceRepositoryLoaderListener listener)
Remove a listener
|
static void |
waitWhileLoading()
wait until loading completed
|
public static java.util.ArrayList<java.lang.String> getWorkspaceFiles(RepositoryPreferences.RepositoryInfo repos)
public static void reload()
public static java.util.ArrayList<Workspace> getWorkspaces()
public static Workspace getWorkspace(java.lang.String className)
public static java.util.ArrayList<Workspace> getWorkspaces(RepositoryPreferences.RepositoryInfo repos)
public static boolean isLoading()
public static void waitWhileLoading()
public static boolean failed()
public static void addListener(WorkspaceRepositoryLoader.WorkspaceRepositoryLoaderListener listener)
listener
- public static void removeListener(WorkspaceRepositoryLoader.WorkspaceRepositoryLoaderListener listener)
listener
-