mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
Bug 82264: Enhance the Shared Libraries view. Added the definition of detail pane font.
This commit is contained in:
parent
4fe2f1e7d8
commit
37b5f06416
5 changed files with 42 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
2005-02-07 Mikhail Khodjaiants
|
||||
Bug 82264: Enhance the Shared Libraries view.
|
||||
Added the definition of detail pane font.
|
||||
* IInternalCDebugUIConstants.java
|
||||
* ModulesView.java
|
||||
* plugin.xml
|
||||
* plugin.properties
|
||||
|
||||
2005-02-07 Mikhail Khodjaiants
|
||||
Bug 82264: Enhance the Shared Libraries view.
|
||||
* CDebugUIMessages.properties
|
||||
|
|
|
@ -103,10 +103,10 @@ DisassemblyCurrentInstructionPointer=Disassembly Current Instruction Pointer
|
|||
DisassemblySecondaryInstructionPointer=Disassembly Secondary Instruction Pointer
|
||||
|
||||
DebugPresentation.label=C/C++ Debug Appearance
|
||||
DisassemblySourceLineColor.label=Disassembly Source Line text color
|
||||
DisassemblySourceLineColor.label=Disassembly Source Line Text Color
|
||||
DisassemblySourceLineColor.description=The color used in the Disassembly view for source lines.
|
||||
DisassemblyFontDefinition.label=Disassembly View text font
|
||||
DisassemblyFontDefinition.description=The font used in the Disassembly view.
|
||||
DisassemblyFontDefinition.label=Disassembly View Text Font
|
||||
DisassemblyFontDefinition.description=The text font used in the Disassembly view.
|
||||
|
||||
DebugTextHover.label=Debugger
|
||||
DebugTextHover.description=Shows the value of the expression selected in the debug perspective.
|
||||
|
@ -118,5 +118,8 @@ CommonBreakpointPage.label=Common
|
|||
FilteringBreakpointPage.label=Filtering
|
||||
CommonSignalPage.label=Common
|
||||
|
||||
ModulesDetailPaneFontDefinition.label=Modules View Detail Pane Text Font
|
||||
ModulesDetailPaneFontDefinition.description=The text font used in the detail pane of the Modules view.
|
||||
|
||||
CollapseAllModulesAction.label=Collapse All
|
||||
CollapseAllModulesAction.tooltip=Collapse All
|
||||
|
|
|
@ -1177,6 +1177,15 @@
|
|||
%DisassemblyFontDefinition.description
|
||||
</description>
|
||||
</fontDefinition>
|
||||
<fontDefinition
|
||||
defaultsTo="org.eclipse.jface.textfont"
|
||||
label="%ModulesDetailPaneFontDefinition.label"
|
||||
categoryId="org.eclipse.debug.ui.presentation"
|
||||
id="org.eclipse.cdt.debug.ui.ModulesDetailPaneFont">
|
||||
<description>
|
||||
%ModulesDetailPaneFontDefinition.description
|
||||
</description>
|
||||
</fontDefinition>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.debug.core.watchExpressionDelegates">
|
||||
|
|
|
@ -62,7 +62,7 @@ public interface IInternalCDebugUIConstants {
|
|||
* The name of the font to use for detail panes. This font is managed via
|
||||
* the workbench font preference page.
|
||||
*/
|
||||
public static final String DETAIL_PANE_FONT = PREFIX + "DetailPaneFont"; //$NON-NLS-1$
|
||||
public static final String DETAIL_PANE_FONT = PREFIX + "ModulesDetailPaneFont"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Status code indicating an unexpected internal error.
|
||||
|
|
|
@ -274,6 +274,10 @@ public class ModulesView extends AbstractDebugEventHandlerView implements IDebug
|
|||
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
|
||||
*/
|
||||
public void propertyChange( PropertyChangeEvent event ) {
|
||||
String propertyName = event.getProperty();
|
||||
if ( propertyName.equals( IInternalCDebugUIConstants.DETAIL_PANE_FONT ) ) {
|
||||
getDetailViewer().getTextWidget().setFont( JFaceResources.getFont( IInternalCDebugUIConstants.DETAIL_PANE_FONT ) );
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
@ -798,4 +802,18 @@ public class ModulesView extends AbstractDebugEventHandlerView implements IDebug
|
|||
};
|
||||
asyncExec( runnable );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.ui.IWorkbenchPart#dispose()
|
||||
*/
|
||||
public void dispose() {
|
||||
getSite().getPage().removeSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
|
||||
CDebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener( this );
|
||||
JFaceResources.getFontRegistry().removeListener( this );
|
||||
Viewer viewer = getViewer();
|
||||
if ( viewer != null ) {
|
||||
getDetailDocument().removeDocumentListener( getDetailDocumentListener() );
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue