Examples of PluginInfo


Examples of com.bramosystems.oss.player.core.client.PluginInfo

                            pv = PluginVersion.get(5, 0, 0);
                        } else {
                            throw new PluginNotFoundException(plugin);
                        }
                }
                return new PluginInfo(plugin, pv, pwt);
            }

            PluginMimeTypes pt = PluginMimeTypes.none;
            switch (plugin) {
                case DivXPlayer:
                    pt = PluginMimeTypes.divx;
                    break;
                case FlashPlayer:
                    pt = PluginMimeTypes.flash;
                    break;
                case QuickTimePlayer:
                    pt = PluginMimeTypes.quicktime;
                    break;
                case VLCPlayer:
                    pt = PluginMimeTypes.vlc;
                    break;
            }

            MimeType mt = MimeType.getMimeType(pt.mime);
            if (mt != null) {   // plugin present...
                try {
                    String desc = mt.getEnabledPlugin().getDescription();
                    String name = mt.getEnabledPlugin().getName();
                    if (name.toLowerCase().contains(pt.whois)) { // who has it?
                        RegExp.RegexResult res = RegExp.getRegExp(pt.regex, "").exec(pt.versionInName ? name : desc);
                        pv = new PluginVersion(Integer.parseInt(res.getMatch(1)),
                                Integer.parseInt(res.getMatch(2)), res.getMatch(3) != null ? Integer.parseInt(res.getMatch(4)) : 0);
                        if (mt.getEnabledPlugin().getFileName().toLowerCase().contains("totem")
                                || desc.toLowerCase().contains("totem")) {
                            pwt = PluginInfo.PlayerPluginWrapperType.Totem;
                        }
                    }
                } catch (RegexException ex) {
                }
            } else {
                throw new PluginNotFoundException(plugin);
            }
            return new PluginInfo(plugin, pv, pwt);
        }
View Full Code Here

Examples of de.innovationgate.wgaservices.types.PluginInfo

  public SyncInfo getSyncInfo(IResource resource) throws TeamException {
      synchronized (_refreshLock) {           
        try {
            if (isPluginResource(resource)) {
                IResourceVariant variant = null;
                PluginInfo remotePluginInfo = _remotePluginInfos.get(resource);
                if (remotePluginInfo != null) {
                    variant = new WGAPluginResourceVariant(_server, remotePluginInfo);
                }
               
                PluginInfo localPluginInfo = _localPluginInfos.get(resource);
               
                SyncInfo info = new WGAPluginResourceSyncInfo(_runtime, _server, resource, localPluginInfo, variant, _remoteWGAVersion);
                info.init();
                return info;
            } else {
View Full Code Here

Examples of de.innovationgate.wgaservices.types.PluginInfo

                   
                    List<PluginInfo> pluginsMissing = new ArrayList<PluginInfo>();
                    Map<PluginInfo, PluginInfo> pluginsDifferent = new HashMap<PluginInfo, PluginInfo>();
                    for (PluginInfo localInfo: localPluginInfos) {
                        if (localInfo.isActive() && localInfo.isValid() && !localInfo.isPlatformPlugin()) {
                            PluginInfo remoteInfo = retrieveActiveByUniqueName(remotePluginInfos, localInfo.getUniqueName());
                            if (remoteInfo == null) {
                                pluginsMissing.add(localInfo);
                            } else {
                                if (!remoteInfo.getVersion().equals(localInfo.getVersion())) {
                                    pluginsDifferent.put(localInfo, remoteInfo);
                                }
                            }
                        }
                    }
                   
                    taskStatus.setSeverityLabel(pluginsMissing.size() + " missing, " + pluginsDifferent.size() + " different");
                    if (!pluginsMissing.isEmpty() || !pluginsDifferent.isEmpty()) {
                        taskStatus.setSeverity(TaskStatus.WARNING);                       
                        StringBuffer status = new StringBuffer();
                        if (!pluginsMissing.isEmpty()) {                           
                            status.append("The following plugins are missing on the remote server:\n");                          
                            for (int i=0; i < pluginsMissing.size(); i++) {
                                PluginInfo info = pluginsMissing.get(i);
                                status.append("- " + info.getUniqueName() + " (" + info.getVersion() ")");
                                status.append("\n");
                            }
                           
                        }
                        if (!pluginsDifferent.isEmpty()) {
                            status.append("The following plugins have different versions on the remote server:\n");
                            Iterator<PluginInfo> localInfos = pluginsDifferent.keySet().iterator();
                            while (localInfos.hasNext()) {
                                PluginInfo info = localInfos.next();
                                PluginInfo remote = pluginsDifferent.get(info);
                                status.append("- " + info.getUniqueName() + " (" + info.getVersion() + " != " + remote.getVersion() + ")");
                                status.append("\n");
                            }
                        }
                        taskStatus.setMessage(status.toString());
                    } else {
View Full Code Here

Examples of de.innovationgate.wgaservices.types.PluginInfo

            return IN_SYNC;
        } else if (getLocal().equals(WGARemoteServerSubscriber.retrieveVirtualPluginRoot(_runtime))) {
            return IN_SYNC;
        }  
        if (_localPluginInfo != null && getRemote() != null) {
            PluginInfo remotePluginInfo = ((WGAPluginResourceVariant)getRemote()).getPluginInfo();           
            if (_localPluginInfo.getVersion().equals(remotePluginInfo.getVersion())) {
                return IN_SYNC;
            } else {
                return DELETION | OUTGOING;
            }
        } else if (_localPluginInfo != null && getRemote() == null) {
View Full Code Here

Examples of devplugin.PluginInfo

                return mScript.getInfo();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return new PluginInfo(Class.class,mBshFile.getName());
    }
View Full Code Here

Examples of devplugin.PluginInfo

  public static Version getVersion() {
    return mVersion;
  }

  public PluginInfo getInfo() {
    return new PluginInfo(ProgramListPlugin.class, mLocalizer.msg("name", "Program list"), mLocalizer.msg(
        "description", "Shows programs in a list."), "René Mach");
  }
View Full Code Here

Examples of devplugin.PluginInfo

  public PluginInfo getInfo() {
    final String name = mLocalizer.msg("pluginName", "Growl Notification");
    final String desc = mLocalizer.msg("description",
              "Sends all received Programs to Growl.");
    final String author = "Bodo Tasche";
      return new PluginInfo(this.getClass(), name, desc, author);
  }
View Full Code Here

Examples of devplugin.PluginInfo

    if (mPluginInfo == null) {
      String name = mLocalizer.msg("pluginName", "BlogThis");
      String desc = mLocalizer.msg("description", "Creates a new Blog-Entry");
      String author = "Bodo Tasche";

      mPluginInfo = new PluginInfo(BlogThisPlugin.class, name, desc, author);
    }

    return mPluginInfo;
  }
View Full Code Here

Examples of devplugin.PluginInfo

  public static Version getVersion() {
    return VERSION;
  }

  public PluginInfo getInfo() {
    return new PluginInfo(SchedulesDirectDataService.class, mLocalizer.msg("name", "Schedules Direct Data"), mLocalizer.msg("desc", "Loads data from Schedules Direct."),
            "TV-Browser Team");
  }
View Full Code Here

Examples of devplugin.PluginInfo

  public static Version getVersion() {
    return VERSION;
  }

  public PluginInfo getInfo() {
    return new PluginInfo(RadioTimesDataService.class, mLocalizer.msg("name", "Radio Times Data"), mLocalizer.msg("desc", "Data from Radio Times."),
        "Bodo Tasche");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.