diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 23e296457f0a37394ca98bc6b37a2affa9e16a5b..4e89fbf40bd30faec7be086529202c088f2959e3 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -575,31 +575,6 @@ bool BreakHandler::isActive() const
     return true; // FIXME m_engine->isActive();
 }
 
-void BreakHandler::initializeFromTemplate(BreakHandler *other)
-{
-    Q_UNUSED(other)
-    m_inserted.clear();
-    foreach (BreakpointData *data, m_bp) {
-        if (true /* FIXME m_engine->acceptsBreakpoint(data) */) {
-            BreakpointMarker *marker = m_markers.value(data->id);
-            if (marker)
-                marker->m_handler = this;
-            m_inserted.append(data);
-        }
-    }
-}
-
-void BreakHandler::storeToTemplate(BreakHandler *other)
-{
-    foreach (BreakpointData *data, m_bp) {
-        BreakpointMarker *marker = m_markers.value(data->id);
-        if (marker)
-            marker->m_handler = other;
-        data->clear();
-    }
-    other->saveSessionData();
-}
-
 int BreakHandler::size() const
 {
     return m_bp.size();
diff --git a/src/plugins/debugger/breakhandler.h b/src/plugins/debugger/breakhandler.h
index 429999cb79ffd866fc2256cdaea2561b0f046f36..0099c7c1d3eec6a34a89f14dd398286925b7da12 100644
--- a/src/plugins/debugger/breakhandler.h
+++ b/src/plugins/debugger/breakhandler.h
@@ -88,8 +88,6 @@ public:
     QIcon pendingBreakPointIcon() const { return m_pendingBreakPointIcon; }
     QIcon emptyIcon() const { return m_emptyIcon; }
 
-    void initializeFromTemplate(BreakHandler *other);
-    void storeToTemplate(BreakHandler *other);
     void toggleBreakpoint(const QString &fileName, int lineNumber, quint64 address = 0);
     void toggleBreakpointEnabled(const QString &fileName, int lineNumber);
     BreakpointData *findBreakpoint(const QString &fileName, int lineNumber,
diff --git a/src/plugins/debugger/debuggerengine.h b/src/plugins/debugger/debuggerengine.h
index 81c255caa3158b8396df77dd10cd4e92dd1a1435..f3f5f162ad9c0f00f73426fc26df15e2e8e71756 100644
--- a/src/plugins/debugger/debuggerengine.h
+++ b/src/plugins/debugger/debuggerengine.h
@@ -152,7 +152,6 @@ public:
 
     virtual void setToolTipExpression(const QPoint & mousePos,
         TextEditor::ITextEditor *editor, int cursorPos);
-    void initializeFromTemplate(DebuggerEngine *other);
 
     virtual void updateWatchData(const Internal::WatchData &data,
         const Internal::WatchUpdateFlags & flags = Internal::WatchUpdateFlags());
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index b1523dc438b31b2aa5c0bc6d256bf7b441a09c50..cb601850f8020f7da8cd6924747778cbc4d0cab4 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -443,11 +443,11 @@ namespace Internal {
 // of the engine. That's good for not enabling the related ActiveX control
 // unnecessarily.
 
-void addGdbOptionPages(QList<Core::IOptionsPage*> *opts);
-void addScriptOptionPages(QList<Core::IOptionsPage*> *opts);
-void addTcfOptionPages(QList<Core::IOptionsPage*> *opts);
+void addGdbOptionPages(QList<IOptionsPage*> *opts);
+void addScriptOptionPages(QList<IOptionsPage*> *opts);
+void addTcfOptionPages(QList<IOptionsPage*> *opts);
 #ifdef CDB_ENABLED
-void addCdbOptionPages(QList<Core::IOptionsPage*> *opts);
+void addCdbOptionPages(QList<IOptionsPage*> *opts);
 #endif
 
 
@@ -480,7 +480,7 @@ public:
     DebugMode(QObject *parent = 0) : BaseMode(parent)
     {
         setDisplayName(QCoreApplication::translate("Debugger::Internal::DebugMode", "Debug"));
-        setType(Core::Constants::MODE_EDIT_TYPE);
+        setType(CC::MODE_EDIT_TYPE);
         setId(MODE_DEBUG);
         setIcon(QIcon(__(":/fancyactionbar/images/mode_Debug.png")));
         setPriority(P_MODE_DEBUG);
@@ -656,7 +656,7 @@ QWidget *DebuggingHelperOptionPage::createPage(QWidget *parent)
     m_ui.dumperLocationChooser->setExpectedKind(Utils::PathChooser::Command);
     m_ui.dumperLocationChooser->setPromptDialogTitle(tr("Choose DebuggingHelper Location"));
     m_ui.dumperLocationChooser->setInitialBrowsePathBackup(
-        Core::ICore::instance()->resourcePath() + "../../lib");
+        ICore::instance()->resourcePath() + "../../lib");
 
     m_group.clear();
     m_group.insert(theDebuggerAction(UseDebuggingHelpers),
@@ -811,13 +811,12 @@ static bool parseArguments(const QStringList &args,
 //
 ///////////////////////////////////////////////////////////////////////
 
-static bool isDebuggable(Core::IEditor *editor)
+static bool isDebuggable(IEditor *editor)
 {
     // Only blacklist Qml. Whitelisting would fail on C++ code in files
     // with strange names, more harm would be done this way.
-    //Core::IFile *file = editor->file();
-    //return !(file && file->mimeType() == "application/x-qml");
-
+    //   IFile *file = editor->file();
+    //   return !(file && file->mimeType() == "application/x-qml");
     // Nowadays, even Qml is debuggable.
     Q_UNUSED(editor);
     return true;
@@ -1126,7 +1125,7 @@ public slots:
         const QVariant data = act->data();
         QTC_ASSERT(qVariantCanConvert<BreakpointData *>(data), return);
         BreakpointData *breakPointData = qvariant_cast<BreakpointData *>(data);
-        BreakWindow::editBreakpoint(breakPointData, ICore::instance()->mainWindow());
+        BreakWindow::editBreakpoint(breakPointData, mainWindow());
     }
 
     void slotRunToLine()
@@ -1219,11 +1218,11 @@ public:
 
     QString m_previousMode;
     QScopedPointer<TextEditor::BaseTextMark> m_locationMark;
-    Core::Context m_continuableContext;
-    Core::Context m_interruptibleContext;
-    Core::Context m_undisturbableContext;
-    Core::Context m_finishedContext;
-    Core::Context m_anyContext;
+    Context m_continuableContext;
+    Context m_interruptibleContext;
+    Context m_undisturbableContext;
+    Context m_finishedContext;
+    Context m_anyContext;
     AttachRemoteParameters m_attachRemoteParameters;
 
     QAction *m_startExternalAction;
@@ -1324,11 +1323,11 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(DebuggerPlugin *plugin)
 
     m_debugMode = 0;
 
-    m_continuableContext = Core::Context(0);
-    m_interruptibleContext = Core::Context(0);
-    m_undisturbableContext = Core::Context(0);
-    m_finishedContext = Core::Context(0);
-    m_anyContext = Core::Context(0);
+    m_continuableContext = Context(0);
+    m_interruptibleContext = Context(0);
+    m_undisturbableContext = Context(0);
+    m_finishedContext = Context(0);
+    m_anyContext = Context(0);
 
     m_debugMode = 0;
     m_uiSwitcher = 0;
@@ -1359,10 +1358,10 @@ DebuggerCore *debuggerCore()
 bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
     QString *errorMessage)
 {
-    m_continuableContext = Core::Context("Gdb.Continuable");
-    m_interruptibleContext = Core::Context("Gdb.Interruptible");
-    m_undisturbableContext = Core::Context("Gdb.Undisturbable");
-    m_finishedContext = Core::Context("Gdb.Finished");
+    m_continuableContext = Context("Gdb.Continuable");
+    m_interruptibleContext = Context("Gdb.Interruptible");
+    m_undisturbableContext = Context("Gdb.Undisturbable");
+    m_finishedContext = Context("Gdb.Finished");
     m_anyContext.add(m_continuableContext);
     m_anyContext.add(m_interruptibleContext);
     m_anyContext.add(m_undisturbableContext);
@@ -1376,10 +1375,10 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
     Core::ActionManager *am = core->actionManager();
     QTC_ASSERT(am, return false);
 
-    const Core::Context globalcontext(CC::C_GLOBAL);
-    const Core::Context cppDebuggercontext(C_CPPDEBUGGER);
-    const Core::Context qmlDebuggerContext(C_QMLDEBUGGER);
-    const Core::Context cppeditorcontext(CppEditor::Constants::C_CPPEDITOR);
+    const Context globalcontext(CC::C_GLOBAL);
+    const Context cppDebuggercontext(C_CPPDEBUGGER);
+    const Context qmlDebuggerContext(C_QMLDEBUGGER);
+    const Context cppeditorcontext(CppEditor::Constants::C_CPPEDITOR);
 
     m_startIcon = QIcon(_(":/debugger/images/debugger_start_small.png"));
     m_startIcon.addFile(__(":/debugger/images/debugger_start.png"));
@@ -1608,7 +1607,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
     m_plugin->addAutoReleasedObject(m_debuggerRunControlFactory);
 
     m_debugMode->setContext(
-        Core::Context(CC::C_EDITORMANAGER, C_DEBUGMODE, CC::C_NAVIGATION_PANE));
+        Context(CC::C_EDITORMANAGER, C_DEBUGMODE, CC::C_NAVIGATION_PANE));
 
     m_reverseToolButton = 0;
 
@@ -1667,7 +1666,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
 
     cmd = am->registerAction(m_attachTcfAction,
         Constants::ATTACHTCF, globalcontext);
-    mstart->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
+    mstart->addAction(cmd, CC::G_DEFAULT_ONE);
 
     cmd = am->registerAction(m_startRemoteAction,
         Constants::ATTACHREMOTE, globalcontext);
@@ -2775,7 +2774,7 @@ void DebuggerPluginPrivate::onModeChanged(IMode *mode)
 
 void DebuggerPluginPrivate::showSettingsDialog()
 {
-    Core::ICore::instance()->showOptionsDialog(
+    ICore::instance()->showOptionsDialog(
         _(DEBUGGER_SETTINGS_CATEGORY),
         _(DEBUGGER_COMMON_SETTINGS_ID));
 }
@@ -2803,7 +2802,7 @@ void DebuggerPluginPrivate::clearStatusMessage()
 /*! Activates the previous mode when the current mode is the debug mode. */
 void DebuggerPluginPrivate::activatePreviousMode()
 {
-    Core::ModeManager *modeManager = ICore::instance()->modeManager();
+    ModeManager *modeManager = ICore::instance()->modeManager();
 
     if (modeManager->currentMode() == modeManager->mode(MODE_DEBUG)
             && !m_previousMode.isEmpty()) {
@@ -2941,7 +2940,7 @@ void DebuggerPluginPrivate::openTextEditor(const QString &titlePattern0,
     EditorManager *editorManager = EditorManager::instance();
     QTC_ASSERT(editorManager, return);
     IEditor *editor = editorManager->openEditorWithContents(
-        Core::Constants::K_DEFAULT_TEXT_EDITOR_ID, &titlePattern, contents);
+        CC::K_DEFAULT_TEXT_EDITOR_ID, &titlePattern, contents);
     QTC_ASSERT(editor, return);
     editorManager->activateEditor(editor, EditorManager::IgnoreNavigationHistory);
 }
@@ -3010,7 +3009,7 @@ void DebuggerPluginPrivate::showQtDumperLibraryWarning(const QString &details)
         dialog.setDetailedText(details);
     dialog.exec();
     if (dialog.clickedButton() == qtPref) {
-        Core::ICore::instance()->showOptionsDialog(
+        ICore::instance()->showOptionsDialog(
             _(Qt4ProjectManager::Constants::QT_SETTINGS_CATEGORY),
             _(Qt4ProjectManager::Constants::QTVERSION_SETTINGS_PAGE_ID));
     } else if (dialog.clickedButton() == helperOff) {
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 46b2cb4f2f96891492dd6c1df43d6eecd628959b..65cf5d59c3576b3f2f7c674332027f1289813f6e 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1557,21 +1557,6 @@ void WatchHandler::synchronizeWatchers()
     }
 }
 
-void WatchHandler::initializeFromTemplate(WatchHandler *other)
-{
-    m_watcherNames = other->m_watcherNames;
-    m_typeFormats = other->m_typeFormats;
-    m_individualFormats = other->m_individualFormats;
-}
-
-void WatchHandler::storeToTemplate(WatchHandler *other)
-{
-    other->m_watcherNames = m_watcherNames;
-    other->m_typeFormats = m_typeFormats;
-    other->m_individualFormats = m_individualFormats;
-}
-
-
 WatchModel *WatchHandler::model(WatchType type) const
 {
     switch (type) {
diff --git a/src/plugins/debugger/watchhandler.h b/src/plugins/debugger/watchhandler.h
index f818f15bb308fd457f6e57369c435ebf2f5b4c43..3bffa6470dcadff3b3f1ba98bece1d47167e0fc7 100644
--- a/src/plugins/debugger/watchhandler.h
+++ b/src/plugins/debugger/watchhandler.h
@@ -157,9 +157,6 @@ public:
     static void saveSessionData();
     void removeTooltip();
 
-    void initializeFromTemplate(WatchHandler *other);
-    void storeToTemplate(WatchHandler *other);
-
     bool isExpandedIName(const QByteArray &iname) const
         { return m_expandedINames.contains(iname); }
     QSet<QByteArray> expandedINames() const