mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Bug 326636 - [disassembly] Enable disassembly view as "editor"
This commit is contained in:
parent
8378c53a18
commit
8154839ead
2 changed files with 5 additions and 5 deletions
|
@ -637,7 +637,7 @@
|
|||
</factory>
|
||||
<factory
|
||||
class="org.eclipse.cdt.dsf.debug.internal.ui.actions.RetargettableActionAdapterFactory"
|
||||
adaptableType="org.eclipse.cdt.dsf.debug.internal.ui.disassembly.DisassemblyView">
|
||||
adaptableType="org.eclipse.cdt.dsf.debug.internal.ui.disassembly.provisional.IDisassemblyPart">
|
||||
<adapter type="org.eclipse.debug.ui.actions.IRunToLineTarget"/>
|
||||
<adapter type="org.eclipse.cdt.debug.internal.ui.actions.IResumeAtLineTarget"/>
|
||||
<adapter type="org.eclipse.cdt.debug.internal.ui.actions.IMoveToLineTarget"/>
|
||||
|
|
|
@ -666,6 +666,10 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
|
|||
}
|
||||
|
||||
initializeViewerFont(fViewer);
|
||||
fDocument = createDocument();
|
||||
fViewer.setDocument(fDocument, new AnnotationModel());
|
||||
JFaceResources.getFontRegistry().addListener(fPropertyChangeListener);
|
||||
|
||||
createActions();
|
||||
hookRulerContextMenu();
|
||||
hookContextMenu();
|
||||
|
@ -677,10 +681,6 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
|
|||
}
|
||||
});
|
||||
|
||||
fDocument = createDocument();
|
||||
fViewer.setDocument(fDocument, new AnnotationModel());
|
||||
JFaceResources.getFontRegistry().addListener(fPropertyChangeListener);
|
||||
|
||||
fErrorColor = getSharedColors().getColor(new RGB(96, 0, 0));
|
||||
fInstructionColor = getSharedColors().getColor(new RGB(0, 0, 96));
|
||||
fSourceColor = getSharedColors().getColor(new RGB(64, 0, 80));
|
||||
|
|
Loading…
Add table
Reference in a new issue