Ignore:
Timestamp:
07/06/09 18:49:28 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #571 - Removido o arquivo rostericons.xml, usado pelo applet(Java).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/java_source/src/nu/fw/jeti/backend/Start.java

    r1064 r1091  
    7070        private Backend backend; 
    7171         
    72         public Start(String urlString,Container container) 
     72        public Start(String urlString, Container container) 
    7373        { 
    7474                try 
     
    9292                        urlString = getPath(); 
    9393                 
    94                 if (System.getProperty("file.separator").equals("/")) 
    95                 { 
     94                if ( System.getProperty("file.separator").equals("/") ) 
    9695                        pluginPath = urlString.substring(5); 
    97                 } 
    9896                else  
    9997                        pluginPath = urlString.substring(6); 
     
    115113                        BUILD_NUM = p.getProperty("buildNum"); 
    116114                }  
    117                 catch (Exception e) 
    118                 { 
    119                         System.out.println("Can't find the version.properties file"); 
    120                 } 
    121                  
     115                catch (Exception e){} 
    122116                 
    123117                backend = new Backend(this); 
    124                 new Preferences(backend, parser); 
    125                 JFrame.setDefaultLookAndFeelDecorated(Preferences.getBoolean("jeti","javadecorations",false)); 
    126                  
    127                 //parse plugins? make better or make comments 
    128                 new StatusIcons(parser); 
     118                new Preferences( backend, parser ); 
     119                new StatusIcons(); 
    129120                Jeti jeti = new Jeti(backend,container); 
    130                 new Log(backend); 
    131                 new Popups(backend.getMainWindow()); 
     121                new Popups( backend.getMainWindow() ); 
    132122                pluginsInfo = new PluginsInfo(backend,parser,this); 
    133123                jeti.init(); 
    134                 if(container!=null) container.add(jeti); 
    135                 else backend.getMainWindow().setVisible(true); 
     124                if( container != null) 
     125                        container.add(jeti); 
     126                else  
     127                        backend.getMainWindow().setVisible(true); 
    136128        } 
    137129         
     
    143135        private String getPath() 
    144136        { 
    145                 // Now, search for and get the URL for this class. 
    146137                URL url = this.getClass().getResource("Start.class"); 
    147138                //System.out.println(url); 
     
    149140 
    150141                try 
    151                 { //remove %20 from program files etc 
     142                {  
     143                        //remove %20 from program files etc 
    152144                        urlString = URLDecoder.decode(url.toString(), "UTF8"); //encode if to url? probaly not 
    153145                } 
     
    155147                { 
    156148                        e.printStackTrace(); 
    157                 } //1.2 error 
    158  
    159                 //System.out.println(url.getPath()  ); //werkt niet in 1.2 
    160                 //System.out.println(url); 
     149                } 
     150 
    161151                if (url.getProtocol().equals("jar")) 
    162152                { 
     
    206196        { 
    207197                pluginsInfo.exit(); 
    208                 if(applet)nu.fw.jeti.applet.Jeti.exit(); 
    209                 backend=null; 
     198                nu.fw.jeti.applet.Jeti.exit(); 
     199                backend = null; 
    210200        } 
    211201 
     
    235225    } 
    236226} 
     227 
    237228/* 
    238229 * Overrides for emacs 
     
    241232 * End: 
    242233 */ 
    243  
Note: See TracChangeset for help on using the changeset viewer.