eclipse plugin: Rename the 'getDefines' into 'getMacros'

This commit is contained in:
Timotei Dolean 2011-07-15 21:03:27 +00:00
parent ca2d590635
commit ebd14a50a9
3 changed files with 5 additions and 5 deletions

View file

@ -291,7 +291,7 @@ public class WesnothProjectBuilder extends IncrementalProjectBuilder
{
IFile file = (IFile) resource;
String filePath = file.getProjectRelativePath( ).toString( );
String macrosFilePath = PreprocessorUtils.getInstance( ).getDefinesLocation( file );
String macrosFilePath = PreprocessorUtils.getInstance( ).getMacrosLocation( file );
Logger.getInstance().log( "Resource: " + filePath ); //$NON-NLS-1$

View file

@ -233,10 +233,10 @@ public class PreprocessorUtils
* specified resource.
*
* Currently we store just a defines file per project.
* @param resource
* @return
* @param resource The resource to get the location for
* @return A string that points to the macros file.
*/
public String getDefinesLocation(IResource resource)
public String getMacrosLocation(IResource resource)
{
return WorkspaceUtils.getProjectTemporaryFolder( resource.getProject( ) ) +
"/_MACROS_.cfg"; //$NON-NLS-1$

View file

@ -68,7 +68,7 @@ public class ProjectCache
wesnothFile_ = new File(project.getLocation().toOSString() +
"/.wesnoth"); //$NON-NLS-1$
definesFile_ = new File (PreprocessorUtils.getInstance().getDefinesLocation( project ));
definesFile_ = new File (PreprocessorUtils.getInstance().getMacrosLocation( project ));
treeCacheFile_ = new File ( WorkspaceUtils.getProjectTemporaryFolder( project ) + "/_TREE_CACHE_.bin" ); //$NON-NLS-1$
ResourceUtils.createWesnothFile(wesnothFile_.getAbsolutePath(), false);