eclipse plugin: Remove an obsolete method
This commit is contained in:
parent
6576b785ae
commit
f7a0b20a64
1 changed files with 1 additions and 28 deletions
|
@ -285,8 +285,7 @@ public class WesnothProjectBuilder extends IncrementalProjectBuilder
|
|||
return false;
|
||||
|
||||
// config files
|
||||
if ( ResourceUtils.isConfigFile( resource ) &&
|
||||
!isResourceIgnored( resource ) )
|
||||
if ( ResourceUtils.isConfigFile( resource ) )
|
||||
{
|
||||
IFile file = (IFile) resource;
|
||||
String filePath = file.getProjectRelativePath( ).toString( );
|
||||
|
@ -370,30 +369,4 @@ public class WesnothProjectBuilder extends IncrementalProjectBuilder
|
|||
WMLTools.parseAndAddMarkers( line, Constants.MARKER_WMLSCOPE );
|
||||
monitor.worked(20);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the specified resource should be skipped by the builder
|
||||
* @param res
|
||||
* @return
|
||||
*/
|
||||
private boolean isResourceIgnored(IResource res)
|
||||
{
|
||||
if (ProjectUtils.getPropertiesForProject(project_) == null)
|
||||
return false;
|
||||
|
||||
String[] ignored = ProjectUtils.getPropertiesForProject(project_).getArray("ignored"); //$NON-NLS-1$
|
||||
if (ignored == null)
|
||||
return false;
|
||||
|
||||
for (String path : ignored)
|
||||
{
|
||||
if (path.isEmpty())
|
||||
continue;
|
||||
|
||||
if (StringUtils.normalizePath(WorkspaceUtils.getPathRelativeToUserDir(res))
|
||||
.contains(StringUtils.normalizePath(path)))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue