1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Bug 326636 - [disassembly] Enable disassembly view as "editor"

This commit is contained in:
Anton Leherbauer 2010-11-12 10:02:30 +00:00
parent 8378c53a18
commit 8154839ead
2 changed files with 5 additions and 5 deletions

View file

@ -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"/>

View file

@ -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));