Package net.sourceforge.cruisecontrol.gui.panels

Examples of net.sourceforge.cruisecontrol.gui.panels.EditorPanel


      Element theSelectedElement = (Element) theSelectedNode.getUserObject();
     
      try {
        String thePanelKey = theSelectedElement.getName();

        EditorPanel theEditorPanel = (EditorPanel) builtPanels.get( thePanelKey );
       
        // if not found, create panel
        if ( theEditorPanel == null ) {
          // try the generator
          theEditorPanel = panelGenerator.getPanelFor( theSelectedElement );
         
          // if none found, use default
          if ( theEditorPanel == null ) {
           
            // get the cc plugin class
            Class theBuilderClass = getRegistry().getPluginClass( thePanelKey );
           
            // if no builder class, just show the default panel
            if ( theBuilderClass == null ) {
              showNullEditor();
              detailsPanel.scrollToAnchor( theSelectedElement.getName() );
              return;
            }
           
            theEditorPanel = new DefaultElementPanel( theBuilderClass );
          }
          else {
            theEditorPanel.setProjectBrowser( this );
          }
         
          builtPanels.put( thePanelKey, theEditorPanel );
         
          // wrap with standard navigation panel
          //DefaultNavigationPanel theNavigationPanel = new DefaultNavigationPanel(this, (PropertiesPanel) theEditorPanel );
         
          addPanel( (JPanel) theEditorPanel, thePanelKey );
        }
       
        theEditorPanel.setElement( theSelectedElement );
        showPanel( thePanelKey );
        detailsPanel.scrollToAnchor( theSelectedElement.getName() );
      }
      catch ( Exception e ) {
       
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.gui.panels.EditorPanel

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.