Java Code Examples for org.eclipse.swt.widgets.Item#isDisposed()

The following examples show how to use org.eclipse.swt.widgets.Item#isDisposed() . 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: BaseFolderImplementation.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
protected void useItem ( final Item item )
{
    if ( this.label != null )
    {
        item.setText ( this.label );
    }
    item.setImage ( getEmptyImage () );

    this.blinker = new StyleBlinker () {

        @Override
        public void update ( final CurrentStyle currentStyle )
        {
            if ( !item.isDisposed () )
            {
                updateItem ( item, currentStyle );
            }
        }
    };
    this.styler = new StateStyler ( this.blinker );
    this.styler.style ( new SummaryStateInformation ( this.summaryInformation ) );
}
 
Example 2
Source File: GridTreeViewer.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void doUpdateItem(final Item item, Object element) {
	super.doUpdateItem(item, element);
	updateRowHeader(item);
	if(autoPreferredHeight && !item.isDisposed())
		((GridItem)item).pack();
}
 
Example 3
Source File: GridTreeViewer.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void doUpdateItem(final Item item, Object element) {
	super.doUpdateItem(item, element);
	updateRowHeader(item);
	if(autoPreferredHeight && !item.isDisposed())
		((GridItem)item).pack();
}
 
Example 4
Source File: GridTreeViewer.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
protected void doUpdateItem(final Item item, Object element) {
	super.doUpdateItem(item, element);
	updateRowHeader(item);
	if(autoPreferredHeight && !item.isDisposed())
		((GridItem)item).pack();
}
 
Example 5
Source File: GridTreeViewer.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
/** {@inheritDoc} */
protected void doUpdateItem(final Item item, Object element) {
	super.doUpdateItem(item, element);
	if(autoPreferredHeight && !item.isDisposed())
		((GridItem)item).pack();
}
 
Example 6
Source File: ResourceToItemsMapper.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
private void updateItem(Item item) {
	if (!item.isDisposed()) {
		fContentViewerAccess.doUpdateItem(item);
	}
}
 
Example 7
Source File: ResourceToItemsMapper.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
private void updateItem(Item item) {
	if (!item.isDisposed()) {
		_commonViewer.doUpdateItem(item);
	}
}
 
Example 8
Source File: ResourceToItemsMapper.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
private void updateItem(Item item) {
	if (!item.isDisposed()) {
		_commonViewer.doUpdateItem(item);
	}
}