- Timestamp:
- 07/06/09 18:49:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/java_source/src/nu/fw/jeti/backend/Start.java
r1064 r1091 70 70 private Backend backend; 71 71 72 public Start(String urlString, Container container)72 public Start(String urlString, Container container) 73 73 { 74 74 try … … 92 92 urlString = getPath(); 93 93 94 if (System.getProperty("file.separator").equals("/")) 95 { 94 if ( System.getProperty("file.separator").equals("/") ) 96 95 pluginPath = urlString.substring(5); 97 }98 96 else 99 97 pluginPath = urlString.substring(6); … … 115 113 BUILD_NUM = p.getProperty("buildNum"); 116 114 } 117 catch (Exception e) 118 { 119 System.out.println("Can't find the version.properties file"); 120 } 121 115 catch (Exception e){} 122 116 123 117 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(); 129 120 Jeti jeti = new Jeti(backend,container); 130 new Log(backend); 131 new Popups(backend.getMainWindow()); 121 new Popups( backend.getMainWindow() ); 132 122 pluginsInfo = new PluginsInfo(backend,parser,this); 133 123 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); 136 128 } 137 129 … … 143 135 private String getPath() 144 136 { 145 // Now, search for and get the URL for this class.146 137 URL url = this.getClass().getResource("Start.class"); 147 138 //System.out.println(url); … … 149 140 150 141 try 151 { //remove %20 from program files etc 142 { 143 //remove %20 from program files etc 152 144 urlString = URLDecoder.decode(url.toString(), "UTF8"); //encode if to url? probaly not 153 145 } … … 155 147 { 156 148 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 161 151 if (url.getProtocol().equals("jar")) 162 152 { … … 206 196 { 207 197 pluginsInfo.exit(); 208 if(applet)nu.fw.jeti.applet.Jeti.exit();209 backend =null;198 nu.fw.jeti.applet.Jeti.exit(); 199 backend = null; 210 200 } 211 201 … … 235 225 } 236 226 } 227 237 228 /* 238 229 * Overrides for emacs … … 241 232 * End: 242 233 */ 243
Note: See TracChangeset
for help on using the changeset viewer.