From a3b99f7790ae5df83bc61b1058b872c52515d27f Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Wed, 9 Jun 2004 19:11:54 +0000 Subject: [PATCH] New implementation of the "Refresh" actions for registers and shared libraries. --- debug/org.eclipse.cdt.debug.ui/ChangeLog | 13 ++ .../icons/full/clcl16/auto_refresh_co.gif | Bin 0 -> 247 bytes .../icons/full/clcl16/autorefresh_mem.gif | Bin 182 -> 0 bytes .../icons/full/clcl16/refresh_co.gif | Bin 0 -> 246 bytes .../icons/full/clcl16/refresh_mem.gif | Bin 237 -> 0 bytes .../icons/full/dlcl16/autorefresh_mem.gif | Bin 104 -> 0 bytes .../icons/full/dlcl16/refresh_mem.gif | Bin 129 -> 0 bytes .../icons/full/elcl16/autorefresh_mem.gif | Bin 144 -> 0 bytes .../icons/full/elcl16/refresh_mem.gif | Bin 170 -> 0 bytes .../plugin.properties | 3 + debug/org.eclipse.cdt.debug.ui/plugin.xml | 90 +++++++++++- .../cdt/debug/internal/ui/CDebugImages.java | 4 +- .../AbstractRefreshActionDelegate.java | 128 ++++++++++++++++++ .../internal/ui/actions/RefreshAction.java | 72 ---------- .../ui/actions/RefreshRegistersAction.java | 31 +++++ .../actions/RefreshSharedLibrariesAction.java | 31 +++++ .../views/sharedlibs/SharedLibrariesView.java | 4 + 17 files changed, 301 insertions(+), 75 deletions(-) create mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/auto_refresh_co.gif delete mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/autorefresh_mem.gif create mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/refresh_co.gif delete mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/refresh_mem.gif delete mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/dlcl16/autorefresh_mem.gif delete mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/dlcl16/refresh_mem.gif delete mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/elcl16/autorefresh_mem.gif delete mode 100644 debug/org.eclipse.cdt.debug.ui/icons/full/elcl16/refresh_mem.gif create mode 100644 debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractRefreshActionDelegate.java delete mode 100644 debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshAction.java create mode 100644 debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshRegistersAction.java create mode 100644 debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshSharedLibrariesAction.java diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index 1d3f5f80d74..b49d48fb8fa 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -1,3 +1,16 @@ +2004-06-09 Mikhail Khodjaiants + New implementation of the "Refresh" actions for registers and shared libraries. + * icons/full/clcl16/auto_refresh_co.gif: new + * icons/full/clcl16/refresh_co.gif: new + * plugin.properties + * plugin.xml + * CDebugImages.java + * AbstractRefreshActionDelegate.java: new + * RefreshRegistersAction.java: new + * RefreshSharedLibrariesAction.java: new + * SharedLibrariesView.java + * Refreshaction.java: removed + 2004-06-08 Mikhail Khodjaiants Warning clean-up. * DebugTextHover.java diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/auto_refresh_co.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/auto_refresh_co.gif new file mode 100644 index 0000000000000000000000000000000000000000..4a65d6241e13694b6e98f6966aa0d67852449f3a GIT binary patch literal 247 zcmZ?wbhEHb6krfw_`<;O|NsAjrNGzTVq}rSCw@UA#6v`vCqidY!fGatj*cMD4I4RL znB4MF`f;yy(}~y9Zm1S!RhzwdKG)ZZjj4r|u}YbRpQDATEjE{vb@JqP9VJf2S+hBF Nlm!+nT&T!k4FETNRj2>} literal 0 HcmV?d00001 diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/autorefresh_mem.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/autorefresh_mem.gif deleted file mode 100644 index a063c230aca909c805f6a97a93c524c89198cc6c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 182 zcmZ?wbhEHb6krfw*v!E2|G#~Gz5V?8@&EtNpFh8T|Ni;^@7vF>x4%E%zCPam|NsB{ zfkN}=0~ripp!k!8k%57iK?lSGnZdx4yy2uL^Ir3ap5|M3p71&;7@R&L;67QxL54l! zu*}gfQtm|zTcZ0WIjBgri1Vs5s`jxmIW;RhF|qP|cz{DfsHKg4$1sH2{nEMt%SQ diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/refresh_co.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/refresh_co.gif new file mode 100644 index 0000000000000000000000000000000000000000..c61cfc2f562bd3dc85d659475f57962776a7ef4a GIT binary patch literal 246 zcmZ?wbhEHb6krfw_`<;O|NsAamK^=HnU*|cd> z=&I1AOP5}`a%I((RZpKjWdO>pT6N&S0U(1Ip!k!85u{EBM1bsMVJ%ir=xY#}yMkq6 z@)wJ9pG_{FVmh-~$9J)TnV52;gGS#0>Ar(GYK-hchaHxxajkYPaq)2Jb7yk#z9w|; zMRA$7(wBRz8#{Olyx&c#nBX#l_g|HlB^y&KD`RyGKW8gbduJ{e>*UEDUR;bbXK_tn M5SYJUfg*!70QLV>od5s; literal 0 HcmV?d00001 diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/refresh_mem.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/clcl16/refresh_mem.gif deleted file mode 100644 index 9eb88fa444abb52ef2c04d00fb1df664c959630d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 237 zcmZ?wbhEHb6krfwIKseSZ$IDOzTUomfBgLY_51hF2crA?|NpnIueYB+KmPxJpg{fo z`}6Mu1@GJc-)}#^-v0i4`}%nM|6ssC2q^w!VPs$sVbB371lh^Jnx&xHbs}S)a?m0j zqqRC)RXi5$F|2*FTX`Y(5k{p(i<-qu3miOui1BznNe>be=;vrwS{THj+@Qdi*|8_- zVgf^igP8gOhkyiOmQCdq2?8CQMH-AXEUh`rhRqF(OdW7V#-p6+p62A8hX#%((&f&p~kSoQ@lAs0`umnrq65; IV_>ib0D3tm>i_@% diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/dlcl16/refresh_mem.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/dlcl16/refresh_mem.gif deleted file mode 100644 index b8c1865c696814e85fac0219b047698dd0ee9918..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 129 zcmZ?wbhEHb6krfw_{6~Q|NsB{_wUc2KY#!J{XlkoeLVvhDE?$&1Tl0#1W2tDvm3{% zt^1r<*xIF>83H^0pH*gJJ(id(-o+Hi#`-5kES7bP?WAjd>vsDrd@99jCG+UiHBKKc Z?OvyZSD^-$7r9q^C)V;SC@?Zu0|3QBEa3nE diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/elcl16/autorefresh_mem.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/elcl16/autorefresh_mem.gif deleted file mode 100644 index 919423d435727bf8525c777e1957a3606e413047..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 144 zcmZ?wbhEHb6krfwSj51vV8N3A|NrmbzkmMx`3(&X_4W1f@$o;`TCpqU&w2|E?-?aG4NgfMQsOz1$l*AvN>NfP-9h5WSHbs1QpXc+Sg;;DAkC=4 waKUj=FbBunhQtkfZ05p=4}w|!EUhi`1Wy{CNgTm}Yf0Og}O-v9sr diff --git a/debug/org.eclipse.cdt.debug.ui/icons/full/elcl16/refresh_mem.gif b/debug/org.eclipse.cdt.debug.ui/icons/full/elcl16/refresh_mem.gif deleted file mode 100644 index d28167335d60fae06eea75aa64365028c17c869d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 170 zcmZ?wbhEHb6krfw*v!DNfB*dZ_xJz*|9?M_HGh6XLqmOieSCa8P=o;+Q2fcl$iTqC zpaYTwnZdvkF5sEDZ13feGrc$N7znT_)+kEOd0vpP#6hO@f#17^3U)>rbMJEoObUGZ zT}NCML`shPus*1<(|2LsYT(SXP9$)lxkloNMS+}Eiv659e)=afFTb8 - + + + + + + + + + + + + + + + + @@ -919,6 +959,54 @@ + + + + + + + + + + + + + + + + + + diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java index e9f20f40e54..83a3ed07882 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugImages.java @@ -96,8 +96,8 @@ public class CDebugImages public static final String IMG_LCL_TYPE_NAMES = NAME_PREFIX + "tnames_co.gif"; //$NON-NLS-1$ public static final String IMG_LCL_CHANGE_REGISTER_VALUE = NAME_PREFIX + "change_reg_value_co.gif"; //$NON-NLS-1$ - public static final String IMG_LCL_AUTO_REFRESH = NAME_PREFIX + "autorefresh_mem.gif"; //$NON-NLS-1$ - public static final String IMG_LCL_REFRESH = NAME_PREFIX + "refresh_mem.gif"; //$NON-NLS-1$ + public static final String IMG_LCL_AUTO_REFRESH = NAME_PREFIX + "auto_refresh_co.gif"; //$NON-NLS-1$ + public static final String IMG_LCL_REFRESH = NAME_PREFIX + "refresh_co.gif"; //$NON-NLS-1$ public static final String IMG_LCL_MEMORY_SAVE = NAME_PREFIX + "memory_update.gif"; //$NON-NLS-1$ public static final String IMG_LCL_MEMORY_CLEAR = NAME_PREFIX + "memory_clear.gif"; //$NON-NLS-1$ public static final String IMG_LCL_SHOW_ASCII = NAME_PREFIX + "show_ascii.gif"; //$NON-NLS-1$ diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractRefreshActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractRefreshActionDelegate.java new file mode 100644 index 00000000000..624c2184e2e --- /dev/null +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractRefreshActionDelegate.java @@ -0,0 +1,128 @@ +/********************************************************************** + * Copyright (c) 2004 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation + ***********************************************************************/ +package org.eclipse.cdt.debug.internal.ui.actions; + +import org.eclipse.cdt.debug.core.ICUpdateManager; +import org.eclipse.cdt.debug.ui.CDebugUIPlugin; +import org.eclipse.core.runtime.MultiStatus; +import org.eclipse.debug.core.DebugException; +import org.eclipse.debug.internal.ui.DebugUIPlugin; +import org.eclipse.debug.ui.IDebugView; +import org.eclipse.jface.action.IAction; +import org.eclipse.swt.custom.BusyIndicator; +import org.eclipse.swt.widgets.Display; +import org.eclipse.ui.IViewActionDelegate; +import org.eclipse.ui.IViewPart; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.actions.ActionDelegate; +import org.eclipse.ui.texteditor.IUpdate; + +/** + * The superclass for all "Refresh" action delegates. + */ +public abstract class AbstractRefreshActionDelegate extends ActionDelegate implements IViewActionDelegate, IUpdate { + + private IAction fAction; + private IDebugView fView; + + /* (non-Javadoc) + * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart) + */ + public void init( IViewPart view ) { + setView( view ); + if ( getView() != null ) { + getView().add( this ); + } + } + + /* (non-Javadoc) + * @see org.eclipse.ui.actions.ActionDelegate#init(org.eclipse.jface.action.IAction) + */ + public void init( IAction action ) { + setAction( action ); + super.init( action ); + } + + /* (non-Javadoc) + * @see org.eclipse.ui.actions.ActionDelegate#dispose() + */ + public void dispose() { + if ( getView() != null ) + getView().remove( this ); + super.dispose(); + } + + protected IDebugView getView() { + return fView; + } + + private void setView( IViewPart view ) { + fView = ( view instanceof IDebugView ) ? (IDebugView)view : null; + } + + /* (non-Javadoc) + * @see org.eclipse.ui.texteditor.IUpdate#update() + */ + public void update() { + IAction action = getAction(); + if ( getView() != null && action != null ) { + ICUpdateManager um = getUpdateManager( getView().getViewer().getInput() ); + action.setEnabled( ( um != null ) ? um.canUpdate() : false ); + } + } + + + /* (non-Javadoc) + * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction) + */ + public void run( IAction action ) { + final MultiStatus ms = new MultiStatus( CDebugUIPlugin.getUniqueIdentifier(), DebugException.REQUEST_FAILED, "", null ); //$NON-NLS-1$ + BusyIndicator.showWhile( Display.getCurrent(), new Runnable() { + + public void run() { + try { + doAction(); + } + catch( DebugException e ) { + ms.merge( e.getStatus() ); + } + } + } ); + if ( !ms.isOK() ) { + IWorkbenchWindow window = DebugUIPlugin.getActiveWorkbenchWindow(); + if ( window != null ) { + CDebugUIPlugin.errorDialog( CDebugUIPlugin.getResourceString( "internal.ui.actions.RefreshAction.Unable_to_refresh" ), ms.getChildren()[0] ); //$NON-NLS-1$ + } + else { + DebugUIPlugin.log( ms ); + } + } + + } + + protected IAction getAction() { + return fAction; + } + + private void setAction( IAction action ) { + fAction = action; + } + + protected void doAction() throws DebugException { + if ( getView() != null ) { + ICUpdateManager um = getUpdateManager( getView().getViewer().getInput() ); + if ( um != null ) + um.update(); + } + } + + protected abstract ICUpdateManager getUpdateManager( Object element ); +} diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshAction.java deleted file mode 100644 index 075fd99c080..00000000000 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshAction.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - *(c) Copyright QNX Software Systems Ltd. 2002. - * All Rights Reserved. - * - */ -package org.eclipse.cdt.debug.internal.ui.actions; - -import org.eclipse.cdt.debug.core.ICUpdateManager; -import org.eclipse.cdt.debug.ui.CDebugUIPlugin; -import org.eclipse.core.runtime.IAdaptable; -import org.eclipse.debug.core.DebugException; -import org.eclipse.jface.action.Action; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.ui.texteditor.IUpdate; - -/** - * Enter type comment. - * - * @since: Feb 10, 2003 - */ -public class RefreshAction extends Action implements IUpdate -{ - private Viewer fViewer = null; - - /** - * Constructor for RefreshAction. - */ - public RefreshAction( Viewer viewer, String text ) - { - super( text ); - fViewer = viewer; - } - - /* (non-Javadoc) - * @see org.eclipse.ui.texteditor.IUpdate#update() - */ - public void update() - { - if ( fViewer != null && fViewer.getInput() instanceof IAdaptable ) - { - ICUpdateManager uman = (ICUpdateManager)((IAdaptable)fViewer.getInput()).getAdapter( ICUpdateManager.class ); - if ( uman != null ) - { - setEnabled( uman.canUpdate() ); - return; - } - } - setEnabled( false ); - } - - /* (non-Javadoc) - * @see org.eclipse.jface.action.IAction#run() - */ - public void run() - { - if ( fViewer != null && fViewer.getInput() instanceof IAdaptable ) - { - ICUpdateManager uman = (ICUpdateManager)((IAdaptable)fViewer.getInput()).getAdapter( ICUpdateManager.class ); - if ( uman != null ) - { - try - { - uman.update(); - } - catch( DebugException e ) - { - CDebugUIPlugin.errorDialog( CDebugUIPlugin.getResourceString("internal.ui.actions.RefreshAction.Unable_to_refresh"), e.getStatus() ); //$NON-NLS-1$ - } - } - } - } -} diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshRegistersAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshRegistersAction.java new file mode 100644 index 00000000000..2f0f5610008 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshRegistersAction.java @@ -0,0 +1,31 @@ +/********************************************************************** + * Copyright (c) 2004 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation + ***********************************************************************/ +package org.eclipse.cdt.debug.internal.ui.actions; + +import org.eclipse.cdt.debug.core.ICRegisterManager; +import org.eclipse.cdt.debug.core.ICUpdateManager; +import org.eclipse.debug.core.model.IDebugElement; + +/** + * A delegate for the "Refresh" action of the Registers view. + */ +public class RefreshRegistersAction extends AbstractRefreshActionDelegate { + + /* (non-Javadoc) + * @see org.eclipse.cdt.debug.internal.ui.actions.AbstractRefreshActionDelegate#getUpdateManager(java.lang.Object) + */ + protected ICUpdateManager getUpdateManager( Object element ) { + if ( element instanceof IDebugElement ) { + return (ICUpdateManager)((IDebugElement)element).getDebugTarget().getAdapter( ICRegisterManager.class ); + } + return null; + } +} diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshSharedLibrariesAction.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshSharedLibrariesAction.java new file mode 100644 index 00000000000..1efdff14f53 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/RefreshSharedLibrariesAction.java @@ -0,0 +1,31 @@ +/********************************************************************** + * Copyright (c) 2004 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation + ***********************************************************************/ +package org.eclipse.cdt.debug.internal.ui.actions; + +import org.eclipse.cdt.debug.core.ICSharedLibraryManager; +import org.eclipse.cdt.debug.core.ICUpdateManager; +import org.eclipse.debug.core.model.IDebugElement; + +/** + * A delegate for the "Refresh" action of the Shared Libraries view. + */ +public class RefreshSharedLibrariesAction extends AbstractRefreshActionDelegate { + + /* (non-Javadoc) + * @see org.eclipse.cdt.debug.internal.ui.actions.RefreshActionDelegate#getUpdateManager(java.lang.Object) + */ + protected ICUpdateManager getUpdateManager( Object element ) { + if ( element instanceof IDebugElement ) { + return (ICUpdateManager)((IDebugElement)element).getDebugTarget().getAdapter( ICSharedLibraryManager.class ); + } + return null; + } +} diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/sharedlibs/SharedLibrariesView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/sharedlibs/SharedLibrariesView.java index 5a0e6701b14..844fa7f21af 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/sharedlibs/SharedLibrariesView.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/sharedlibs/SharedLibrariesView.java @@ -20,6 +20,7 @@ import org.eclipse.cdt.debug.internal.ui.views.AbstractDebugEventHandler; import org.eclipse.cdt.debug.internal.ui.views.AbstractDebugEventHandlerView; import org.eclipse.cdt.debug.internal.ui.views.IDebugExceptionHandler; import org.eclipse.cdt.debug.ui.CDebugUIPlugin; +import org.eclipse.cdt.debug.ui.ICDebugUIConstants; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IDebugElement; import org.eclipse.debug.ui.IDebugUIConstants; @@ -155,6 +156,8 @@ public class SharedLibrariesView extends AbstractDebugEventHandlerView * @see org.eclipse.debug.ui.AbstractDebugView#fillContextMenu(IMenuManager) */ protected void fillContextMenu( IMenuManager menu ) { + menu.add( new Separator( ICDebugUIConstants.EMPTY_REFRESH_GROUP ) ); + menu.add( new Separator( ICDebugUIConstants.REFRESH_GROUP ) ); menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) ); updateObjects(); } @@ -163,6 +166,7 @@ public class SharedLibrariesView extends AbstractDebugEventHandlerView * @see org.eclipse.debug.ui.AbstractDebugView#configureToolBar(IToolBarManager) */ protected void configureToolBar( IToolBarManager tbm ) { + tbm.add( new Separator( ICDebugUIConstants.REFRESH_GROUP ) ); } /* (non-Javadoc)