mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
cleanup
This commit is contained in:
parent
fd3e1ebcc0
commit
e6ecdc51cd
4 changed files with 1 additions and 21 deletions
|
@ -418,9 +418,7 @@ public class CView extends ViewPart implements IMenuListener, ISetSelectionTarge
|
|||
boolean showCUChildren= CPluginPreferencePage.showCompilationUnitChildren();
|
||||
viewer.setUseHashlookup (true);
|
||||
viewer.setContentProvider(new CElementContentProvider (showCUChildren, true));
|
||||
viewer.setLabelProvider (new DecoratingLabelProvider(
|
||||
new StandardCElementLabelProvider (),
|
||||
PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()));
|
||||
setLabelDecorator(PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator());
|
||||
CUIPlugin.getDefault().getProblemMarkerManager().addListener(viewer);
|
||||
CUIPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(this);
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@ import org.eclipse.jface.text.DefaultLineTracker;
|
|||
import org.eclipse.jface.text.Document;
|
||||
import org.eclipse.jface.text.GapTextStore;
|
||||
import org.eclipse.jface.text.IDocument;
|
||||
import org.eclipse.jface.text.IDocumentExtension;
|
||||
import org.eclipse.jface.text.IDocumentListener;
|
||||
import org.eclipse.jface.text.IDocumentPartitioner;
|
||||
import org.eclipse.jface.text.source.IAnnotationModel;
|
||||
import org.eclipse.ui.IEditorInput;
|
||||
|
@ -44,15 +42,6 @@ import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel;
|
|||
|
||||
public class CDocumentProvider extends FileDocumentProvider {
|
||||
|
||||
static private class RegisteredReplace {
|
||||
IDocumentListener fOwner;
|
||||
IDocumentExtension.IReplace fReplace;
|
||||
|
||||
RegisteredReplace(IDocumentListener owner, IDocumentExtension.IReplace replace) {
|
||||
fOwner= owner;
|
||||
fReplace= replace;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Bundle of all required informations to allow working copy management.
|
||||
*/
|
||||
|
|
|
@ -23,8 +23,6 @@ import org.eclipse.ui.editors.text.TextEditorActionContributor;
|
|||
import org.eclipse.ui.texteditor.ITextEditor;
|
||||
import org.eclipse.ui.texteditor.RetargetTextEditorAction;
|
||||
import org.eclipse.ui.texteditor.TextEditorAction;
|
||||
import org.eclipse.ui.texteditor.TextOperationAction;
|
||||
|
||||
|
||||
public class CEditorActionContributor extends TextEditorActionContributor {
|
||||
|
||||
|
@ -85,7 +83,6 @@ public class CEditorActionContributor extends TextEditorActionContributor {
|
|||
protected RetargetTextEditorAction fOpenOnSelection;
|
||||
protected SelectionAction fShiftLeft;
|
||||
protected SelectionAction fShiftRight;
|
||||
private TextOperationAction caAction;
|
||||
private TogglePresentationAction fTogglePresentation;
|
||||
//private ToggleTextHoverAction fToggleTextHover;
|
||||
private GotoErrorAction fPreviousError;
|
||||
|
|
|
@ -37,12 +37,8 @@ public class SearchForReferencesAction extends Action {
|
|||
|
||||
private static final String PREFIX= "SearchForReferencesAction.";
|
||||
|
||||
private static final String DIALOG_TITLE= PREFIX + "dialog.title";
|
||||
private static final String DIALOG_MESSAGE= PREFIX + "dialog.message";
|
||||
|
||||
private ISelectionProvider fSelectionProvider;
|
||||
|
||||
|
||||
public SearchForReferencesAction(ISelectionProvider provider) {
|
||||
super(CUIPlugin.getResourceString(PREFIX + "label"));
|
||||
setDescription(CUIPlugin.getResourceString(PREFIX + "description"));
|
||||
|
|
Loading…
Add table
Reference in a new issue