swt

Set/Get values for RadioGroupFieldEditor in SWT

家住魔仙堡 提交于 2019-12-02 01:50:56
问题 I'm trying to add a RadioGroupFieldEditor in an Eclipse RCP application I'm developing, but seem unable to do two key things: set the value for the radio button (i.e. when the dialog/window is opened, I'd like to for example set the default to "button1") get the current value of the selected radio button (i.e. what has been selected by the user, or if nothing has been set, the default value set above). The code I'm using is as follows: String[][] radioButtonOptions = new String[][] { {

How to disable fullscreen button in Mac OS in SWT / Java App?

主宰稳场 提交于 2019-12-02 00:55:03
I am working on SWT app. It works fine on windows, but when I run the same code on mac. I get a full screen button on right corner of my shell. On clicking that full screen button the app stop responding and nothing happens. I want to disable the click on that fullscreen button. display = Display.getDefault(); shell = new Shell(display, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL); setDialogShell(shell); getDialogShell().setLayout( new FormLayout()); getDialogShell().setFullScreen(false); Please help. I have gone through this some link but didn't got how to disable that full screen button in mac.

Set/Get values for RadioGroupFieldEditor in SWT

ぃ、小莉子 提交于 2019-12-02 00:47:12
I'm trying to add a RadioGroupFieldEditor in an Eclipse RCP application I'm developing, but seem unable to do two key things: set the value for the radio button (i.e. when the dialog/window is opened, I'd like to for example set the default to "button1") get the current value of the selected radio button (i.e. what has been selected by the user, or if nothing has been set, the default value set above). The code I'm using is as follows: String[][] radioButtonOptions = new String[][] { { "Button1" "button1" }, { "Button2" "button2" } }; RadioGroupFieldEditor radioButtonGroup = new

Toggle Button in Eclipse Forms Section Toolbar

别说谁变了你拦得住时间么 提交于 2019-12-02 00:15:26
How do I implement a toggle button, as pictured below, in the section toolbar of Eclipse UI Forms? I only find examples for adding actions to the section toolbar. Bela Vizer I think the key is: IAction.AS_CHECK_BOX toggleBotton = new Action(Messages.toolTipMessage, IAction.AS_CHECK_BOX) { @Override public void run() { } }; toggleBotton.setImageDescriptor(...); toggleBotton.setEnabled(...); getManagedForm().getForm().getToolBarManager().add(toggleBotton); 来源: https://stackoverflow.com/questions/11222951/toggle-button-in-eclipse-forms-section-toolbar

How to force a minimum height of a JFace Wizard in Eclipse?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 22:57:45
问题 I'm presenting a wizard (code here) that gets too low, so the content does not show completely (see screenshot below): How can I force the wizard to have a minimum height? According to the answer on this question here on StackOverflow, the wizard will be the same height as the largest wizardpage in the wizard, but my wizard obvilusly does not get resized according to at least the content of the largest page, and I also tried to set the minimum height of the first visible wizard page with code

Eclipse SWT Browser crash (Linux 64Bit)

谁说我不能喝 提交于 2019-12-01 21:35:04
问题 I have a eclipse project that uses the webbrowser from eclipse SWT which runs smoothly on my windows eclipse. I share the project (via SVN) and try to run it on my 64 Bit Linux system. I downloaded a stable swt version for 64 bit linux and imported it into my workspace. but when i try to start the swt-webbrowser, i get this error: (SWT:2882): Gtk-CRITICAL **: IA__gtk_window_group_remove_window: assertion 'window->group == window_group' failed and the browser doesnt start. It fits the eclipse

How to force a minimum height of a JFace Wizard in Eclipse?

二次信任 提交于 2019-12-01 21:03:01
I'm presenting a wizard (code here ) that gets too low, so the content does not show completely (see screenshot below): How can I force the wizard to have a minimum height? According to the answer on this question here on StackOverflow , the wizard will be the same height as the largest wizardpage in the wizard, but my wizard obvilusly does not get resized according to at least the content of the largest page, and I also tried to set the minimum height of the first visible wizard page with code like this in the WizardPage class: @Override public void createControl(Composite parent) { // create

Eclipse SWT Browser crash (Linux 64Bit)

风格不统一 提交于 2019-12-01 20:40:23
I have a eclipse project that uses the webbrowser from eclipse SWT which runs smoothly on my windows eclipse. I share the project (via SVN) and try to run it on my 64 Bit Linux system. I downloaded a stable swt version for 64 bit linux and imported it into my workspace. but when i try to start the swt-webbrowser, i get this error: (SWT:2882): Gtk-CRITICAL **: IA__gtk_window_group_remove_window: assertion 'window->group == window_group' failed and the browser doesnt start. It fits the eclipse-bug-discussion here but i dont really understand how I can fix it! I had the same problem and finally

Eclipse SWT browser and Firebug lite?

久未见 提交于 2019-12-01 20:36:45
Is there a way to use Firebug lite "bookmarklet" feature within eclipse SWT browser? Depends on the system browser which your SWT browser is using. For Win7 and IE8, you can have something like this: Output Code import org.eclipse.swt.SWT; import org.eclipse.swt.browser.Browser; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class FirebugLite {

SWT ScrolledComposite cutting off information.

本小妞迷上赌 提交于 2019-12-01 20:26:32
I'm making an application that has many lines of data coming back from a Database stub(which will become an Oracle database), and for some reason the scroll bar stops at about the 500th element. I'm wondering if there's anyway to have all the elements show within the scroll bar. I'm assuming here that you're using Windows, because there is a fairly general problem with scrollbars on Windows: the maximum value is a short int, 32,768. Therefore, if the height of the inner composite of a ScrolledComposite is greater than 32,768 pixels, the composite will be clipped. I haven't found a robust way