/******************************************************************************* * Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html *******************************************************************************/ package org.erlide.ui.containers; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.util.URI; import org.eclipse.xtext.ui.containers.AbstractAllContainersState; import com.google.inject.Inject; import com.google.inject.Singleton; /** * @author Sebastian Zarnekow - Initial contribution and API */ @Singleton public class WorkspaceProjectsState extends AbstractAllContainersState { @Inject private WorkspaceProjectsStateHelper helper; @Override protected String doInitHandle(final URI uri) { return helper.initHandle(uri); } @Override protected Collection<URI> doInitContainedURIs(final String containerHandle) { return helper.initContainedURIs(containerHandle); } @Override protected List<String> doInitVisibleHandles(final String handle) { return helper.initVisibleHandles(handle); } public WorkspaceProjectsStateHelper getHelper() { return helper; } public void setHelper(final WorkspaceProjectsStateHelper helper) { this.helper = helper; } }