mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Framework tries to refresh memory view before the view controls are created.
This commit is contained in:
parent
a73d249b40
commit
dc302bdd60
2 changed files with 18 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-10-21 Mikhail Khodjaiants
|
||||
Framework tries to refresh memory view before the view controls are created.
|
||||
* MemoryViewer.java: Check if CTabFolder has already created when refreshing the view.
|
||||
|
||||
2002-10-21 Mikhail Khodjaiants
|
||||
Implementation of the "Clear" action for the memory view.
|
||||
* ClearMemoryAction.java
|
||||
|
|
|
@ -98,10 +98,13 @@ public class MemoryViewer extends ContentViewer
|
|||
*/
|
||||
public void refresh()
|
||||
{
|
||||
CTabItem[] tabItems = fTabFolder.getItems();
|
||||
for ( int i = 0; i < tabItems.length; ++i )
|
||||
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
||||
((MemoryControlArea)tabItems[i].getControl()).refresh();
|
||||
if ( fTabFolder != null )
|
||||
{
|
||||
CTabItem[] tabItems = fTabFolder.getItems();
|
||||
for ( int i = 0; i < tabItems.length; ++i )
|
||||
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
||||
((MemoryControlArea)tabItems[i].getControl()).refresh();
|
||||
}
|
||||
}
|
||||
|
||||
public void refresh( Object element )
|
||||
|
@ -125,10 +128,13 @@ public class MemoryViewer extends ContentViewer
|
|||
|
||||
public void propertyChange( PropertyChangeEvent event )
|
||||
{
|
||||
CTabItem[] tabItems = fTabFolder.getItems();
|
||||
for ( int i = 0; i < tabItems.length; ++i )
|
||||
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
||||
((MemoryControlArea)tabItems[i].getControl()).propertyChange( event );
|
||||
if ( fTabFolder != null )
|
||||
{
|
||||
CTabItem[] tabItems = fTabFolder.getItems();
|
||||
for ( int i = 0; i < tabItems.length; ++i )
|
||||
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
||||
((MemoryControlArea)tabItems[i].getControl()).propertyChange( event );
|
||||
}
|
||||
}
|
||||
|
||||
protected void inputChanged( Object input, Object oldInput )
|
||||
|
|
Loading…
Add table
Reference in a new issue