/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * 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 * * Contributors: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.eclipse.che.plugin.maven.server.core; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; import org.eclipse.jdt.core.IClasspathContainer; import org.eclipse.jdt.core.IClasspathEntry; /** * @author Evgen Vidolob */ public class MavenClasspathContainer implements IClasspathContainer { public static final String CONTAINER_ID = "org.eclipse.che.MAVEN2_CLASSPATH_CONTAINER"; private IClasspathEntry[] entries; public MavenClasspathContainer(IClasspathEntry[] entries) { this.entries = entries; } @Override public IClasspathEntry[] getClasspathEntries() { return entries; } @Override public String getDescription() { return "Maven Dependencies"; } @Override public int getKind() { return IClasspathContainer.K_APPLICATION; } @Override public IPath getPath() { return new Path(CONTAINER_ID); } }