org.chromium.debug.core/src/org/chromium/debug/core/model/BreakpointAdapterFactory.java
changeset 355 8726e95bcbba
parent 52 f577ea64429e
equal deleted inserted replaced
354:0bceeb415e7f 355:8726e95bcbba
    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;