jface

How can I export an eclipse 4 application for multiple platforms

不打扰是莪最后的温柔 提交于 2019-12-05 22:29:18
How can I export an Eclipse 4 application so that it can run in either Windows or Linux? I see that the product configuration has tabs for all platforms: ...but when I export I see in the repository\binary a product with name product_root.win32.win32.x86_64 which indicates that it builds according to my development machine which is Windows 7/64bit . So to export the application to run in Linux the export must be done in a Linux machine? I.e. I have to import my project files in an Eclipse running in Linux and then do export? Update 1: Following @Baz advice I installed delta pack. But on export

JFace libraries stand-alone download (not picked from Eclipse plug-ins)

有些话、适合烂在心里 提交于 2019-12-05 19:41:48
I would like to use all of the JFace functionality but include in my project only the very minimum in terms of external jar s. Is it possible to download the typical .jar s required to build an SWT/JFace app without having to download Eclipse first and then to pick the right files out of the plugins directory? e.g. these files.. org.eclipse.core.commands_.jar org.eclipse.equinox.common_.jar org.eclipse.jface_.jar org.eclipse.osgi_.jar org.eclipse.ui.workbench_.jar ... Is it even possible to map classes to jar files and download links for said files? Note: I am looking for the "official library

Items decorations in a TreeViewer

一个人想着一个人 提交于 2019-12-05 17:23:13
I have the following problem: I'm preparing an editor in Eclipse and one of the tab contains TreeViewer to show items in the tree. Each item has a name and a value, which is editable. The problem I need to indicate to user that value is incorrect (e.g. exceeds a given range). My idea is to decorate incorrect cells with a warning or error icon which will be shown also after editing is complete. Does anybody have an idea how to decorate items in the tree? I was experimenting with ControlDecoration class but without success. Thanks in advance, Marcin PS. I'm limited to Eclipse 3.4 There are two

How to always show vertical scroll bar in SWT table?

爷,独闯天下 提交于 2019-12-05 10:49:55
Is it possible to always show the vertical scroll bar in a SWT table even if the table is empty? By always showing a (possible disabled) vertical scroll bar one can avoid that the last column get partially hidden when the columns use ColumnWeightData for layouting. I tried to initialize the table with SWT.V_SCROLL or to use table.getVerticalBar().setVisible(true) - both without success. There is a method setAlwaysShowScrollBars in ScrollableComposite . What I am looking for is a similar method in Table . UPDATE: I suppose that the scroll bars which are visible when the table contains enough

JFace ErrorDialog: how do I show something in the details portion?

时光怂恿深爱的人放手 提交于 2019-12-05 09:32:23
ErrorDialog.openError takes arguments for dialog title, message, and status (which has a message itself). I want to show the exception's message in the main area, and the call stack in the details area. However, both of these variations show the call stack in the main area: void showException(Throwable e) { Status status = new Status(IStatus.ERROR, "SCS Admin", e.getLocalizedMessage(), e); e.printStackTrace; ErrorDialog.openError(getShell(), null, Util.getStackTrace(e), status); } void showException(Throwable e) { Status status = new Status(IStatus.ERROR, "SCS Admin", Util.getStackTrace(e), e)

Using a ILightweightLabelDecorator decorator

≯℡__Kan透↙ 提交于 2019-12-05 09:08:13
Having implemented one of the above, can anyone say how I might wire it up directly to a viewer? None of the usual sources explain. Martin. JB. As far as I can tell you need an ILabelDecorator and the only easy way to get one is to use the workbench UI: viewer.setLabelProvider( new DecoratingLabelProvider(new MyPlainLabelProvider(), PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator())); You then need to add your lightweight decorator to the decorators extension point in the plugin.xml . Obviously, this will only work if your app is an Eclipse plugin. It seems odd that

JFace examples in Eclipse like SWT Examples?

情到浓时终转凉″ 提交于 2019-12-05 05:53:08
Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me. It would be nice if it was a standalone app or an eclipse plugin. Thank you. VonC Aside from the SWT JFace examples and introduction courses , you have some projects based on JFace controls: JFace Data Binding CellLabelProvider TreeViewer example Nebula project Nebula is a place where different Eclipse-Projects and Independent developers collaborate on building Custom SWT widgets and reuseable UI-Components useable in UI

SWT/JFace: remove widgets

前提是你 提交于 2019-12-05 01:25:23
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)? Use Widget.dispose. public class DisposeDemo { private static void addControls(final Shell shell) { shell.setLayout(new GridLayout()); Button button = new Button(shell, SWT.PUSH); button.setText("Click to remove all controls from shell"); button.addSelectionListener(new SelectionListener() { @Override public void widgetDefaultSelected

How to get JavaDoc for SWT and JFace in Eclipse?

大兔子大兔子 提交于 2019-12-05 00:25:09
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! I assume you've dowloaded the jars yourself and referenced them in your project. If so, you can right click the jar in the project explorer (in the 'Referenced Libraries' node) and click 'Properties'. The window that appears you can define the location of the jar's JavaDoc and source, if you have those available. You can also reach this by clicking Project > Properties > Java Build Path > Libraries and expanding the node for the jar to which you want to

Enumerating all my Eclipse editors?

那年仲夏 提交于 2019-12-05 00:05:54
问题 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? 回答1: You can get references to all open editors with: PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getActivePage().getEditorReferences(); And then check these to select the ones that reference instances of your