Package net.jmesnil.jmx.ui.UIExtensionManager

Examples of net.jmesnil.jmx.ui.UIExtensionManager.ConnectionProviderUI


      pageMap = new HashMap<String, ConnectionWizardPage[]>();
      List<String> l = new ArrayList<String>();
      l.addAll(providerMap.keySet());
      Collections.sort(l);
      for( Iterator<ConnectionProviderUI> i = providerMap.values().iterator(); i.hasNext();) {
        ConnectionProviderUI ui = i.next();
        ConnectionWizardPage[] pages = ui.createPages();
        pageMap.put(ui.getId(), pages);
        for( int j = 0; j < pages.length; j++ )
          addPage(pages[j]);
      }
    }
View Full Code Here


  @Override
  public Image getImage(Object obj) {
    if( obj instanceof IConnectionWrapper ) {
      IConnectionProvider provider = ((IConnectionWrapper)obj).getProvider();
      ConnectionProviderUI ui = UIExtensionManager.getConnectionProviderUI(provider.getId());
      if( ui != null ) {
        if(!images.containsKey(ui.getId()) || images.get(ui.getId()).isDisposed())
          images.put(ui.getId(),
              ui.getImageDescriptor().createImage());
        return images.get(ui.getId());
      }
    }
    if( obj instanceof DelayProxy ) {
      return null;
    }
View Full Code Here

        super.dispose();
      }

    public Image getImage(Object element) {
      if( element instanceof IConnectionProvider ) {
        ConnectionProviderUI ui = UIExtensionManager.getConnectionProviderUI(((IConnectionProvider)element).getId());
        if( ui != null ) {
          if(images.containsKey(ui.getId()))
              return images.get(ui.getId());
          images.put(ui.getId(), ui.getImageDescriptor().createImage());
          return images.get(ui.getId());
        }
      }
      return null;
    }
View Full Code Here

      }
      return null;
    }
    public String getText(Object element) {
      if( element instanceof IConnectionProvider ) {
        ConnectionProviderUI ui = UIExtensionManager.getConnectionProviderUI(((IConnectionProvider)element).getId());
        if( ui != null ) {
          return ui.getName();
        }
      }
      return element == null ? "" : element.toString();//$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of net.jmesnil.jmx.ui.UIExtensionManager.ConnectionProviderUI

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.