Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] E4 product export problems

Dear great ladies and nice gentle men,
I solved this problem.
I added all the jars that are used in my project to exported product.

regards
Ahmad Parvez
www.abobjects.com

On Mon, Oct 17, 2011 at 6:55 PM, Remy Suen <remysuen@xxxxxxxxxx> wrote:
> On Sun, Oct 16, 2011 at 6:46 AM, Parvez Ahmad <parvez12@xxxxxxxxx> wrote:
>> Dear all great men,
>
> Please don't forget there are females in the Eclipse community. :)
>
>> 1) I want to show a message box using below code.
>> My code is not getting called from a COMMAND/Handler, but is a
>> code(from another project in workspace) that is getting injected
>> using dependency injection.
>> So how to get the shell in E4, in below case:-
>> MessageDialog.openInformation(shell , "About","");
>
> I'm not sure about your second problem, but if you want a shell then you
> should be able to inject it.
>
> @Execute
> void execute(@Named(IServiceConstants.ACTIVE_SHELL) Shell shell) {
> /* ... */
> }
>
> @Execute
> void execute(MWindow window) {
> Shell shell = (Shell) window.getShell();
> /* ... */
> }
>
> Regards,
> Remy
>
> ----------
> Remy Suen
> Eclipse Platform/UI Committer
> IBM Ottawa
> 1-613-356-5162
>
> _______________________________________________
> e4-dev mailing list
> e4-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/e4-dev
>
>


Back to the top