Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Re: startApp from osgi console

Thanks Thomas. I think I got it.

2008/2/14, Thomas Watson <tjwatson@xxxxxxxxxx>:

I think you may have run into bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=198988

Tom



Inactive hide details for "向雅" ---02/13/2008 01:21:30 PM---Hi team,"向雅" ---02/13/2008 01:21:30 PM---Hi team,


From:

"向雅" <fyaoxy@xxxxxxxxx>

To:

"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>

Date:

02/13/2008 01:21 PM

Subject:

[equinox-dev] Re: startApp from osgi console





Hi team,

ha~It seems my homework not enough, why I just miss Alex Blewitt's article at

http://www.eclipsezone.org/eclipse/forums/t99762.html.
OK, the thread seems not a question.

The true question is that, since the main thread mode IApplications cannot running, Why AppCommans not report a error or warning but a "Lanuched ..." message.
From track, we can see that EclipseAppContainer or EclipseAppLauncher do not let the illegal/invalid application reached its IApplication.start() method.
So in my view, it's better that let code give a report.

If this can open a bug report?


在08-2-13,向雅 <fyaoxy@xxxxxxxxx> 写道:
    Hi,
    I tried org.eclipse.equinox.examples.app.selector.application, with "any" and "main" thread mode, both visiable, all evironment is the newest 3.4M5 and cvs version plugins:
    And at selector I just add 3 lines printlog, no other changes.
    my running log as follows:

    ANY thread mode
    osgi> !SESSION 2008-02-13 06:34:56.906 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
    Framework arguments: -product org.eclipse.equinox.examples.app.selector.product
    Command-line arguments: -product org.eclipse.equinox.examples.app.selector.product -data F:\workspace\3.4/../runtime-AppSelector.product -dev
    file:F:/workspace/3.4/.metadata/.plugins/org.eclipse.pde.core/AppSelector.product/dev.properties -os win32 -ws win32 -arch x86 -console -consoleLog

    yes, I starting... org.eclipse.equinox.internal.app.EclipseAppHandle@109fd93
    osgi>
    osgi> yes, I run returned.
    yes, I dispose...

    osgi> startApp org.eclipse.equinox.examples.app.selector.application
    Launched application instance: org.eclipse.equinox.examples.app.selector.application.1

    osgi> class org.eclipse.equinox.internal.app.EclipseAppHandle
    yes, I starting... org.eclipse.equinox.internal.app.EclipseAppHandle@31fb31
    yes, I run returned.
    yes, I dispose...
    In this mode, all seems ok, except must select stop action to close the application. if click windows close button, workbench Realm class would failed.

    MAIN_THEAD mode

    osgi> !SESSION 2008-02-13 06:37:02.468 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
    Framework arguments: -product org.eclipse.equinox.examples.app.selector.product
    Command-line arguments: -product org.eclipse.equinox.examples.app.selector.product -data F:\workspace\3.4/../runtime-AppSelector.product -dev
    file:F:/workspace/3.4/.metadata/.plugins/org.eclipse.pde.core/AppSelector.product/dev.properties -os win32 -ws win32 -arch x86 -console -consoleLog

    class org.eclipse.equinox.internal.app.EclipseAppHandle
    yes, I starting... org.eclipse.equinox.internal.app.EclipseAppHandle@141b571
    yes, I run returned.
    yes, I dispose...
    osgi>

    osgi> apps
    org.eclipse.equinox.app.error [not launchable]
    org.eclipse.swt.examples.addressbook.app [launchable]
    org.eclipse.equinox.examples.app.selector.application [launchable]

    osgi> startApp org.eclipse.equinox.examples.app.selector.application
    Launched application instance: org.eclipse.equinox.examples.app.selector.application.1

    osgi> apps
    org.eclipse.equinox.app.error [not launchable]
    org.eclipse.swt.examples.addressbook.app [not launchable]
    org.eclipse.equinox.examples.app.selector.application [running] [not launchable]

    osgi> stopApp org.eclipse.equinox.examples.app.selector.application
    Stopped application instance: org.eclipse.equinox.examples.app.selector.application.1

    osgi> startApp org.eclipse.swt.examples.addressbook.app
    Launched application instance: org.eclipse.swt.examples.addressbook.app.0

    osgi> close

    In the MAIN_THREAD mode, the first time ok, but close it, and start again, the selector application no more visible. and the address app window can only window main frame, no address table.

    Could you give some hints?
    --
    致敬
    向雅



--
致敬
向雅
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




--
致敬
向雅

Back to the top