1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

bug 270031, FileLanguageMappingPropertyPage throws NPE when opened on remote resource

This commit is contained in:
Mike Kucera 2009-03-26 15:31:15 +00:00
parent 5dc7000a12
commit 00d1f34feb

View file

@ -83,7 +83,7 @@ public class FileLanguageMappingPropertyPage extends PropertyPage {
protected Control createContents(Composite parent) {
IFile file = getFile();
IProject project = file.getProject();
fContentType = CContentTypes.getContentType(project, file.getLocation().toString());
fContentType = CContentTypes.getContentType(project, file.getName());
fContents = new Composite(parent, SWT.NONE);
fContents.setLayout(new GridLayout(2, false));