Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-29 06:19:40 +0000
committerSergey Prigogin2012-04-29 06:19:40 +0000
commitb136bb95d0899143185a41ece7de44f67aabc577 (patch)
tree381ebb9c1c5a1fc71257d20ee5192aeb9dcc5065 /core/org.eclipse.cdt.ui
parentc8e3a663f086576315829965ed39f65104c54408 (diff)
downloadorg.eclipse.cdt-b136bb95d0899143185a41ece7de44f67aabc577.tar.gz
org.eclipse.cdt-b136bb95d0899143185a41ece7de44f67aabc577.tar.xz
org.eclipse.cdt-b136bb95d0899143185a41ece7de44f67aabc577.zip
Prevented class loading avalanche on UI thread when CDT is installed but
is not actively used.
Diffstat (limited to 'core/org.eclipse.cdt.ui')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java5
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/ICEditor.java20
2 files changed, 23 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java
index cd4398c3813..4057e70b58c 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java
@@ -188,6 +188,7 @@ import org.eclipse.cdt.core.model.ISourceReference;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.core.model.IWorkingCopy;
import org.eclipse.cdt.ui.CUIPlugin;
+import org.eclipse.cdt.ui.ICEditor;
import org.eclipse.cdt.ui.IWorkingCopyManager;
import org.eclipse.cdt.ui.PreferenceConstants;
import org.eclipse.cdt.ui.actions.GenerateActionGroup;
@@ -241,9 +242,9 @@ import org.eclipse.cdt.internal.ui.viewsupport.SelectionListenerWithASTManager;
/**
* C/C++ source editor.
*/
-public class CEditor extends TextEditor implements ISelectionChangedListener, ICReconcilingListener {
+public class CEditor extends TextEditor implements ICEditor, ISelectionChangedListener, ICReconcilingListener {
/** Marker used for synchronization from Problems View to the editor on double-click. */
- private IMarker fSyncProblemsViewMarker = null;
+ private IMarker fSyncProblemsViewMarker;
/**
* A slightly modified implementation of IGotomarker compared to AbstractDecoratedTextEditor.
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/ICEditor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/ICEditor.java
new file mode 100644
index 00000000000..ddda03cdc2e
--- /dev/null
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/ICEditor.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Google, Inc and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Sergey Prigogin (Google) - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.ui;
+
+import org.eclipse.ui.texteditor.ITextEditor;
+
+/**
+ * Marker interface that distinguishes C/C++ editor from other text editors.
+ * @since 5.4
+ */
+public interface ICEditor extends ITextEditor {
+}

Back to the top