eclipse.platform.swt | Eclipse Platform project repository | Code Editor library
kandi X-RAY | eclipse.platform.swt Summary
kandi X-RAY | eclipse.platform.swt Summary
Thanks for your interest in this project.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of eclipse.platform.swt
eclipse.platform.swt Key Features
eclipse.platform.swt Examples and Code Snippets
Community Discussions
Trending Discussions on eclipse.platform.swt
QUESTION
I am new to dialogs in Java SWT, and i'm trying to make a file chooser. I took as example the snippet from eclipse website: https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java
I need to know the selected filter by the user, I do that by doing something:
int idx = dialog.getFilterIndex(); followed by String filter = dialog.getFilterNames[idx];
On linux (ubuntu 18.04) dialog.getFilterIndex()
is returning -1 even if I choose a filter. Any ideas?
Thank you
...ANSWER
Answered 2020-Nov-26 at 13:01This looks like Eclipse bug 546256.
This bug is still open. The bug reports suggests it is a problem with the GTK 3 GtkNativeChooserDialog
code.
QUESTION
I have created a checkboxtreeviewer using the JFace library. I have created the tree viewer as below
...ANSWER
Answered 2018-Oct-30 at 07:45You can turn off redrawing of the tree until you have finished setting the selection, this should reduce flickering:
QUESTION
I tried using the same example from TreeCursor
documentation:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet360.java
On whichever cell I press enter (SWT.CR
) for the first time, say I press on the cell 'root11', after this any cell that I click, 'root11' appears in it.
My requirement is to select the text from a cell to copy. I do not want to edit. So every time i click on a cell to copy its text, the text from the cell that was selected first time appears.
Any pointers on what could be causing this? Thanks in advance!
...ANSWER
Answered 2017-Feb-15 at 21:39When ENTER
is pressed on an item, the widgetDefaultSelected
method is called. There, the ControlEditor
sets a Text
with the selectedTreeItem
text as its editor: editor.setEditor(text);
.
This Text
is then only disposed when ENTER
or ESC
is pressed on it, and in no other occasions. This means that the Text
will still be visible with its original content even when you select another item.
To change this behavior you could modify the widgetSelected
method to, for example, dispose the Text
so it would be no longer visible or update its text with the current selected item.
To remove the Text
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install eclipse.platform.swt
You can use eclipse.platform.swt like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the eclipse.platform.swt component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page