Hi!
I'm developing an Eclipse plug-in and I have a problem which is reproduced here:
popup = new Shell(PlatformUI.getWorkbench().getDisplay(), SWT.TOOL );
popup.setLayout(new FillLayout());
Text text = new Text(popup, SWT.MULTI | SWT.READ_ONLY | SWT.WRAP | SWT.V_SCROLL);
text.setBackground(new org.eclipse.swt.graphics...
Hello StackOverflow Experts
Description
I have an SWT Page with a TabFolder with a number of dynamically created TabItems.
On each TabItem i crate a Composite and set the TabItem.setControl() to the Composite.
I then use this Composite as the page on which i draw my items.
I draw a set of Controls, including Textbox's and Labels.
For...
I want to have a transparent canvas.
I have a canvas in which video is getting rendered. I want a canvas on top of the video so that I can draw a rectangle over the video to select an area of the video for some other purpose (like to zoom, to take image etc...).
Is it possible in SWT?
Thanks.
...
Hello! :-)
I'm beginning to use the swtbot to test my reccent eclipse rcp projekt. A specific editor is opened multiple times in my application and want to count how often the editor is opened.
How can i do that using swtbot?
Thanks! :-)
...
I am trying to add a scrollable area to my tabbed window. So far I have a CTabFolder in a shell. I have added 5 CTabItems to it and everything works as expected.
On one of my CTabItems the contents are too big to fit on the screen so I would like to be able to scroll. The contents is a collection of Groups each containing various wid...
Im am making an Java SWT program that is required to run on both Linux and Windows.
I use the following Code to listen for KeyUp events:
Control.addListener(SWT.KeyUp, new Listener() {
public void handleEvent(Event arg0) {
System.out.println("Event");
}
});
But this does not trigger when no control has focus.
Do anyone know of a...
Hi
I'm using SWT Text component. Do someone know how can I prevent copy/paste operation for the Text component.
Thanks
Subha
...
We need to implement scheduling subsystem. And we plan to integrate subsystem with our desktop and online applications. But we would like to reuse as many components as possible. One component that we want to reuse is the one for displaying date periods, calendar with events. Most scheduling systems like Outlook, Google Calendar have sim...
Hi everyone,
Can someone share how to make items in a ListViewer scrollable? Source code will be more helpful.
Thanks.
...
Hi,
I have a strange case with SWT and Button after using setEnabled() - seems if I disable and enable button at least once - I cannot properly click with mouse on it anymore... Already minify code to very basic:
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
i...
So I ran into an issue with SWT Trees and I wanted to know if anyone knows why this is happening and what the work around is (if there is one).
If you create a tree and then put into it a large number of elements, then proceed to expand them all, you will notice something odd - the scroll bar on the side disappears. The values are stil...
Hi,
I am a developer of Elipse's plugins, I created an Editor containing a TextViewer
I wanted to disable the standard selection of text so I created a class that inherits SyledText in a package "org.eclipse.swt.custom", then I override the method doMouseSelection ()
the problem is when I put this package in a fragment (plugin-host = or...
I am working on a SWT Tree similar to the one here, however, I want to be able to show + signs in some cases instead of - for an expanded tree item. Is this possible ?
If not, is there Windows API to have custom icons for the expanded/collapsed state of a tree item ?
...
I am currently working on an application that uses a TableViewer in several places to display formatted tabular data. Each table must have an export feature where all its content is exported in an Excel file.
In order to avoid unnecessery code duplication, I thought it would be nice to rely upon the viewer framework of SWT and use it to...
I need a validation framework, for an app written in Java, Eclipse RCP. The UI is a simple spreadsheet with many input fields and many output fields.
The user input needs to be validated, for example:
Thresholds for numerical fields
Required fields for certain operations
Context-sensitive help based on the validation results
Multi-fie...
In SWT, how can I create a bold/italic variant of a font and how can I scale a font? I tried
int fontStyle = SWT.BOLD;
int height = 1200;
FontData[] fds = font.getFontData ();
for (FontData fd: fds)
{
fd.setStyle (fontStyle);
fd.setHeight ((fd.getHeight () * height + 500) / 1000);
}
newFont = new Font(font.getDevice (), fds);
...
I am writing a an swt app that has an embeded GLCanvas and I wanted to be able to find out the size of the current cursor, is this possible? And if I cannot get it from JOGL then is it possible from either swt or awt?
...
I have many .swf files and want to make a .pdf file with them, how can I do it automatically with a script file?
Each .swf is only a slide and there are no animation in them!
...
I am making a component in SWT that contains a text field and a list. Whenever text is entered it filters the list. So far everything is working great and I am just trying to add some nice usability features.
What I want to do is listen for any key events in the List field, if it is Enter that is pressed I perform the 'ok' action (alr...
I have a JFace TableViewer with an SWT Table, and I would like to custom render the content of some cells. I would like to use an SWT Control to render the cell content.
I would prefer to have only one instance of the Control doing the rendering, but if I have to instantiate one for each row, that would be acceptable.
Next, the soluti...