GitIgnoreResource resource = getSelectedProject(context).getRootDirectory().getChildOfType(
GitIgnoreResource.class,
".gitignore");
if (resource == null || !resource.exists())
{
resource.createNewFile();
}
return resource;
}
protected boolean isGitIgnoreSelected(UIContext context)