jface

Can you disable the back button in a JFace wizard?

I'm writing a wizard for an Eclipse RCP application. After doing some processing on a file and taking some user input, I don't want to let the user go back to make changes. At this point they must either accept or reject the changes they are about to make to the system. What I can't seem to find is a method call that lets me override ...

Why does Table.getItem(Point) always return the item from column zero?

I've implemented a class to give me a more flexible tooptip for the org.eclipse.swt.widgets.Table class. As I'm sure you all know, by default you get one tooltip for the whole table - and not individual tips for each cell. My object creates a number of listeners to implement it's own location sensitive tooltip, however, when I call Tabl...

How to hilight a section of a TableView cell as part of the filtering process?

The backstory: I am applying a filter to a TableView. It's a simple 'find the rows with this string' filter. The requirement: I wish to hilight instances of the search term where they occur. Thus far I can see no means of doing this. ITableColorProvider let's me apply colours to entire cells, but not to a fraction of it. Clues most w...

How to tell user events from synthetic events?

I have a JFace editor that is mostly made up of a TreeViewer. This is hooked up to a ContentOutlinePage to bring the Outline view to life. When either one receives a SelectionChangedEvent event they call the others setSelection() method ... and therein lies the problem. setSelection() generates another SelectionChangedEvent ... and thus...

Layout problems by FieldEditorPreferencePage

Hello, I have following problems with layout settings in the FieldEditorPreferencePage. My code is something like that: public void createFieldEditors () { Group pv = new group(getfieldEditorParent(), SWT.SHADOW_OUT); Group of = new group(getfieldEditorParent(), SWT.SHADOW_OUT); pv.setText(“pv”); of.setText(“of”...

Enumerating all my Eclipse editors?

I have built a simple Eclipse plugin where a user may use a tableViewer of database resources to open an editor on any of those resources. Users may therefore have zero upwards instances of the editor running. Is there an API available to get a list of those editor instances? M. ...

jface tableviewer cell-span

I am endeavouring to render some hierarchic data in a TableViewer (the TreeViewer isn't a good fit - trust me on this :-). Consequently I need to render the parent cells with a row-span > 1. As far as I can tell, this currently isn't possible with the regular JFace TableViewer, or the SWT Table underneath. Can anyone tell me I'm wrong?...

How to get JavaDoc for SWT and JFace in Eclipse?

I'm a newbie to Eclipse and can't figure out how to get the JavaDocs for SWT and JFace to show up when I am editing. How do I do this? Thanks! ...

How to figure out the preferred size of a JFace TreeViewer or SWT Tree?

I am writing an Eclipse plugin which has a hover control that consists of two controls, one on top of another: An HTML viewer (BrowserInformationControl) for which I Can easily compute the size hint A TreeViewer that contains a Tree. I have set up my tree with actual contents. However, I can't find a way to figure out the size of the ...

Proper way to bind a radio button group using JFace data binding

Hello, I was wondering if anyone could explain to me how I could properly bind a group of radio buttons to a boolean variable in the model using JFace data binding. Let me explain the situation first: I've created a class that represents a group of SWT buttons (with the style set to 'SWT.RADIO') that consists of three elements: A label...

eclipse jface filtered items selection dialog with multiple-column table

I'm coding up a dialog box for an Eclipse plug-in much like the built-in FilteredItemsSelectionDialog from jface, except that the items that can be selected are (basically) made up of three strings, so I would like the table to show three columns that are sortable in addition to being filterable. I started pursuing the cleanest solution ...

SWT/JFace: remove widgets

Group group = new Group(parent, SWT.NONE); StyledText comment = new StyledText(group, SWT.BORDER_DASH); This creates a group with a text area inside. How can I later delete the text (remove it from the screen so that I can replace it with something else)? ...

Eclipse RCP: Communication between elements created in different ViewPart?

Hi, what's the best way to make communications between page widgets residing on differents ViewPart? via listener or via shared object instances like "getViewSite().getPart()/getPage()" ? what pro/contra and what's the best strategy for You? Thanks, regards ...

How can I disable all images for an JFace menu but leave them enabled in the toolbar

If I create a set of actions to be used in a JFace application and I assign images to those actions, those images show up in both the toolbar (where I want them) and in the menus (where I don't want them). Other than supplying two completely separate sets of actions (which eliminates part of the point of actions in the first place), how...

Eclipse Plugin API: how can I add javadoc support for specific platform plugins?

Hi, using Eclipse 3.4 Ganymede and I cannot find the way to add javadoc support for all platform plugin apis, but specifically to JFace e Ui Forms packages. Opening the property panel of any jar linked to the library named "plug-in dependecies" I receive the following message into the "Javadoc location" node: The current class pat...

How to wire up an editor to the location cursor icons?

I have built a graphical editor as an Eclipse plugin. Users may zoom into and pan about the graphical image. I would like to employ the Back and Forward arrow icons in the Eclipse icon bar to step back and forth through the graphical image, in a similar manner to what is already possible in textual editors. All of my references go quiet...

How can I hide a CTabItem in a CTabFolder

I can't find any method for making a tab invisible or otherwise hidden in an SWT/JFace application --- I want a second tab to be available (or not) based on some other preferences set by the user. It shouldn't be so hard to figure this out! ...

JFace: Resizable tooltip with ColumnViewerToolTipSupport

Hi, Can anyone show me how to use org.eclipse.jface.viewers.ColumnViewerToolTipSupport to create a tooltip similar to the one shown in Eclipse IDE when you hover your mouse to any Java element? That is, I want the tooltip to be resizable, I also want to hook an F2 key to show the tooltip on demand in addition to mouse hover. I have ...

Using the Selection service on something that is *not* a JFace view

I am building an image Editor as an Eclipse plugin. I would like to use the Properties view to view & edit properties of the model underneath the image. Accordingly I am calling .. getSite().setSelectionProvider( this ); .. within createPartControl, and implementing the ISelectionProvider interface in my EditorPart implementation, s...

Eclipse RCP, SWT, JFace: How to create a dialog that is modal only to a view (not the entire shell)?

Hi there, Is there anyway to create a dialog that is modal to a view and not the entire shell (application)? So if say, I have one view called A that is overlaying another view called B, I want to open a dialog that is only modal to view A, so when I switch to view B, the dialog and the view A will be covered by view B. Is there anywa...