Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2004-03-30 09:34:45 -0500
committerAlain Magloire2004-03-30 09:34:45 -0500
commit24a43f659dfcab8cc4618c153b789a7418fbb8f1 (patch)
treee347db19b5c0d84e84c849507a1f431dc3fd7112 /core
parent97c2767637009f452a9f63d1ed02cf7c4c6ebb2f (diff)
downloadorg.eclipse.cdt-24a43f659dfcab8cc4618c153b789a7418fbb8f1.tar.gz
org.eclipse.cdt-24a43f659dfcab8cc4618c153b789a7418fbb8f1.tar.xz
org.eclipse.cdt-24a43f659dfcab8cc4618c153b789a7418fbb8f1.zip
Fix PR 56734
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/ChangeLog7
-rw-r--r--core/org.eclipse.cdt.ui/plugin.xml2
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsolePage.java30
3 files changed, 27 insertions, 12 deletions
diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog
index 01500764c6..e104f76af5 100644
--- a/core/org.eclipse.cdt.ui/ChangeLog
+++ b/core/org.eclipse.cdt.ui/ChangeLog
@@ -1,5 +1,12 @@
2004-03-30 Alain Magloire
+ Fix PR 56734
+
+ * src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsolePage.java
+ * puglin.xml
+
+2004-03-30 Alain Magloire
+
Show the import/export menu even when no selection.
PR 56650
* src/org/eclipse/cdt/internal/cview/MainActiongroup.java
diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml
index 19cf5f2461..e5beca4553 100644
--- a/core/org.eclipse.cdt.ui/plugin.xml
+++ b/core/org.eclipse.cdt.ui/plugin.xml
@@ -70,7 +70,7 @@
enabled="false"
description="%HideObjectFiles.description"
class="org.eclipse.cdt.internal.ui.filters.ObjectFilter"
- id="org.eclipse.cdt.internal.ui.CView.ArchiveFilter">
+ id="org.eclipse.cdt.internal.ui.CView.ObjectFilter">
</filter>
<filter
targetId="org.eclipse.cdt.ui.CView"
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsolePage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsolePage.java
index 957bad6d73..8662638d05 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsolePage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsolePage.java
@@ -197,18 +197,26 @@ public class BuildConsolePage extends Page implements ISelectionListener, IPrope
* @see org.eclipse.jface.util.IPropertyChangeListener#propertyChange(org.eclipse.jface.util.PropertyChangeEvent)
*/
public void propertyChange(PropertyChangeEvent event) {
- Object source = event.getSource();
- String property = event.getProperty();
- if (BuildConsole.P_STREAM_COLOR.equals(property) && source instanceof BuildConsoleStream) {
- BuildConsoleStream stream = (BuildConsoleStream) source;
- if (stream.getConsole().equals(getConsole())) {
- getViewer().getTextWidget().redraw();
+ final Object source = event.getSource();
+ final String property = event.getProperty();
+ Display display = getControl().getDisplay();
+ display.asyncExec(new Runnable() {
+ /* (non-Javadoc)
+ * @see java.lang.Runnable#run()
+ */
+ public void run() {
+ if (BuildConsole.P_STREAM_COLOR.equals(property) && source instanceof BuildConsoleStream) {
+ BuildConsoleStream stream = (BuildConsoleStream) source;
+ if (stream.getConsole().equals(getConsole())) {
+ getViewer().getTextWidget().redraw();
+ }
+ } else if (property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_FONT)) {
+ setFont(JFaceResources.getFont(BuildConsolePreferencePage.PREF_BUILDCONSOLE_FONT));
+ } else if (property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_TAB_WIDTH)) {
+ setTabs(CUIPlugin.getDefault().getPluginPreferences().getInt(BuildConsolePreferencePage.PREF_BUILDCONSOLE_TAB_WIDTH));
+ }
}
- } else if (property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_FONT)) {
- setFont(JFaceResources.getFont(BuildConsolePreferencePage.PREF_BUILDCONSOLE_FONT));
- } else if (property.equals(BuildConsolePreferencePage.PREF_BUILDCONSOLE_TAB_WIDTH)) {
- setTabs(CUIPlugin.getDefault().getPluginPreferences().getInt(BuildConsolePreferencePage.PREF_BUILDCONSOLE_TAB_WIDTH));
- }
+ });
}

Back to the top