Community
Participate
Working Groups
Nothing prevented me from setting a File Content for files without extension (*.) in the Team -> File Content. But it caused all sorts of exception (JFace Steps to reproduce: - select Preferences -> Team -> File Content - press "Add Extension" - enter "*" (star), "OK" - click "Apply" or "OK" - See exception dialog A workaround is to quit Eclipse, delete a few files (the ones with "team") in <workspace>/.metadata/plugins/org.eclipse.core.runtime/.settings, and restart eclipse Note that this is 3.1, I haven't tried on more recent builds.
Created attachment 33879 [details] Exception stacks copied from the Error Log view.
The problem is in how the extensions are read from the preference setting. I think the proper solution for 3.3 is to prevent * from being entered as a file extension. I don't think that wildcards are even supported so we could even detect and prevent any value that contains a *.
WORKSFORME. Wildcards are supported :). But if we have dirty projects (uncommited files) and we ignore all using * filter, project still are marked as dirty...
I think the steps in the original description aren't quite right. Try this: 1) select Preferences -> Team -> File Content 2) press "Add Extension" 3) enter "*" (star), "OK" 4) click "Apply" or "OK" 5) Restart Eclipse 6) select Preferences -> Team -> File Content You should get an exception in this scenario. We need to prevent the file extsnion from being a * (star).
Created attachment 66289 [details] Validator added I still cannot reproduce - everything works just fine. But I have added validator.
You added the check to the Add Name dialog. The problem occurs for the Add Extension button. I think we should have the check for both.
Created attachment 66407 [details] Fix I have checked this once more and I was obviously looking in the wrong place - sorry for the problem. The problem was, that extension could be entered in 3 formats: *.extension, .extension or extension. The start characters * and . was removed, so when the user entered *, empty string was written to preferences and this is the root cause. Now the patch is correct - * and *. and . are not completed pattern.
Patch reviewed and released.
Changing OS from Mac OS to Mac OS X as per bug 185991