VirtualBox

Changeset 31096 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jul 26, 2010 8:55:20 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64048
Message:

Java: MSCOM update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r31095 r31096  
    27552755    }
    27562756
     2757    @SuppressWarnings("unchecked")
    27572758    public static <T> Object wrapVariant(Class<T> wrapperClass, Variant v)
    27582759    {
     
    27842785    }
    27852786
     2787    @SuppressWarnings("unchecked")
    27862788    public static <T> List<T> wrap(Class<T> wrapperClass, SafeArray sa) {
    27872789        if (sa==null)  return null;
     
    29112913    }
    29122914
     2915    @SuppressWarnings("unchecked")
    29132916    public static <T> T[] unwrap(Class<T> wrapperClass, List<T> thisPtrs) {
    29142917        if (thisPtrs==null) return null;
     
    29162919    }
    29172920
     2921    @SuppressWarnings("unchecked")
    29182922    public static <T1 extends IUnknown,T2> T2[] unwrap2(Class<T1> wrapperClass1, Class<T2> wrapperClass2, List<T1> thisPtrs) {
    29192923        if (thisPtrs==null) return null;
     
    29983002    }
    29993003
    3000     public ISession openMachineSession(String mid) throws Exception
     3004    public ISession openMachineSession(IMachine m)
    30013005    {
    30023006        ISession s = getSessionObject();
    3003         try {
    3004           this.vbox.openExistingSession(s, mid);
    3005           return s;
    3006         } catch (Exception e) {
    3007           try {
    3008             this.vbox.openSession(s, mid);
    3009             return s;
    3010           } catch (Exception e1) {
    3011             closeMachineSession(s);
    3012             throw e1;
    3013           }
    3014         }
    3015     }
    3016 
    3017     public ISession openMachineSession(IMachine m) throws Exception
    3018     {
    3019           return openMachineSession(m.getId());
    3020     }
    3021 
     3007        m.lockMachine(s, LockType.Shared);
     3008        return s;       
     3009    }
     3010   
    30223011    public void closeMachineSession(ISession s)
    30233012    {
     
    30653054            return false;
    30663055        ISession session = getSessionObject();
    3067 
    3068         String mid = m.getId();
    30693056        if (type == null)
    30703057            type = "gui";
    3071         IProgress p = vbox.openRemoteSession(session, mid, type, "");
     3058        IProgress p = m.launchVMProcess(session, type, "");
    30723059        progressBar(p, timeout);
    30733060        session.unlockMachine();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette