Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Change and recompile SWT
Change and recompile SWT [message #464376] Tue, 22 November 2005 09:40 Go to next message
nunofsousa is currently offline nunofsousaFriend
Messages: 5
Registered: July 2009
Junior Member
I have a big problem with accents in the SWT browser Widget. For that reason i checked out the SWT project and commented a few lines in the class OleFrame.java (package org.eclipse.swt.ole.win32).

/* Allow OleClientSite to process key events before activeX control */
/*if (!consumed) {
int hwndOld = msg.hwnd;
msg.hwnd = site.handle;
consumed = OS.DispatchMessage (msg) == 1;
msg.hwnd = hwndOld;
}*/

The accents start working fine. The problem i have is to don't know what will stop working.

Now I am trying to recompile the project to replace the SWT i am using in my RCP and when i run the ant script i get the folowing error: Could not create task or type of type: eclipse.versionReplacer.

Can anybody help me with this??
Re: Change and recompile SWT [message #464379 is a reply to message #464376] Tue, 22 November 2005 13:47 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
The code you have commented out is used to allow the keyboard accelerators
defined by the application to work.

When you run the ant task, make sure that you check off "Run in the same JRE
as the workspace" in the "JRE" tab. Which ant script are you running?
There is one in the swt library folder and this is only used for recompiling
the dll and there is one in the platform specific fragment - this is used
for creating the swt jar (e.g. org.eclipse.swt.win32.win32.x86/build.xml).

For the accented character you are entering - are you sure that the RCP
application has not defined a conflicting keyboard accelerator?

"Nuno" <nunofsousa@hotmail.com> wrote in message
news:6331223.1132652478828.JavaMail.root@cp1.javalobby.org...
>I have a big problem with accents in the SWT browser Widget. For that
>reason i checked out the SWT project and commented a few lines in the class
>OleFrame.java (package org.eclipse.swt.ole.win32).
>
> /* Allow OleClientSite to process key events before activeX control */
> /*if (!consumed) {
> int hwndOld = msg.hwnd;
> msg.hwnd = site.handle;
> consumed = OS.DispatchMessage (msg) == 1;
> msg.hwnd = hwndOld;
> }*/
>
> The accents start working fine. The problem i have is to don't know what
> will stop working.
>
> Now I am trying to recompile the project to replace the SWT i am using in
> my RCP and when i run the ant script i get the folowing error: Could not
> create task or type of type: eclipse.versionReplacer.
>
> Can anybody help me with this??
Re: Change and recompile SWT [message #464384 is a reply to message #464376] Tue, 22 November 2005 14:44 Go to previous message
nunofsousa is currently offline nunofsousaFriend
Messages: 5
Registered: July 2009
Junior Member
The ant script i am trying to run is buils.xml in org.eclipse.swt.win32.win32.x86. I commented the line <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/> and my jar was produced. Then when I replaced this jar in my application it gives me the error od swt-win32-3214.dll missing. Well the dll that i have in my project is swt-win32-3215.dll. I renamed it and now it is working.

For the accented character problem, i installed a new version of Eclipse 3.2 M3 in a clean workspace and used the view of the Internal Web Browser. In The portuguese keyboard we nedd two keys to make as accented character and none works ( ex: ´ + a = á ; éíóúàèìòù)
Previous Topic:Text widget as a console
Next Topic:ViewForm Issue
Goto Forum:
  


Current Time: Thu Dec 05 18:01:13 GMT 2019

Powered by FUDForum. Page generated in 0.04467 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top