Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Patching RAP qooxdoo
Patching RAP qooxdoo [message #132359] Tue, 12 May 2009 14:02 Go to next message
Eclipse UserFriend
Originally posted by: markus.wolf.nmmn.com

Hi,

is there an easy way to patch the qooxdoo files in RAP?
Or is the only way to extract the jar containing the javascript, modify
it and repackage it afterwards?

Thanks for any help
Markus Wolf
--
NMMN - New Media Markets & Networks GmbH
Langbehnstrasse 6, 22761 Hamburg
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona - UStID DE 812 699 852 - HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82

http://www.nmmn.com
Tel.: +49 40 284 118-0 - Fax: +49 40 284118-999
Softwareentwicklung LLynch: -720
Re: Patching RAP qooxdoo [message #132516 is a reply to message #132359] Tue, 12 May 2009 20:32 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

> is there an easy way to patch the qooxdoo files in RAP?
> Or is the only way to extract the jar containing the javascript, modify
> it and repackage it afterwards?

are you aware of Mixins [1] in qooxdoo? If they do not help with your
problem, you'll probably have to create a new version of the qx.js file
included in the org.eclipse.rap.rwt.q07 fragment. To do so, check out
the project org.eclipse.rap.qx.build, change the sources and run the
included build-custom.sh script.

Of course, you do this is on your own risk, no guarantee that RAP still
works correctly with patched qx sources!

Best regards,
Ralf

[1] http://qooxdoo.org/documentation/0.7/mixins
Re: Patching RAP qooxdoo [message #132542 is a reply to message #132516] Wed, 13 May 2009 08:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: markus.wolf.nmmn.com

Hi Ralf,

>> is there an easy way to patch the qooxdoo files in RAP? Or is the only
>> way to extract the jar containing the javascript, modify it and
>> repackage it afterwards?
>
> are you aware of Mixins [1] in qooxdoo? If they do not help with your
> problem, you'll probably have to create a new version of the qx.js file
> included in the org.eclipse.rap.rwt.q07 fragment. To do so, check out
> the project org.eclipse.rap.qx.build, change the sources and run the
> included build-custom.sh script.
>
> Of course, you do this is on your own risk, no guarantee that RAP still
> works correctly with patched qx sources!
>
I'll try with mixings. The problem that we have is that we need the
native context menu of the browser. We enabled it globally in qooxdoo
with a custom component. But (as expected) it overlaps custom context
menus in qooxdoo and now I search for a way to supress it in places where
we install a custom context menu.
I know there is a bug open with a workaround but I think that needs
patching the qooxdoo files.

If I get it to work, I'll post it here for reference.

Thanks you very much
Markus Wolf
--
NMMN - New Media Markets & Networks GmbH
Langbehnstrasse 6, 22761 Hamburg
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona - UStID DE 812 699 852 - HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82

http://www.nmmn.com
Tel.: +49 40 284 118-0 - Fax: +49 40 284118-999
Softwareentwicklung LLynch: -720
Re: Patching RAP qooxdoo [message #132554 is a reply to message #132542] Wed, 13 May 2009 08:41 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

Markus Wolf wrote:
> I'll try with mixings. The problem that we have is that we need the
> native context menu of the browser. We enabled it globally in qooxdoo
> with a custom component. But (as expected) it overlaps custom context
> menus in qooxdoo and now I search for a way to supress it in places where
> we install a custom context menu.
> I know there is a bug open with a workaround but I think that needs
> patching the qooxdoo files.
>
> If I get it to work, I'll post it here for reference.

Yes, that would be nice. You could also add a patch to the related bug.

Good luck,
Ralf
Re: Patching RAP qooxdoo [message #133408 is a reply to message #132542] Tue, 19 May 2009 09:59 Go to previous message
Eclipse UserFriend
Originally posted by: markus.wolf.nmmn.com

Hi,

if anyone is interested in our work on this we post it here for reference.

>> are you aware of Mixins [1] in qooxdoo? If they do not help with your
>> problem, you'll probably have to create a new version of the qx.js file
>> included in the org.eclipse.rap.rwt.q07 fragment. To do so, check out
>> the project org.eclipse.rap.qx.build, change the sources and run the
>> included build-custom.sh script.
>>
>> Of course, you do this is on your own risk, no guarantee that RAP still
>> works correctly with patched qx sources!
>>
> I'll try with mixings. The problem that we have is that we need the
> native context menu of the browser. We enabled it globally in qooxdoo
> with a custom component. But (as expected) it overlaps custom context
> menus in qooxdoo and now I search for a way to supress it in places
> where we install a custom context menu.
> I know there is a bug open with a workaround but I think that needs
> patching the qooxdoo files.
>
We created a mixing like this:

qx.Mixin.define("de.nmmn.ContextMenuPatch", {
construct : function(child) {
if (this._tree) {
this._tree.addEventListener("contextmenu",
this._onContextMenuPatch, this);
}
},
"members" : {
_onContextMenuPatch : function(event) {
var menu = this.getContextMenu();
if (menu != null) {
event.preventDefault();
}
}
}
});
qx.Class.include(org.eclipse.swt.widgets.Tree,
de.nmmn.ContextMenuPatch);


Currently this mixing is included in the eclipse Tree widget (see the
line after the mixing code) and the mixin itselfs registers a contextmenu
listener if there is a _tree attribute.
This could be simple adopted to other widgets. All that is needed is to
attach a contextmenu listener.

Hope this helps anyone. :)

Markus Wolf
--
NMMN - New Media Markets & Networks GmbH
Langbehnstrasse 6, 22761 Hamburg
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona - UStID DE 812 699 852 - HRB 71102 Hamburg
HypoVereinsbank - BLZ 200 300 00 - Konto-Nr. 156 29 82

http://www.nmmn.com
Tel.: +49 40 284 118-0 - Fax: +49 40 284118-999
Softwareentwicklung LLynch: -720
Previous Topic:[TableViewer] Performance bug switching from large input to small input
Next Topic:"Hello World" Tutorial doesn't work
Goto Forum:
  


Current Time: Wed Apr 24 19:22:33 GMT 2024

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

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

Back to the top