blob: 7e4c3522b850898f3905650ff21a2fe38dcfd0ba [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2011 Mia-Software and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Nicolas Bros (Mia-Software) - initial API and implementation
*******************************************************************************/
package org.eclipse.modisco.infra.query.core.exception;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
import org.osgi.framework.Bundle;
/**
* @deprecated replaced by EMF Facet, cf. https://bugs.eclipse.org/bugs/show_bug.cgi?id=470578
*/
@Deprecated
public class BundleClassPathException extends ModelQueryException {
private static final long serialVersionUID = 8664502897169666916L;
private final IProject project;
private final Bundle bundle;
private final IPath outputLocation;
public IProject getProject() {
return this.project;
}
public Bundle getBundle() {
return this.bundle;
}
public IPath getOutputLocation() {
return this.outputLocation;
}
public BundleClassPathException(final IProject project, final IPath outputLocation,
final Bundle localBundle) {
super(
"The output location of the Java project '" + project.getName() + "' was not found in its Bundle-ClassPath: \"" + outputLocation + //$NON-NLS-1$//$NON-NLS-2$
"\". This prevents the Java queries implementations it contains from being loaded."); //$NON-NLS-1$
this.project = project;
this.outputLocation = outputLocation;
this.bundle = localBundle;
}
}