Use the Help > Install new software. Menu option to add Kepler features to your Eclipse installation (you can, for example, use this option to add C/C++ development support). Additionally, you can tap into a vast collection of extensions provided by the Eclipse community and ecosystem via the Eclipse Marketplace Client (Help > Eclipse Marketplace). Note that not all Eclipse packages contain the Eclipse Marketplace Client. Eclipse allows you to use dialogs to prompt the user for additional information or provide the user with feedback. The Eclipse platform offers several standard dialogs via SWT and JFace.
SWT is designed to be cross-platform, so it can run on a Mac. The problem is it commits the cardinal sin of Macland - it's UGLY. Toolbars don't look like Mac toolbars, status bars don't look like Mac status bars, etc. Does anyone have any experience in making an SWT application look more like a Mac application? For example, by making platform-specific JNI calls via the 'OS' class in SWT? If so, how difficult was it?
(This question arises because we are looking at porting an existing SWT app designed to run on Windows) Thanks. This is usually problem of Swing not SWT (SWT is directly linked to OS/framework provided widgets) - a quote from A gentle introduction to SWT and JFace: SWT is a library that creates a Java view of the native host operating system GUI controls. It is host implementation-dependent. This means SWT-based applications have several key characteristics: 1. They look, act, and perform like 'native' applications. The widgets provided reflect the widgets (the components and controls) provided on the host operating system. Any special behavior of the host GUI libraries is reflected in SWT GUIs.
The pre 3.5 Milestone used to use Carbon framework and now the 3.5+ supports both 32/64bit Cocoa framework so perhaps that has caused you confusion? Or can you be more specific, give us the version you use and some screenshots / sample code to reproduce?
I have been developing java application based on SWT/Eclipse RCP for a while on OSX and have not found and major problem with look&feel (of cause it does not 100% comply the Apple HID as it complies with Eclipse UIG). You can make your application look and behave like mac application easily. Apple supplies a application called JarBundler with it you can put your menu items up where they belong it will also build a double click able executable, and you can set a icon. Swing components on Mac OS X looks a lot like their cocoa components, and for OS X you can set some special flags that will make them just like their cocoa counter parts, such as you can set a flag for a JTextField and make it look like cocoa search field. Also all Macs come with java pre-installed so thats one less worry. I created support for the Mac OS native toolbar first for Carbon then for the Cocoa version of SWT.
At the time I managed to transfer the eclipse perspective switcher to a native toolbar. I had no Obj-C experience so the Cocoa version was more work than the Carbon version, but when all is told, it is not really hard. After supporting the toolbar, I wrote some code to support Alpha Compositing, native image transparency, hardware accelerated effects (CAAnimation). For these, the more difficult part was to understand why some APIs were not even available to be generated by the Eclipse JNI generator. Turned out that the python bridge generator that provided by apple had not been upgraded for the Obj-C 2.0 Property syntax. When I fixed that, I was able to have the SWT JNI Generator spit out the missing APIs.
From there, using them was the easy part. You can find some partial pieces of this in the eclipse.org bugzilla server. I can't say it is always simple, but if you already know Obj-C, then you should be able to do anything you want. A couple days ago I started working on SWT Cocoa again, to add support for ARGB images (as opposed to the limited transparency support offered by ImageData).
Really nice work, Tim, thanks! I've been through and I'm trying it out. 09:05, 5 September 2006 (CDT) The stuff about changing editors under General - Editors - File Associations doesn't work any more if an Eclipse plugin has 'locked' a file type or content type.
Not sure how to fix this - 06:40, 28 November 2006 (CST) Hopefully it will be the PHP plugin, and it will have locked.php to the setting you want anyway. If not, can you tell us exactly what you are seeing.
04:24, 29 November 2006 (CST). Contents. Problems with Ubuntu 6.10.
![How To Set Up Eclipse With Jface For A Mac How To Set Up Eclipse With Jface For A Mac](/uploads/1/2/5/6/125632498/195799405.png)
I'd really like to switch completely to Linux and Eclipse on my Moodle developments. However, I can't get the PHPEclipse plug-in to work with Eclipse 3.2 that came with Ubuntu 6.10. After the Eclipse restart required by the 'add. To the include path' tweak, the 'PHPEclipse stuff' is gone from the menus (forgot what it said), and when I try to open a PHP file in Eclipse I get: 'Failed to execute runnable (java.lang.NoClassDefFoundError: net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor)' and 'Unhandled event loop exception'.
Going to Google around a bit, but there seems to be a lot of other issues with the JVM also: Eclipse crashed when I tried to search the help, for example. 04:07, 20 December 2006 (CST) Just reporting that now the error message has changed to 'Problems occurred when invoking code from plug-in: 'org.eclipse.jface'.' Or I was reading the wrong part of the error log before. 04:11, 20 December 2006 (CST) One headache later I was able to get Eclipse to open the PHP files.
Apparently it was about the Java Runtime Environment version after all. I had 'sun-java5-bin: Sun Java(TM) Runtime Environment (JRE) 5.0' package installed but it didn't help.
After completely removing everything 'Java 1.4' ('j2re1.4' and friends) and upgrading 'libgjc' packages I got it to work. I reeeeally not a friend of Java versioning and library packaging! - 06:05, 20 December 2006 (CST) Ubuntu Eclipse Improvements Just found this: It may help a bit. There is a problem wiht the different java VM. If you set that the vm is the one of sun it must be like this everywere I did that: $ sudo aptitude install eclipse-sdk Remove any reference to gcj in /etc/eclipse/javahome.
Edit the file /usr/bin/eclipse and comment -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db et -Dgnu.gcj.runtime.VMClassLoader.librarycontrol=never. For me now eclipse runs with no problem Prefs file missing? Working through this bit: Open the file net.sourceforge.phpeclipse.ui.prefs that is in the directory (your workspace)/.metadata/.plugins/org.eclipse.core.runtime/.settings in a text editor. The file is not there. Net.sourceforge.phpeclipse.prefs is present, but does not have the line described.
Also, Under Team - CVS - SSH2 Connection Method, this path does not exist (working on Xandros with linux eclipse) 16:48, 17 January 2008 (CST) net.sourcegorge.phpeclipse.ui.prefs Note that in the documentation is: - Look for a line in the file that starts phpincludepaths= If it is not there, add it at the end. In my case, it was nothing there, so I add the line phpincludepaths=.
Under Team - CVS - SSH2 Connection Method I found this to be General - Network Connections - SSH2 - Key Management (the documentation is updated). After generating a DSA key, and following the rest of the instructions, I finally finish setting up Eclipse. Eclipse and whitespace (Moving this out of main page, so as not to confuse people with discussion.) I suggested. Under General - Compare/Patch, turn on Ignore white space if you plan to exchange patches with other developers or send patches on the tracker. This will make patches smaller and easier to compare. 20:28, 25 June 2008 (CDT) Tim replied: but that is a very bad idea. Whitespace is important, you should not change it unnecessarily, and so whitespace changes should be included in patches.
You've got good point there, whitespace is significant. But Eclipse seems to remove trailing space (eg. At the end of lines) by itself, and this makes patches I receive from Eclipse users impossible to apply after a few days of hacking in cvs head.:( Is there a way to tell Eclipse not to remove whitespace by itself? I really like to work with patches, but when they're twice as big as they should be and don't apply, it makes it a nightmare.
20:28, 25 June 2008 (CDT) Tim: There is a setting for remove trailing whitespace, but I don't know where it is. My Eclipse does not remove whitespace. Eclipse 3.3 has the option to display whitespace, which makes it easy to see what is going on, and is nice. What would be really nice is a 'Remove whitespace from lines I have edited only' option. Ger: whitespaces: windowpreferencesphpsave actions check 'Remove trailing whitespace (choose: radiobutton 'ignore empty lines'?) Eclipse 3.4 Just trying this out on a Mac and the interface details seem quite a bit different.
I don't know if this is because it's the Mac version or a newer version of Eclipse. Anyway, I've added comments as appropriate in the text - 03:45, 2 July 2008 (CDT) Setting up Eclipse PDT for Ubuntu 8.04 64bit (Hardy Heron) Eclipse PDT is only available in a 32bit build but if you have a 64bit installation of Ubuntu you are likely to be using a 64bit version of java.
This means that eclipse PDT will try to open via 64bit java and it wont work. Here is the solution (based on ): 1) Install a 32 bit version of java. Open a new console and enter 'sudo apt-get install ia32-sun-java5-bin' 2) Download eclipse PDT 32 bit version from (select linux) 3) Extract the downloaded eclipse archive to $HOME/applications (obviously you can put it somewhere else if you like). You will now have $HOME/applications/eclipse as a directory 4) In the newly extracted eclipse directory, create a file called eclipse.sh 5) Edit eclipse.sh and add the following:.!/bin/bash PATH=/usr/lib/jvm/ia32-java-1.5.0-sun/bin:$PATH $HOME/applications/eclipse 6) Now open a console and enter 'cd $HOME/applications/eclipse' then enter 'chmod +x eclipse.sh' 7) You can now run eclipse 32 bit from this folder by entering './eclipse.sh' in to the console.
![How to set up eclipse with jface for a machines How to set up eclipse with jface for a machines](http://blog.crazyflie.net/wp-content/uploads/2016/06/eclipse.png)
You can also create a desktop shortcut to this $HOME/applications/eclipse/eclipse.sh if you wish. Hope this helps someone.