Package org.gudy.azureus2.plugins.ui

Examples of org.gudy.azureus2.plugins.ui.UIManagerListener


        }
       

        UIManager ui_manager = pi.getUIManager();

        ui_manager.addUIListener(new UIManagerListener() {
          public void UIDetached(UIInstance instance) {
          }

          public void UIAttached(UIInstance instance) {
            if (!(instance instanceof UISWTInstance)) {
View Full Code Here


    COConfigurationManager.addListener(this);

    try {
      pi.getUIManager().createLoggingViewModel(log, true);
      pi.getUIManager().addUIListener(new UIManagerListener() {
        public void UIAttached(UIInstance instance) {
          TableManager tm = pi.getUIManager().getTableManager();
          seedingRankColumn = tm.createColumn(
              TableManager.TABLE_MYTORRENTS_COMPLETE, "SeedingRank");
          seedingRankColumn.initialize(TableColumn.ALIGN_TRAIL,
View Full Code Here

    AzureusCoreFactory.addCoreRunningListener(new AzureusCoreRunningListener() {
      public void azureusCoreRunning(final AzureusCore core) {
        PluginInterface pi = PluginInitializer.getDefaultInterface();
        final UIManager uim = pi.getUIManager();
        uim.addUIListener(new UIManagerListener() {
          public void UIDetached(UIInstance instance) {
          }

          public void UIAttached(UIInstance instance) {
            if (instance instanceof UISWTInstance) {
View Full Code Here

  private void updateUI() {
    PluginInterface plugin_interface = PluginInitializer.getDefaultInterface();

    UIManager ui_manager = plugin_interface.getUIManager();

    ui_manager.addUIListener(new UIManagerListener() {

      public void UIDetached(UIInstance instance) {
      }

      public void UIAttached(UIInstance instance) {
View Full Code Here

    }
    config_model.addLabelParameter2("label.close.plugin" );
   
        deleteNewFiles();
 
        pluginInterface.getUIManager().addUIListener(new UIManagerListener() {
            public void UIAttached(UIInstance instance) {
              if (instance instanceof UISWTInstance) {
                swtInstance = (UISWTInstance)instance;
                myView = new View(pluginInterface);
                swtInstance.addView(UISWTInstance.VIEW_MAIN, View.VIEWID, myView);
View Full Code Here

       
        //settings on main options panel
        config_model.addBooleanParameter2("firefrog_military_time","firefrog.military.time",false);
        config_model.addBooleanParameter2("firefrog_auto_open","firefrog.auto.open",true);
       
        pluginInterface.getUIManager().addUIListener(new UIManagerListener() {
            public void UIAttached(UIInstance instance) {
              if (instance instanceof UISWTInstance) {
                swtInstance = (UISWTInstance)instance;
                display = swtInstance.getDisplay();
                myView = new View(pluginInterface);
View Full Code Here

       
        //settings on main options panel
        config_model.addBooleanParameter2("userspace_military_time","userspace.military.time",false);
        config_model.addBooleanParameter2("userspace_auto_open","userspace.auto.open",true);
       
        pluginInterface.getUIManager().addUIListener(new UIManagerListener() {
            public void UIAttached(UIInstance instance) {
              if (instance instanceof UISWTInstance) {
                swtInstance = (UISWTInstance)instance;
                display = swtInstance.getDisplay();
                myView = new View(pluginInterface);
View Full Code Here

       
        //settings on main options panel
        //config_model.addBooleanParameter2("userspace_military_time","userspace.military.time",false);
        config_model.addBooleanParameter2("azcatdest_auto_open","azcatdest.auto.open",false);
       
        pluginInterface.getUIManager().addUIListener(new UIManagerListener() {
            public void UIAttached(UIInstance instance) {
              if (instance instanceof UISWTInstance) {
                swtInstance = (UISWTInstance)instance;
                display = swtInstance.getDisplay();
                myView = new View(pluginInterface);
View Full Code Here

    startPeerPurge();


      //new API initializer

      pluginInterface.getUIManager().addUIListener(new UIManagerListener() {
        public void UIAttached(UIInstance instance) {
        if (instance instanceof UISWTInstance) {
          swtInstance = (UISWTInstance)instance;
          myView = new View(pluginInterface);
          swtInstance.addView(UISWTInstance.VIEW_MAIN, View.VIEWID, myView);
View Full Code Here

      // slip the non-standard "plugins" initialisation inbetween the internal ones
      // and the plugin ones so plugin ones can be children of it
     
      boolean  plugin_section = i >= internalSections.length;
     
      ConfigSection section = pluginSections.get(i);
     
      if (section instanceof ConfigSectionSWT || section instanceof UISWTConfigSection ) {
        String name;
        try {
          name = section.configSectionGetName();
         } catch (Exception e) {
           Logger.log(new LogEvent(LOGID, "A ConfigSection plugin caused an "
              + "error while trying to call its "
              + "configSectionGetName function", e));
          name = "Bad Plugin";
        }

         String  section_key = name;
        
         if ( plugin_section ){
             // if resource exists without prefix then use it as plugins don't
             // need to start with the prefix
          
           if ( !MessageText.keyExists(section_key)){
            
             section_key = sSectionPrefix + name;
           }
          
         }else{
          
           section_key = sSectionPrefix + name;
         }
        
         String  section_name = MessageText.getString( section_key );
        
         try {
          TreeItem treeItem;
          String location = section.configSectionGetParentSection();
 
          if ( location.length() == 0 || location.equalsIgnoreCase(ConfigSection.SECTION_ROOT)){
            //int position = findInsertPointFor(section_name, tree);
            //if ( position == -1 ){
              treeItem = new TreeItem(tree, SWT.NULL);
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.ui.UIManagerListener

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.