mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
New class implements ILibraryReference
This commit is contained in:
parent
eac587f614
commit
34f18c1a07
1 changed files with 49 additions and 0 deletions
|
@ -0,0 +1,49 @@
|
||||||
|
/*
|
||||||
|
* Created on Apr 2, 2003
|
||||||
|
*
|
||||||
|
* To change this generated comment go to
|
||||||
|
* Window>Preferences>Java>Code Generation>Code Template
|
||||||
|
*/
|
||||||
|
package org.eclipse.cdt.internal.core.model;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.ICPathEntry;
|
||||||
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
|
import org.eclipse.cdt.core.model.ILibraryReference;
|
||||||
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.runtime.IPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author alain
|
||||||
|
*/
|
||||||
|
public class LibraryReference extends Parent implements ILibraryReference {
|
||||||
|
|
||||||
|
ICPathEntry entry;
|
||||||
|
public LibraryReference(ICElement parent, String name, ICPathEntry e) {
|
||||||
|
super(parent, name, ICElement.C_VCONTAINER);
|
||||||
|
entry = e;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.core.model.ICElement#getResource()
|
||||||
|
*/
|
||||||
|
public IResource getResource() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.internal.core.model.CElement#createElementInfo()
|
||||||
|
*/
|
||||||
|
protected CElementInfo createElementInfo() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return new CElementInfo(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.core.model.ICElement#getPath()
|
||||||
|
*/
|
||||||
|
public IPath getPath() {
|
||||||
|
return entry.getPath();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue