mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +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
|
2002-10-21 Mikhail Khodjaiants
|
||||||
Implementation of the "Clear" action for the memory view.
|
Implementation of the "Clear" action for the memory view.
|
||||||
* ClearMemoryAction.java
|
* ClearMemoryAction.java
|
||||||
|
|
|
@ -97,12 +97,15 @@ public class MemoryViewer extends ContentViewer
|
||||||
* @see org.eclipse.jface.viewers.Viewer#refresh()
|
* @see org.eclipse.jface.viewers.Viewer#refresh()
|
||||||
*/
|
*/
|
||||||
public void refresh()
|
public void refresh()
|
||||||
|
{
|
||||||
|
if ( fTabFolder != null )
|
||||||
{
|
{
|
||||||
CTabItem[] tabItems = fTabFolder.getItems();
|
CTabItem[] tabItems = fTabFolder.getItems();
|
||||||
for ( int i = 0; i < tabItems.length; ++i )
|
for ( int i = 0; i < tabItems.length; ++i )
|
||||||
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
||||||
((MemoryControlArea)tabItems[i].getControl()).refresh();
|
((MemoryControlArea)tabItems[i].getControl()).refresh();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void refresh( Object element )
|
public void refresh( Object element )
|
||||||
{
|
{
|
||||||
|
@ -124,12 +127,15 @@ public class MemoryViewer extends ContentViewer
|
||||||
}
|
}
|
||||||
|
|
||||||
public void propertyChange( PropertyChangeEvent event )
|
public void propertyChange( PropertyChangeEvent event )
|
||||||
|
{
|
||||||
|
if ( fTabFolder != null )
|
||||||
{
|
{
|
||||||
CTabItem[] tabItems = fTabFolder.getItems();
|
CTabItem[] tabItems = fTabFolder.getItems();
|
||||||
for ( int i = 0; i < tabItems.length; ++i )
|
for ( int i = 0; i < tabItems.length; ++i )
|
||||||
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
if ( tabItems[i].getControl() instanceof MemoryControlArea )
|
||||||
((MemoryControlArea)tabItems[i].getControl()).propertyChange( event );
|
((MemoryControlArea)tabItems[i].getControl()).propertyChange( event );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void inputChanged( Object input, Object oldInput )
|
protected void inputChanged( Object input, Object oldInput )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue