"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/org.jkiss.dbeaver.ui/src/org/jkiss/dbeaver/ui/controls/finder/viewer/AdvancedListViewer.java" between
dbeaver-6.1.5.tar.gz and dbeaver-6.2.0.tar.gz

About: DBeaver is a multi-platform database tool (for developers and database administrators) that supports all popular databases. Java sources.

AdvancedListViewer.java  (dbeaver-6.1.5):AdvancedListViewer.java  (dbeaver-6.2.0)
skipping to change at line 22 skipping to change at line 22
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.jkiss.dbeaver.ui.controls.finder.viewer; package org.jkiss.dbeaver.ui.controls.finder.viewer;
import org.eclipse.jface.viewers.*; import org.eclipse.jface.viewers.*;
import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Widget; import org.eclipse.swt.widgets.Widget;
import org.jkiss.dbeaver.Log; import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.ui.UIUtils; import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.ui.controls.finder.AdvancedList; import org.jkiss.dbeaver.ui.controls.finder.AdvancedList;
import org.jkiss.dbeaver.ui.controls.finder.AdvancedListItem; import org.jkiss.dbeaver.ui.controls.finder.AdvancedListItem;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
skipping to change at line 107 skipping to change at line 106
control.removeAll(); control.removeAll();
IStructuredContentProvider contentProvider = (IStructuredContentProvider ) getContentProvider(); IStructuredContentProvider contentProvider = (IStructuredContentProvider ) getContentProvider();
ILabelProvider labelProvider = (ILabelProvider) getLabelProvider(); ILabelProvider labelProvider = (ILabelProvider) getLabelProvider();
IToolTipProvider toolTipProvider = labelProvider instanceof IToolTipProv ider ? (IToolTipProvider) labelProvider : null; IToolTipProvider toolTipProvider = labelProvider instanceof IToolTipProv ider ? (IToolTipProvider) labelProvider : null;
Object[] elements = contentProvider.getElements(element); Object[] elements = contentProvider.getElements(element);
for (ViewerFilter filter : getFilters()) { for (ViewerFilter filter : getFilters()) {
elements = filter.filter(this, (Object)null, elements); elements = filter.filter(this, (Object)null, elements);
} }
for (Object item : elements) { for (Object item : elements) {
String text = labelProvider.getText(item); AdvancedListItem listItem = new AdvancedListItem(control, item, labe
Image icon = labelProvider.getImage(item); lProvider);
String toolTip = toolTipProvider == null ? null : toolTipProvider.ge
tToolTipText(item);
AdvancedListItem listItem = new AdvancedListItem(control, text, icon
, toolTip);
listItem.setData(item); listItem.setData(item);
} }
if (true) { if (true) {
UIUtils.asyncExec(() -> control.updateSize(true)); UIUtils.asyncExec(() -> control.updateSize(true));
} else { } else {
control.updateSize(true); control.updateSize(true);
} }
} }
 End of changes. 2 change blocks. 
7 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)