1
0
Fork 0
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:
Mikhail Khodjaiants 2005-02-07 23:59:27 +00:00
parent 4fe2f1e7d8
commit 37b5f06416
5 changed files with 42 additions and 4 deletions

View file

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

View file

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

View file

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

View file

@ -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.

View file

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