1
edit
Changes
→Modify WTP Source Code
* Change the perspective to Java perspective ('''Window > Open Perspective > Other''' and select '''Java''').
* In the Java perspective, ''Package Explorer'' open the file '''ServerToolTip.java'''. ''''org.eclipse.wst.server.ui->serverui->org.eclipse.wst.server.ui.internal'''' that you just checked out. <br/><center>[[Image:OpenFile-13.jpg]]</center><br/> * Change the content of the file ServerToolTip.java for solving the problem previously defined. For example in our case:<blockquote>* Add the line: <font color="red">import java.util.Date;</font>* In the method: '''protected Compsite createToolTipContentArea''' , add the following red line: <center><br/><br/><table style="border: 1px dashed blue;background-color: #f9f9f9;"><tr><td> :'''font = new Font(display, fd);''':'''parent.addDisposeListener(new DisposeListener() {'''::'''public void widgetDisposed(DisposeEvent e) { font.dispose(); } });''':'''hintLabel.setFont(font);''':<font color="red">'''sText.setText("<b>" + new Date() + "</b>");'''</font>:'''parseText(sText.getText(),sText);''' </td></tr></table></center></blockquote>
==Run Modified Eclipse Web Application With New Code==
==Create Patch With Source Code Changes - Submit Patch to WTP Project==