diff options
author | Sergey Prigogin | 2012-04-29 06:19:40 +0000 |
---|---|---|
committer | Sergey Prigogin | 2012-04-29 06:19:40 +0000 |
commit | b136bb95d0899143185a41ece7de44f67aabc577 (patch) | |
tree | 381ebb9c1c5a1fc71257d20ee5192aeb9dcc5065 /core/org.eclipse.cdt.ui | |
parent | c8e3a663f086576315829965ed39f65104c54408 (diff) | |
download | org.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.java | 5 | ||||
-rw-r--r-- | core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/ICEditor.java | 20 |
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 { +} |