1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Remove the static qualifiers add getBinaryParserFormat()

setBinaryParserFormat()
This commit is contained in:
Alain Magloire 2002-11-27 04:43:49 +00:00
parent 3589bf402a
commit fef6269388

View file

@ -12,8 +12,7 @@ import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
// This should be done in the Plugin.
public class CoreModel { public class CoreModel {
@ -72,91 +71,91 @@ public class CoreModel {
/** /**
* Return true if IFile is a shared library, i.e. libxx.so * Return true if IFile is a shared library, i.e. libxx.so
*/ */
public static boolean isSharedLib(IFile file) { public boolean isSharedLib(IFile file) {
return manager.isSharedLib(file); return manager.isSharedLib(file);
} }
/** /**
* Return true if IFile is a an object(ELF), i.e. *.o * Return true if IFile is a an object(ELF), i.e. *.o
*/ */
public static boolean isObject(IFile file) { public boolean isObject(IFile file) {
return manager.isObject(file); return manager.isObject(file);
} }
/** /**
* Return true if IFile is an ELF executable * Return true if IFile is an ELF executable
*/ */
public static boolean isExecutable(IFile file) { public boolean isExecutable(IFile file) {
return manager.isExecutable(file); return manager.isExecutable(file);
} }
/** /**
* Return true if IFile is an ELF. * Return true if IFile is an ELF.
*/ */
public static boolean isBinary(IFile file) { public boolean isBinary(IFile file) {
return manager.isBinary(file); return manager.isBinary(file);
} }
/** /**
* Return true if IFile is an Achive, *.a * Return true if IFile is an Achive, *.a
*/ */
public static boolean isArchive(IFile file) { public boolean isArchive(IFile file) {
return manager.isArchive(file); return manager.isArchive(file);
} }
/** /**
* Return true if IFile is a TranslationUnit. * Return true if IFile is a TranslationUnit.
*/ */
public static boolean isTranslationUnit(IFile file) { public boolean isTranslationUnit(IFile file) {
return manager.isTranslationUnit(file); return manager.isTranslationUnit(file);
} }
/** /**
* Return true if name is a valid name for a translation unit. * Return true if name is a valid name for a translation unit.
*/ */
public static boolean isValidTranslationUnitName(String name){ public boolean isValidTranslationUnitName(String name){
return manager.isValidTranslationUnitName(name); return manager.isValidTranslationUnitName(name);
} }
/** /**
* Return true if project has C nature. * Return true if project has C nature.
*/ */
public static boolean hasCNature(IProject project){ public boolean hasCNature(IProject project){
return manager.hasCNature(project); return manager.hasCNature(project);
} }
public static boolean hasCCNature(IProject project){ public boolean hasCCNature(IProject project){
return manager.hasCCNature(project); return manager.hasCCNature(project);
} }
/** /**
* Return the the binaryParser of the Project. * Return the binaryParser of the Project.
*/ */
public static IBinaryParser getBinaryParser(IProject project) { public String getBinaryParserFormat(IProject project) {
return manager.getBinaryParser(project); return manager.getBinaryParserFormat(project);
}
/**
* Return all the known binaryParsers formats.
*/
public static String[] getBinaryParserFormats() {
return CCorePlugin.getDefault().getBinaryParserFormats();
} }
/** /**
* Save the binary parser for the project. * Set the binaryParser of the Project.
*/ */
public static void setBinaryParser(IProject project, String format) { public void setBinaryParserFormat(IProject project, String format, IProgressMonitor monitor) {
manager.setBinaryParser(project, format); manager.setBinaryParserFormat(project, format, monitor);
} }
/** /**
* Return the BinaryParser corresponding to this format. * Return the default BinaryParser format
*/ */
public static IBinaryParser getBinaryParser(String format) { public String getDefaultBinaryParserFormat() {
return CCorePlugin.getDefault().getBinaryParser(format); return manager.getDefaultBinaryParserFormat();
} }
/**
* Set the default binaryParser.
*/
public void setDefaultBinaryParserFormat(String format) {
manager.setDefaultBinaryParserFormat(format);
}
/** /**
* Return the singleton. * Return the singleton.
*/ */