org.chromium.debug.core/src/org/chromium/debug/core/model/BreakpointAdapterFactory.java
equal
deleted
inserted
replaced
21 ITextEditor editorPart = (ITextEditor) adaptableObject; |
21 ITextEditor editorPart = (ITextEditor) adaptableObject; |
22 IResource resource = |
22 IResource resource = |
23 (IResource) editorPart.getEditorInput().getAdapter(IResource.class); |
23 (IResource) editorPart.getEditorInput().getAdapter(IResource.class); |
24 if (resource != null) { |
24 if (resource != null) { |
25 String extension = resource.getFileExtension(); |
25 String extension = resource.getFileExtension(); |
26 if (extension != null && ChromiumDebugPluginUtil.CHROMIUM_EXTENSION.equals(extension)) { |
26 if (extension != null && ChromiumDebugPluginUtil.SUPPORTED_EXTENSIONS.contains(extension)) { |
27 return new LineBreakpointAdapter.ForVirtualProject(); |
27 return new LineBreakpointAdapter.ForVirtualProject(); |
28 } |
28 } |
29 } |
29 } |
30 } |
30 } |
31 return null; |
31 return null; |