Re: r5858 - branches/eclipse_3_5/wolips/goodies/plugins/org.objectstyle.wolips.goodies.core.mac/java/org/objectstyle/wolips/goodies/core/mac

From: Francis Labrie (francis.labri..mail.com)
Date: Thu Jul 09 2009 - 18:26:45 EDT

  • Next message: Mike Schrag: "Re: r5858 - branches/eclipse_3_5/wolips/goodies/plugins/org.objectstyle.wolips.goodies.core.mac/java/org/objectstyle/wolips/goodies/core/mac"

    Hi Mike,

    mschra..bjectstyle.org wrote:
    > Author: mschrag
    > Date: 2009-07-09 17:09:11 -0400 (Thu, 09 Jul 2009)
    > New Revision: 5858
    >
    > [...]
    >.. -12,16 +11,27 @@
    > ..verride
    > public synchronized IRefreshMonitor installMonitor(IResource
    > resource, IRefreshResult result) {
    > IRefreshMonitor refreshMonitor;
    > - if (OS.VERSION >= 0x1050) {
    > - if (_refreshMonitor == null) {
    > - _refreshMonitor = new MacRefreshMonitor();
    > + Class osClass;
    > + try {
    > + try {
    > + osClass = Class.forName("org.eclipse.swt.internal.cocoa.OS");
    > + } catch (Throwable t) {
    > + osClass = Class.forName("org.eclipse.swt.internal.carbon.OS");
    > }
    > - _refreshMonitor.monitor(resource, result);
    > - refreshMonitor = _refreshMonitor;
    > - } else {
    > - refreshMonitor = super.createPollingMonitor(resource);
    > + int osVersion = osClass.getField("VERSON").getInt(null);

    Just to be sure it's not a typo: is this filed name really "VERSON" or
    is it "VERSION" instead?

    --
    Francis Labrie
    Saint-Bruno-de-Montarville, Quebec, Canada
    



    This archive was generated by hypermail 2.0.0 : Thu Jul 09 2009 - 18:27:54 EDT