Package org.gudy.azureus2.plugins.ui

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


    this.iInterval = iInterval;
  }

  public void initialize(int iAlignment, int iPosition, int iWidth) {
    if (bColumnAdded) {
      throw (new UIRuntimeException("Can't set properties. Column '" + sName
          + " already added"));
    }

    this.iAlignment = iAlignment;
    setPosition(iPosition);
View Full Code Here


    return sTableID;
  }

  public void setType(int type) {
    if (bColumnAdded) {
      throw (new UIRuntimeException("Can't set properties. Column '" + sName
          + " already added"));
    }

    iType = type;
  }
View Full Code Here

    return iWidth;
  }

  public void setPosition(int position) {
    if (bColumnAdded) {
      throw (new UIRuntimeException("Can't set properties. Column '" + sName
          + " already added"));
    }

    if (iPosition == POSITION_INVISIBLE && position != POSITION_INVISIBLE) {
      setVisible(true);
View Full Code Here

    return iPosition;
  }

  public void setAlignment(int alignment) {
    if (bColumnAdded) {
      throw (new UIRuntimeException("Can't set properties. Column '" + sName
          + " already added"));
    }

    iAlignment = alignment;
  }
View Full Code Here

      return;
    }
    try {
      eventListener.eventOccurred(new UISWTViewEventImpl(this, eventType, data));
    } catch (Throwable t) {
      throw (new UIRuntimeException("UISWTView.triggerEvent:: ViewID="
          + sViewID + "; EventID=" + eventType + "; data=" + data, t));
    }
  }
View Full Code Here

  private boolean triggerEvent2(int eventType, Object data) {
    try {
      return eventListener.eventOccurred(new UISWTViewEventImpl(this, eventType, data));
    } catch (Throwable t) {
      throw (new UIRuntimeException("UISWTView.triggerEvent:: ViewID="
          + sViewID + "; EventID=" + eventType + "; data=" + data, t));
    }
  }
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

  private void ensureSectionBuilt(TreeItem treeSection, boolean recreateIfAlreadyThere) {
    ScrolledComposite item = (ScrolledComposite)treeSection.getData("Panel");

    if (item != null) {
     
      ConfigSection configSection = (ConfigSection)treeSection.getData("ConfigSectionSWT");
     
      if (configSection != null) {
       
        Control previous = item.getContent();
        if (previous instanceof Composite) {
          if (!recreateIfAlreadyThere) {
            return;
          }
          configSection.configSectionDelete();
          sectionsCreated.remove(configSection);     
          Utils.disposeComposite((Composite)previous,true);
        }
       
        Composite c;
View Full Code Here

   
    int userMode = COConfigurationManager.getIntParameter("User Mode");
    int maxUsermode = 0;
    try
    {
      ConfigSection sect = sections.get(section);
      if (sect instanceof UISWTConfigSection)
      {
        maxUsermode = ((UISWTConfigSection) sect).maxUserMode();
      }
    } catch (Error e)
View Full Code Here

   
    for (int i=0;i<items.length;i++){
     
      TreeItem  item = items[i];
             
      ConfigSection section = (ConfigSection)item.getData("ConfigSectionSWT");
       
      if ( section != null && section.getClass() == config_section_class ){
         
        tree.setSelection( new TreeItem[]{ item });
       
        showSection( item );
       
View Full Code Here

TOP

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

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.