VirtualBox

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


Ignore:
Timestamp:
Oct 26, 2017 5:02:54 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118712
Message:

Main: More scm updates

Location:
trunk/src/VBox/Main/glue/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/tests/TestVBox.java

    r56636 r69388  
    11/* $Id$ */
    2 
    3 /* Small sample/testcase which demonstrates that the same source code can
    4  * be used to connect to the webservice and (XP)COM APIs. */
     2/*! file
     3 * Small sample/testcase which demonstrates that the same source code can
     4 * be used to connect to the webservice and (XP)COM APIs.
     5 */
    56
    67/*
     
    1516 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1617 */
     18
    1719import org.virtualbox_5_0.*;
    1820import java.util.List;
     
    141143        String name = m.getName();
    142144        System.out.println("\nAttempting to start VM '" + name + "'");
    143        
     145
    144146        ISession session = mgr.getSessionObject();
    145147        IProgress p = m.launchVMProcess(session, "gui", "");
  • trunk/src/VBox/Main/glue/tests/TestVBoxNATEngine.java

    r56636 r69388  
    11/* $Id$ */
    2 
    3 /* Small sample/testcase which demonstrates that the same source code can
    4  * be used to connect to the webservice and (XP)COM APIs. */
     2/*!file
     3 * Small sample/testcase which demonstrates that the same source code can
     4 * be used to connect to the webservice and (XP)COM APIs.
     5 */
    56
    67/*
     
    1516 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1617 */
     18
    1719import org.virtualbox_5_0.*;
    1820import java.util.List;
     
    2931        /* different chipsets might have different number of attachments */
    3032        ChipsetType chipsetType = vm.getChipsetType();
    31         INetworkAdapter adapters[] = 
     33        INetworkAdapter adapters[] =
    3234            new INetworkAdapter[
    3335                    vbox.getSystemProperties().getMaxNetworkAdapters(chipsetType).intValue()];
     
    4042             * dump it settings
    4143             */
    42                
     44
    4345            for (int nidx = 0; nidx < adapters.length; ++nidx)
    4446            {
     
    4648                adapters[nidx] = vm.getNetworkAdapter(new Long(nidx));
    4749                INetworkAdapter n = adapters[nidx];
    48                    
     50
    4951                if (n == null)
    5052                    continue;
     
    6769                        /* name,proto,hostip,host,hostport,guestip,guestport */
    6870                        nat.removeRedirect(pfAttributes[0]);
    69                         nat.addRedirect("", 
     71                        nat.addRedirect("",
    7072                                        NATProtocol.fromValue(new Integer(pfAttributes[1]).longValue()),
    7173                                        pfAttributes[2],
     
    7880                }
    7981            }
    80                
     82
    8183        }
    8284        catch (VBoxException e)
     
    8486            name = "<inaccessible>";
    8587            inaccessible = true;
    86         }           
     88        }
    8789
    8890        // process system event queue
Note: See TracChangeset for help on using the changeset viewer.

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