Editors with many widgets have horrible performanceHow to change background color in the Notepad++ text editor?Eclipse Luna dark theme, code editor whiteHow to set editor theme in IntelliJ IdeaEclipse RCP - Open a View in the Editor Area (3.8/e4 hybrid)How to change the Spyder editor background to dark?How to build a pure e4 RCP Text EditorWidgets are not shown on editor with AppThemeeclipse e4 Dark Theme: How to style widgets created by FormToolKit with cssany way to have a light sidebar while keeping the editor dark?org.eclipse.core.runtime.AssertionFailedException: assertion failed:
Reorder a matrix, twice
What is the difference between an astronaut in the ISS and a freediver in perfect neutral buoyancy?
How can an attacker use robots.txt?
Do we have any particular tonal center in mind when we are NOT listening music?
What exactly did this mechanic sabotage on the American Airlines 737, and how dangerous was it?
Youtube not blocked by iptables
Aesthetic proofs that involve Field Theory / Galois Theory
What is the meaning of word 'crack' in chapter 33 of A Game of Thrones?
Why weren't the Death Star plans transmitted electronically?
Why is a road bike faster than a city bike with the same effort? & how much faster it can be?
What are the consequences of high orphan block rate?
I am 15 years old and do not go to a Yeshiva but would like to learn Talmud. A few rabbis near me said they could teach me. How should I start
Comma Code - Automate the Boring Stuff with Python
Averting Bathos
Fuel sender works when outside of tank, but not when in tank
what should be done first, handling missing data or dealing with data types?
Difference between types of yeast
Tesla coil and Tesla tower
practicality of 30 year fix mortgage at 55 years of age
Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?
Pi Zero Work With Embedded WIFI And Cellular USB Modem
Why solving a differentiated integral equation might eventually lead to erroneous solutions of the original problem?
Is the use of language other than English 'Reasonable Suspicion' for detention?
List of 1000 most common words across all languages
Editors with many widgets have horrible performance
How to change background color in the Notepad++ text editor?Eclipse Luna dark theme, code editor whiteHow to set editor theme in IntelliJ IdeaEclipse RCP - Open a View in the Editor Area (3.8/e4 hybrid)How to change the Spyder editor background to dark?How to build a pure e4 RCP Text EditorWidgets are not shown on editor with AppThemeeclipse e4 Dark Theme: How to style widgets created by FormToolKit with cssany way to have a light sidebar while keeping the editor dark?org.eclipse.core.runtime.AssertionFailedException: assertion failed:
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
We switched to e4 target platform. One editor has became horrible slow with rendering (about 20 seconds to layout). When a modal dialog is opened from the editor-menu, the application flickers like having an epileptical fit.
When we turn off css, by ...
DefaultScope.INSTANCE.getNode("org.eclipse.e4.ui.workbench.renderers.swt")
.put("themeEnabled", "false");
in the plugin, the rendering is very fast (<10ms), like it used to be under the previous target platform.
this is the control that i have embedded into the editor (for evaluation reasons):
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++)
new Label(this, SWT.NONE).setText("
has anybody experience with that problem? Yes, we know that a table would be better for such amount of data, but refactoring that would cost too much at the moment.
The second problem is, when we turn off the theme functionality, eclipse / swt brings up exceptions when switching perspectives, views and so on.
themes e4
add a comment
|
We switched to e4 target platform. One editor has became horrible slow with rendering (about 20 seconds to layout). When a modal dialog is opened from the editor-menu, the application flickers like having an epileptical fit.
When we turn off css, by ...
DefaultScope.INSTANCE.getNode("org.eclipse.e4.ui.workbench.renderers.swt")
.put("themeEnabled", "false");
in the plugin, the rendering is very fast (<10ms), like it used to be under the previous target platform.
this is the control that i have embedded into the editor (for evaluation reasons):
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++)
new Label(this, SWT.NONE).setText("
has anybody experience with that problem? Yes, we know that a table would be better for such amount of data, but refactoring that would cost too much at the moment.
The second problem is, when we turn off the theme functionality, eclipse / swt brings up exceptions when switching perspectives, views and so on.
themes e4
Seems to work quickly on macOS but that number of controls is a bad idea. You will be getting close to the limits on some platforms.
– greg-449
Mar 28 at 18:25
Thank you, as I told, we have no time to replace it by - let's say - a nattable. The control is very complex, so we can forget about it now.
– Martin J Schmidt
Mar 29 at 8:48
add a comment
|
We switched to e4 target platform. One editor has became horrible slow with rendering (about 20 seconds to layout). When a modal dialog is opened from the editor-menu, the application flickers like having an epileptical fit.
When we turn off css, by ...
DefaultScope.INSTANCE.getNode("org.eclipse.e4.ui.workbench.renderers.swt")
.put("themeEnabled", "false");
in the plugin, the rendering is very fast (<10ms), like it used to be under the previous target platform.
this is the control that i have embedded into the editor (for evaluation reasons):
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++)
new Label(this, SWT.NONE).setText("
has anybody experience with that problem? Yes, we know that a table would be better for such amount of data, but refactoring that would cost too much at the moment.
The second problem is, when we turn off the theme functionality, eclipse / swt brings up exceptions when switching perspectives, views and so on.
themes e4
We switched to e4 target platform. One editor has became horrible slow with rendering (about 20 seconds to layout). When a modal dialog is opened from the editor-menu, the application flickers like having an epileptical fit.
When we turn off css, by ...
DefaultScope.INSTANCE.getNode("org.eclipse.e4.ui.workbench.renderers.swt")
.put("themeEnabled", "false");
in the plugin, the rendering is very fast (<10ms), like it used to be under the previous target platform.
this is the control that i have embedded into the editor (for evaluation reasons):
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++)
new Label(this, SWT.NONE).setText("
has anybody experience with that problem? Yes, we know that a table would be better for such amount of data, but refactoring that would cost too much at the moment.
The second problem is, when we turn off the theme functionality, eclipse / swt brings up exceptions when switching perspectives, views and so on.
themes e4
themes e4
edited Mar 28 at 18:12
greg-449
93.8k16 gold badges73 silver badges111 bronze badges
93.8k16 gold badges73 silver badges111 bronze badges
asked Mar 28 at 17:35
Martin J SchmidtMartin J Schmidt
11 bronze badge
11 bronze badge
Seems to work quickly on macOS but that number of controls is a bad idea. You will be getting close to the limits on some platforms.
– greg-449
Mar 28 at 18:25
Thank you, as I told, we have no time to replace it by - let's say - a nattable. The control is very complex, so we can forget about it now.
– Martin J Schmidt
Mar 29 at 8:48
add a comment
|
Seems to work quickly on macOS but that number of controls is a bad idea. You will be getting close to the limits on some platforms.
– greg-449
Mar 28 at 18:25
Thank you, as I told, we have no time to replace it by - let's say - a nattable. The control is very complex, so we can forget about it now.
– Martin J Schmidt
Mar 29 at 8:48
Seems to work quickly on macOS but that number of controls is a bad idea. You will be getting close to the limits on some platforms.
– greg-449
Mar 28 at 18:25
Seems to work quickly on macOS but that number of controls is a bad idea. You will be getting close to the limits on some platforms.
– greg-449
Mar 28 at 18:25
Thank you, as I told, we have no time to replace it by - let's say - a nattable. The control is very complex, so we can forget about it now.
– Martin J Schmidt
Mar 29 at 8:48
Thank you, as I told, we have no time to replace it by - let's say - a nattable. The control is very complex, so we can forget about it now.
– Martin J Schmidt
Mar 29 at 8:48
add a comment
|
2 Answers
2
active
oldest
votes
... to make things clear, I created a brand new application by the eclipse wizard (... having a view).
I replaced the sample views code by that - as I mentioned, when we turn off css/theming (see code above), everything is fine - otherwise it doesn't stop to shake, it is even hard to get the mouse pointer back to eclipse to stop the app:
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart
public static final String ID = "xyz.view";
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++) " + Integer.toString(i) + " " + Integer.toString(j) + "
@Override
public void createPartControl(Composite parent)
new BigControl(parent, SWT.NONE);
@Override
public void setFocus()
add a comment
|
OK, we replaced the target platform by a newer one (2019-3). I was not aware about using an older platform.
The flickering stopped, it is still not fast (resizing the window takes about 2 seconds), but it is acceptable for the moment.
Thank you for your help,
Best, Martin
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403749%2feditors-with-many-widgets-have-horrible-performance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
... to make things clear, I created a brand new application by the eclipse wizard (... having a view).
I replaced the sample views code by that - as I mentioned, when we turn off css/theming (see code above), everything is fine - otherwise it doesn't stop to shake, it is even hard to get the mouse pointer back to eclipse to stop the app:
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart
public static final String ID = "xyz.view";
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++) " + Integer.toString(i) + " " + Integer.toString(j) + "
@Override
public void createPartControl(Composite parent)
new BigControl(parent, SWT.NONE);
@Override
public void setFocus()
add a comment
|
... to make things clear, I created a brand new application by the eclipse wizard (... having a view).
I replaced the sample views code by that - as I mentioned, when we turn off css/theming (see code above), everything is fine - otherwise it doesn't stop to shake, it is even hard to get the mouse pointer back to eclipse to stop the app:
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart
public static final String ID = "xyz.view";
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++) " + Integer.toString(i) + " " + Integer.toString(j) + "
@Override
public void createPartControl(Composite parent)
new BigControl(parent, SWT.NONE);
@Override
public void setFocus()
add a comment
|
... to make things clear, I created a brand new application by the eclipse wizard (... having a view).
I replaced the sample views code by that - as I mentioned, when we turn off css/theming (see code above), everything is fine - otherwise it doesn't stop to shake, it is even hard to get the mouse pointer back to eclipse to stop the app:
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart
public static final String ID = "xyz.view";
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++) " + Integer.toString(i) + " " + Integer.toString(j) + "
@Override
public void createPartControl(Composite parent)
new BigControl(parent, SWT.NONE);
@Override
public void setFocus()
... to make things clear, I created a brand new application by the eclipse wizard (... having a view).
I replaced the sample views code by that - as I mentioned, when we turn off css/theming (see code above), everything is fine - otherwise it doesn't stop to shake, it is even hard to get the mouse pointer back to eclipse to stop the app:
package xyz;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.part.ViewPart;
public class View extends ViewPart
public static final String ID = "xyz.view";
public class BigControl extends Composite
public BigControl(Composite parent, int style)
super(parent, style);
setLayout(new GridLayout(23, false));
for (int i=0; i<100; i++)
for (int j=0; j<23; j++) " + Integer.toString(i) + " " + Integer.toString(j) + "
@Override
public void createPartControl(Composite parent)
new BigControl(parent, SWT.NONE);
@Override
public void setFocus()
answered Mar 29 at 8:53
Martin J SchmidtMartin J Schmidt
11 bronze badge
11 bronze badge
add a comment
|
add a comment
|
OK, we replaced the target platform by a newer one (2019-3). I was not aware about using an older platform.
The flickering stopped, it is still not fast (resizing the window takes about 2 seconds), but it is acceptable for the moment.
Thank you for your help,
Best, Martin
add a comment
|
OK, we replaced the target platform by a newer one (2019-3). I was not aware about using an older platform.
The flickering stopped, it is still not fast (resizing the window takes about 2 seconds), but it is acceptable for the moment.
Thank you for your help,
Best, Martin
add a comment
|
OK, we replaced the target platform by a newer one (2019-3). I was not aware about using an older platform.
The flickering stopped, it is still not fast (resizing the window takes about 2 seconds), but it is acceptable for the moment.
Thank you for your help,
Best, Martin
OK, we replaced the target platform by a newer one (2019-3). I was not aware about using an older platform.
The flickering stopped, it is still not fast (resizing the window takes about 2 seconds), but it is acceptable for the moment.
Thank you for your help,
Best, Martin
answered Mar 29 at 9:29
Martin J SchmidtMartin J Schmidt
11 bronze badge
11 bronze badge
add a comment
|
add a comment
|
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403749%2feditors-with-many-widgets-have-horrible-performance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Seems to work quickly on macOS but that number of controls is a bad idea. You will be getting close to the limits on some platforms.
– greg-449
Mar 28 at 18:25
Thank you, as I told, we have no time to replace it by - let's say - a nattable. The control is very complex, so we can forget about it now.
– Martin J Schmidt
Mar 29 at 8:48