示例#1
0
 public void interpret() {
   try {
     getTypedWrapped().interpret();
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#2
0
 public String getPath() {
   try {
     String retVal = getTypedWrapped().getPath();
     return retVal;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#3
0
 public List<String> getMachines() {
   try {
     String[] retVal = getTypedWrapped().getMachines(null);
     return Helper.wrap(retVal);
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#4
0
 public org.virtualbox_4_3.IProgress read(String file) {
   try {
     org.mozilla.interfaces.IProgress retVal;
     retVal = getTypedWrapped().read(file);
     return (retVal != null) ? new org.virtualbox_4_3.IProgress(retVal) : null;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#5
0
 public org.virtualbox_4_3.IVFSExplorer createVFSExplorer(String URI) {
   try {
     org.mozilla.interfaces.IVFSExplorer retVal;
     retVal = getTypedWrapped().createVFSExplorer(URI);
     return (retVal != null) ? new org.virtualbox_4_3.IVFSExplorer(retVal) : null;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#6
0
 public List<org.virtualbox_4_3.IVirtualSystemDescription> getVirtualSystemDescriptions() {
   try {
     org.mozilla.interfaces.IVirtualSystemDescription[] retVal =
         getTypedWrapped().getVirtualSystemDescriptions(null);
     return Helper.wrap2(
         org.virtualbox_4_3.IVirtualSystemDescription.class,
         org.mozilla.interfaces.IVirtualSystemDescription.class,
         retVal);
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#7
0
 public org.virtualbox_4_3.IProgress importMachines(
     List<org.virtualbox_4_3.ImportOptions> options) {
   try {
     org.mozilla.interfaces.IProgress retVal;
     retVal =
         getTypedWrapped()
             .importMachines(
                 options != null ? options.size() : 0,
                 Helper.unwrapEnum(org.virtualbox_4_3.ImportOptions.class, options));
     return (retVal != null) ? new org.virtualbox_4_3.IProgress(retVal) : null;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
示例#8
0
  /** @param args 0 - full path to XULRunner binary directory */
  public static void main(String[] args) {
    try {
      checkArgs(args);
    } catch (IllegalArgumentException e) {
      System.exit(-1);
    }

    Mozilla mozilla = Mozilla.getInstance();
    mozilla.initialize(grePath);

    File profile = null;
    try {
      profile = createTempProfileDir();
      LocationProvider locProvider = new LocationProvider(grePath, profile);
      mozilla.initEmbedding(grePath, grePath, locProvider);
    } catch (IOException e) {
      e.printStackTrace();
      System.exit(-1);
    }

    try {
      runEchoTests();

      runInTests();

      runArrayTests();
    } catch (Exception e) {
      e.printStackTrace();
      System.exit(-1);
    }

    nsIJXTestParams jstest =
        (nsIJXTestParams)
            Mozilla.getInstance()
                .getComponentManager()
                .createInstanceByContractID(
                    "@mozilla.org/javaxpcom/tests/params;1",
                    null,
                    nsIJXTestParams.NS_IJXTESTPARAMS_IID);
    try {
      jstest.runTests(new JavaTests());
    } catch (XPCOMException e) {
      e.printStackTrace();
      System.exit(-1);
    }

    // cleanup
    mozilla.termEmbedding();
    deleteDir(profile);
  }
示例#9
0
 public org.virtualbox_4_3.IProgress write(
     String format, List<org.virtualbox_4_3.ExportOptions> options, String path) {
   try {
     org.mozilla.interfaces.IProgress retVal;
     retVal =
         getTypedWrapped()
             .write(
                 format,
                 options != null ? options.size() : 0,
                 Helper.unwrapEnum(org.virtualbox_4_3.ExportOptions.class, options),
                 path);
     return (retVal != null) ? new org.virtualbox_4_3.IProgress(retVal) : null;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }