usage of maven tycho-p2-plugin with SWT
how do I build a swt application using the eclipse p2 repository and the maven tycho-p2-plugin? ...
how do I build a swt application using the eclipse p2 repository and the maven tycho-p2-plugin? ...
Does anyone know if there are any "out of the box" (e.g. open source library, in SWT or JFACE directly) ways to create date sliders or sliders with more than one thumb in SWT or JFACE? TIA ...
I have a TreeViewer where some nodes represent folders, so I wanted to show the icon of an open folder when the node is expanded and a closed folder when it is collapsed. Sounds easy, I just need to add a tree listener (the code is in Scala, but Java equivalent should be easy to imagine): val tree = new TreeViewer(contents) tree.addTree...
Hi I'm a Java novice but am trying to produce a wizard using the Wizard class (org.eclipse.jface.wizard.Wizard) Basically where I extend the Wizard in the constructor I addPage the two pages I want. On my first page I take some credentials. On the second page I want to run a query against the database using the credentials from the ...
Hi, I'm trying to make "Fluid" layout for Table -view (List view with sortable columns). But I'm only able to set Fixed width and height. Like in C#, I'm able to define: table.Dock = Dock.Fill; Does such Behavior exist in Java? I'd want the table to "Dock" into parent window. Or do I have to make method that loops through all availab...
Hi, I have a few composites in an Eclipse editor, and the user would like to resize, maximize, restore, and move those composites around in the editor, as if each of those was a portlet. Is there a toolkit for doing this, or is it something that I'll have to build myself from basic facilities like DnD and SashForms? Thank you. Pradyu...
Qt solution is a single call to resizeColumnsToContent(), in .NET one can use TextRenderer.MeasureText(), JTable could use AUTO_RESIZE_ALL_COLUMNS. In SWT, is there a way to programmaticaly resize columns after populating them? Calling computeSize(SWT.DEFAULT, SWT.DEFAULT) returns the same value thus disregarding character left over...
Hello! In my recent project, i contributed various commands to viewpart toolbars: Example: I want to do this for editors also. Is this possible and if it is, could some please point me in the right direction, on how this can be achieved? Thanks! :-) Patrick ...
In a tree with multiple columns, how do I resize columns to contents upon expand/collapse and data updates? The solution to the similar question for tables doesn't work. Same as tree.addListener(SWT.Collapse, new Listener(){ @Override public void handleEvent(Event e) { expandAndResize(false, (TreeItem) e.item); } }); ...
I'm creating a plugin project that will have a menu and toolbar item, that when clicked, will open a dialog for user interaction (input, searching, etc.). Should I create the dialog using SWT or Swing? ...
Hi, I've got problem with look of freshly installed Eclipse in my Ubuntu 10.04. The toolbars and tabs are just too wide, there's lot of empty space above and below text or images on them, so I wish to make them narrower. Fast look in google didn't give the answer how to configure it, so I hope someone has dealt with it. This is same ...
I have two browsers controls one in each tab. I notice that the browser doesn't seem to load until I click on the tab. I think there is some lazy loading going on here. How can I make the browser load its contents right away before the user clicks on the tab? ...
Hi, any idea how put the vertical scroll bar on the left hand side of the tree? thanks! ...
I open a web page in my java program's swt browser. Sometimes the backspace key stops working. has anyone heard of this or know what may fix it? When i click a button on my swt form the backspace key inside of the browser starts working again. ...
Hi there, I am writing an Eclipse GUI to consume a data-feed which is unknown at compile-time. The configuration for consuming the feed will be passed to the ViewPart subclass at construction-time and displayed in a TableViewer contained withing a stacked-tab view. I would like to update the text value contained in the CTabItem display...
Hello, I'm playing with a Tray and TrayItem in SWT, and i was wondering if there was a way of getting the location on screen of the icon. I want to be able to position another shell just underneath it as if it were a popup. Basicaly just having a mare trying to find the dimensions and location of it.... Any ideas? Cheers Andy ...
Hello, I want to display results of a file search. I want to enable a context menu for a file selection, which will be the system's context menu. For example, if the user right-clicks a file in Windows - I want to display the popup-menu with the options: Open Open with... Edit Send to... Copy Cut etc... And, if possible - this menu...
Considering that Sun/Oracle decided to not develop Swing any further after they "invented" JavaFX JavaFX doesn't really work and some consider it a failure already the not really platform-independent nature of SWT, the manual task to dispose GUI elements and the necessity to bundle platform-specific libraries is there another way ou...
In eclipse you can detach tabs and they will displayed in a special kind of window. Win7 with aero displays it as follows [new users aren't allowed to post images] How can i produce this frame? i have tried many styles of JFrame,JWindow,JDialog, ... ...
I'm trying to get Office 2007/2010 application embedded inside a Java application using SWT using the following code: import java.awt.Canvas; import javax.swing.JFrame; import org.eclipse.swt.SWT; import org.eclipse.swt.awt.SWT_AWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.ole.win32.*; import org.eclipse.swt.wid...