@Override protected List<Workspace> load() { List<Workspace> list = PrototypePlugin.get().getPrototypes(); return getBrix().filterVisibleWorkspaces(list, Context.ADMINISTRATION); } };
private List<Workspace> getAvailableWorkspaces() { Brix brix = Brix.get(); List<Workspace> workspaces = new ArrayList<Workspace>(); Workspace current = getModelObject(); for (Plugin p : brix.getPlugins()) { List<Workspace> filtered = brix.filterVisibleWorkspaces( p.getWorkspaces(current, false), Context.ADMINISTRATION); for (Workspace w : filtered) { workspaces.add(w); } } if (!workspaces.contains(current) && current != null) { workspaces.add(current); } return workspaces; }
private List<Workspace> getWorkspaces() { Brix brix = getBrix(); List<Workspace> workspaces = new ArrayList<Workspace>(); Workspace current = getModelObject(); for (Plugin p : brix.getPlugins()) { List<Workspace> filtered = brix.filterVisibleWorkspaces( p.getWorkspaces(current, false), Context.ADMINISTRATION); for (Workspace w : filtered) { workspaces.add(w); } } if (!workspaces.contains(current)) { workspaces.add(current); } return workspaces; }
@Override protected List<Workspace> load() { List<Workspace> list = SnapshotPlugin.get().getSnapshotsForWorkspace( getModelObject()); return getBrix().filterVisibleWorkspaces(list, Context.ADMINISTRATION); } };
private List<Workspace> getWorkspaces() { Brix brix = getBrix(); List<Workspace> workspaces = new ArrayList<Workspace>(); Workspace current = getModelObject(); for (Plugin p : brix.getPlugins()) { List<Workspace> filtered = brix.filterVisibleWorkspaces(p.getWorkspaces(current, false), Context.ADMINISTRATION); for (Workspace w : filtered) { if (workspaceNameCache == null) { workspaceNameCache = new HashMap<String, String>(); } workspaceNameCache.put(w.getId(), p.getUserVisibleName(w, false)); workspaces.add(w); } } if (!workspaces.contains(current)) { workspaces.add(current); } return workspaces; }
private List<WorkspaceEntry> loadWorkspaces() { Brix brix = Brix.get(); List<WorkspaceEntry> workspaces = new ArrayList<WorkspaceEntry>(); Workspace currentWorkspace = getCurrentWorkspaceId() != null ? brix.getWorkspaceManager() .getWorkspace(getCurrentWorkspaceId()) : null; for (Plugin p : brix.getPlugins()) { List<Workspace> filtered = brix.filterVisibleWorkspaces(p.getWorkspaces( currentWorkspace, true), Context.PRESENTATION); for (Workspace w : filtered) { WorkspaceEntry we = new WorkspaceEntry(); we.id = w.getId(); we.visibleName = p.getUserVisibleName(w, true); workspaces.add(we); } } return workspaces; }