author | Eugene Ostroukhov <eugeneo@symbian.org> |
Wed, 27 Jan 2010 15:45:27 -0800 | |
changeset 52 | f577ea64429e |
parent 2 | e4420d2515f1 |
child 104 | 58b323842de3 |
permissions | -rw-r--r-- |
2 | 1 |
/******************************************************************************* |
2 |
* Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Symbian Foundation - initial contribution. |
|
11 |
* Contributors: |
|
12 |
* Description: |
|
13 |
* Overview: |
|
14 |
* Details: |
|
15 |
* Platforms/Drives/Compatibility: |
|
16 |
* Assumptions/Requirement/Pre-requisites: |
|
17 |
* Failures and causes: |
|
18 |
*******************************************************************************/ |
|
19 |
package org.symbian.tools.wrttools.debug.internal; |
|
20 |
||
21 |
import org.chromium.debug.core.model.LineBreakpointAdapter; |
|
52
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
22 |
import org.chromium.debug.core.model.VProjectWorkspaceBridge; |
2 | 23 |
import org.eclipse.ui.IWorkbenchPart; |
24 |
import org.eclipse.ui.texteditor.ITextEditor; |
|
25 |
import org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaEditor; |
|
26 |
||
27 |
public class WorkspaceLineBreakpointAdapter extends LineBreakpointAdapter { |
|
28 |
@SuppressWarnings("restriction") |
|
29 |
@Override |
|
30 |
protected ITextEditor getEditor(IWorkbenchPart part) { |
|
31 |
if (part instanceof JavaEditor) { |
|
32 |
return (ITextEditor) part; |
|
33 |
} else { |
|
34 |
return null; |
|
35 |
} |
|
36 |
} |
|
52
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
37 |
|
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
38 |
@Override |
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
39 |
protected String getDebugModelId() { |
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
40 |
return VProjectWorkspaceBridge.DEBUG_MODEL_ID; |
f577ea64429e
Migrated to unmodified Chromium Development Tools version
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
41 |
} |
2 | 42 |
} |