Changeset 17 for trunk/de.ugoe.cs.swe.exercises/src
- Timestamp:
- 10/19/09 17:41:52 (15 years ago)
- Location:
- trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/exercisesheet/PdfGenerator.java
r16 r17 139 139 template = template.replaceAll("(\\W)DUEDATE(\\W)", "$1" 140 140 + Matcher.quoteReplacement(dueDateString) + "$2"); 141 template = template.replaceAll("(\\W)RESEARCHGROUP(\\W)", "$1" 142 + Matcher.quoteReplacement(settings.getMyResearchGroup()) + "$2"); 143 template = template.replaceAll("(\\W)RESEARCHGROUPURL(\\W)", "$1" 144 + Matcher.quoteReplacement(settings.getMyResearchGroupUrl()) + "$2"); 141 145 142 146 // write temporary .tex file to temp directory -
trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings/SettingsDialog.java
r16 r17 46 46 private Text textMySQLPassword; 47 47 private Text textPdflatex; 48 private Text textResearchGroup; 49 private Text textResearchGroupUrl; 48 50 private Combo cboUseSSL; 49 51 private String svnLocation = ""; … … 56 58 private String mySQLPassword = ""; 57 59 private String myPDFLatexPath = ""; 60 private String myResearchGroup = ""; 61 private String myResearchGroupUrl = ""; 58 62 private boolean mySQLcheckSSL = false; 59 63 … … 203 207 | GridData.HORIZONTAL_ALIGN_FILL)); 204 208 textPdflatex = textbox10; 209 210 Label label11 = new Label(parent, SWT.NONE); 211 label11.setText("Research Group"); 212 textResearchGroup = new Text(parent, SWT.BORDER); 213 textResearchGroup.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL 214 | GridData.HORIZONTAL_ALIGN_FILL)); 215 216 Label label12 = new Label(parent, SWT.NONE); 217 label12.setText("Research Group Url"); 218 textResearchGroupUrl = new Text(parent, SWT.BORDER); 219 textResearchGroupUrl.setLayoutData(new GridData( 220 GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); 205 221 206 222 if (mySQLcheckSSL) … … 218 234 textMySQLPassword.setText(mySQLPassword); 219 235 textPdflatex.setText(myPDFLatexPath); 236 textResearchGroup.setText(myResearchGroup); 237 textResearchGroupUrl.setText(myResearchGroupUrl); 220 238 221 239 GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_END); … … 252 270 mySQLPassword = textMySQLPassword.getText(); 253 271 myPDFLatexPath = textPdflatex.getText(); 272 myResearchGroup = textResearchGroup.getText(); 273 myResearchGroupUrl = textResearchGroupUrl.getText(); 254 274 255 275 if (cboUseSSL.getSelectionIndex() == 1) … … 334 354 mySQLcheckSSL = false; 335 355 myPDFLatexPath = ""; 356 myResearchGroup = ""; 357 myResearchGroupUrl = ""; 336 358 } else { 337 359 try { … … 364 386 if (settings.getProperty("mySQLcheckSSL") != null) 365 387 myPDFLatexPath = settings.getProperty("myPDFLatexPath"); 388 if (settings.getProperty("myResearchGroup") != null) 389 myResearchGroup = settings.getProperty("myResearchGroup"); 390 if (settings.getProperty("myResearchGroupUrl") != null) 391 myResearchGroupUrl = settings 392 .getProperty("myResearchGroupUrl"); 393 366 394 } catch (Exception ex) { 367 395 svnLocation = ""; … … 375 403 mySQLcheckSSL = false; 376 404 myPDFLatexPath = ""; 405 myResearchGroup = ""; 406 myResearchGroupUrl = ""; 377 407 } 378 408 } … … 402 432 settings.setProperty("mySQLcheckSSL", String.valueOf(mySQLcheckSSL)); 403 433 settings.setProperty("myPDFLatexPath", myPDFLatexPath); 434 settings.setProperty("myResearchGroup", myResearchGroup); 435 settings.setProperty("myResearchGroupUrl", myResearchGroupUrl); 404 436 405 437 try { … … 413 445 } 414 446 447 public String getMyResearchGroup() { 448 return myResearchGroup; 449 } 450 451 public String getMyResearchGroupUrl() { 452 return myResearchGroupUrl; 453 } 454 415 455 }
Note: See TracChangeset
for help on using the changeset viewer.