Java Code Examples for org.eclipse.jface.viewers.Viewer#refresh()

The following examples show how to use org.eclipse.jface.viewers.Viewer#refresh() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MemoryActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ( );
        }
    }
}
 
Example 2
Source File: GenconfActionBarContributor.java    From M2Doc with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run() {
    if (activeEditorPart instanceof IViewerProvider) {
        Viewer viewer = ((IViewerProvider) activeEditorPart).getViewer();
        if (viewer != null) {
            viewer.refresh();
        }
    }
}
 
Example 3
Source File: CrossflowActionBarContributor.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void run() {
	if (activeEditorPart instanceof IViewerProvider) {
		Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
		if (viewer != null) {
			viewer.refresh();
		}
	}
}
 
Example 4
Source File: ConfigurationActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ();
        }
    }
}
 
Example 5
Source File: ItemActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ();
        }
    }
}
 
Example 6
Source File: ComponentActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ( );
        }
    }
}
 
Example 7
Source File: SecurityActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ();
        }
    }
}
 
Example 8
Source File: InfrastructureActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ();
        }
    }
}
 
Example 9
Source File: RecipeActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ( );
        }
    }
}
 
Example 10
Source File: EObjectDescriptionContentProvider.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
@SuppressWarnings("unchecked")
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	this.viewer = (TableViewer) viewer;
	if (newInput instanceof Iterable<?>) {
		matches = (Iterable<IEObjectDescription>) newInput;
		reset();
		viewer.refresh();
	}
}
 
Example 11
Source File: WorldActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ( );
        }
    }
}
 
Example 12
Source File: OsgiActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ( );
        }
    }
}
 
Example 13
Source File: ProfileActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ( );
        }
    }
}
 
Example 14
Source File: ExtensionsActionBarContributor.java    From ifml-editor with MIT License 5 votes vote down vote up
@Override
public void run() {
	if (activeEditorPart instanceof IViewerProvider) {
		Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
		if (viewer != null) {
			viewer.refresh();
		}
	}
}
 
Example 15
Source File: VisualInterfaceActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ();
        }
    }
}
 
Example 16
Source File: DetailViewActionBarContributor.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void run ()
{
    if ( activeEditorPart instanceof IViewerProvider )
    {
        Viewer viewer = ( (IViewerProvider)activeEditorPart ).getViewer ();
        if ( viewer != null )
        {
            viewer.refresh ();
        }
    }
}
 
Example 17
Source File: BeansActionBarContributor.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 5 votes vote down vote up
@Override
public void run() {
	if (activeEditorPart instanceof IViewerProvider) {
		Viewer viewer = ((IViewerProvider)activeEditorPart).getViewer();
		if (viewer != null) {
			viewer.refresh();
		}
	}
}
 
Example 18
Source File: JSEditor.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
public void inputChanged( Viewer viewer, Object oldInput, Object newInput )
{
	viewer.refresh( );

}
 
Example 19
Source File: ExpressionCollectionContentProvider.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	viewer.refresh();
}
 
Example 20
Source File: GenerateJavaCodeConfigurationTab.java    From uml2solidity with Eclipse Public License 1.0 4 votes vote down vote up
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	viewer.refresh();
}