Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2017-01-16 10:22:28 +0000
committerStéphane Bégaudeau2017-01-16 10:23:44 +0000
commit7e40b7102166c6de572878d4d1e087210c37acf2 (patch)
tree6d61407ae15554d07d677176a91d2a7ce1a27feb
parentf003419580ef28a5101b9c23d39e26cd7204e8d7 (diff)
downloadorg.eclipse.eef-7e40b7102166c6de572878d4d1e087210c37acf2.tar.gz
org.eclipse.eef-7e40b7102166c6de572878d4d1e087210c37acf2.tar.xz
org.eclipse.eef-7e40b7102166c6de572878d4d1e087210c37acf2.zip
[509815] Use SWT.VIRTUAL to improve widget performancesv1.9.0_RC2
The option SWT.VIRTUAL has been added for the list lifecycle manager and the multiple reference lifecycle manager. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=509815 Change-Id: Ibf6c59a2f34ab7a0228ef11b19083b3bd60053d8 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
-rw-r--r--plugins/org.eclipse.eef.ide.ui.ext.widgets.reference/src/org/eclipse/eef/ide/ui/ext/widgets/reference/internal/EEFExtMultipleReferenceLifecycleManager.java8
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFListLifecycleManager.java8
2 files changed, 12 insertions, 4 deletions
diff --git a/plugins/org.eclipse.eef.ide.ui.ext.widgets.reference/src/org/eclipse/eef/ide/ui/ext/widgets/reference/internal/EEFExtMultipleReferenceLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui.ext.widgets.reference/src/org/eclipse/eef/ide/ui/ext/widgets/reference/internal/EEFExtMultipleReferenceLifecycleManager.java
index a0296ecc7..409bb67ce 100644
--- a/plugins/org.eclipse.eef.ide.ui.ext.widgets.reference/src/org/eclipse/eef/ide/ui/ext/widgets/reference/internal/EEFExtMultipleReferenceLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui.ext.widgets.reference/src/org/eclipse/eef/ide/ui/ext/widgets/reference/internal/EEFExtMultipleReferenceLifecycleManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2016 Obeo.
+ * Copyright (c) 2016, 2017 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -171,7 +171,11 @@ public class EEFExtMultipleReferenceLifecycleManager extends AbstractEEFExtRefer
gridData.horizontalAlignment = SWT.FILL;
scrolledComposite.setLayoutData(gridData);
- Table table = this.widgetFactory.createTable(scrolledComposite, SWT.READ_ONLY | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.SINGLE);
+ // CHECKSTYLE:OFF
+ int style = SWT.READ_ONLY | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.SINGLE | SWT.VIRTUAL;
+ // CHECKSTYLE:ON
+
+ Table table = this.widgetFactory.createTable(scrolledComposite, style);
this.tableViewer = new TableViewer(table);
GridData tableGridData = new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1);
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFListLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFListLifecycleManager.java
index 63c7b039a..75aaff12f 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFListLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFListLifecycleManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2016 Obeo.
+ * Copyright (c) 2016, 2017 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -155,7 +155,11 @@ public class EEFListLifecycleManager extends AbstractEEFWidgetLifecycleManager {
gridData.horizontalAlignment = SWT.FILL;
scrolledComposite.setLayoutData(gridData);
- Table table = widgetFactory.createTable(scrolledComposite, SWT.READ_ONLY | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.MULTI);
+ // CHECKSTYLE:OFF
+ int style = SWT.READ_ONLY | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER | SWT.MULTI | SWT.VIRTUAL;
+ // CHECKSTYLE:ON
+
+ Table table = widgetFactory.createTable(scrolledComposite, style);
this.tableViewer = new TableViewer(table);
GridData tableGridData = new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1);

Back to the top