Package devplugin

Examples of devplugin.PluginManager


   *          MouseEvent for X/Y Coordinates
   * @param caller
   *          The ContextMenuIf that called this
   */
  private void showPopup(MouseEvent e, ContextMenuIf caller) {
    PluginManager mng = Plugin.getPluginManager();

    int inx = locationToIndex(e.getPoint());
    setSelectedIndex(inx);

    if (getModel().getElementAt(inx) instanceof Program) {
      Program prog = (Program) getModel().getElementAt(inx);
      JPopupMenu menu = mng.createPluginContextMenu(prog, caller);
      menu.show(ProgramList.this, e.getX() - 15, e.getY() - 15);
    }
  }
View Full Code Here


import devplugin.PluginManager;

public class ParamParserTest extends TestCase {

  public void testAnalyse() {
    PluginManager manager = PluginManagerImpl.getInstance();
    ParamParser parser = new ParamParser();

    String in = "oblda {clean(\"halloechen du da ?!\")} da \\{ {concat(urlencode(isset(original_title, \"hallo\"), \"utf8\"), \"HHHHH\")} {\"str}i()ng\"}test bla";
   
    System.out.println(in);
    String result = parser.analyse(in, manager.getExampleProgram());
   
    System.out.println(result);
    System.out.println(parser.getErrorString());

    assertEquals("oblda halloechen_du_da_ da { The+WaltonsHHHHH str}i()ngtest bla", result);
View Full Code Here

  /**
   * Updates the List of Channels
   */
  private void updateChannels() {
    PluginManager pl = Plugin.getPluginManager();
    if (pl == null) {
      return;
    }
    TreeMap<Channel, String> channels = mData.getChannels();

    final Channel[] channelArray = pl.getSubscribedChannels();
    for (Channel channel : channelArray) {
      if (!channels.containsKey(channel)) {
        channels.put(channel, "");
      }
    }
View Full Code Here

    ArrayList<Icon> list = new ArrayList<Icon>();

    String[] iconPluginArr = mSettings.getProgramTableIconPlugins();
    for (String element : iconPluginArr) {
      // Add the icons of this plugin
      PluginManager mng = Plugin.getPluginManager();
      PluginAccess plugin = mng.getActivatedPluginForId(element);
      if (plugin != null) {
        Icon[] iconArr = plugin.getProgramTableIcons(program);
        if (iconArr != null) {
          for (Icon element2 : iconArr) {
            list.add(element2);
View Full Code Here

TOP

Related Classes of devplugin.PluginManager

Copyright © 2018 www.massapicom. 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.