|
Lines 18-23
Link Here
|
| 18 |
import org.eclipse.swt.layout.GridData; |
18 |
import org.eclipse.swt.layout.GridData; |
| 19 |
import org.eclipse.swt.layout.GridLayout; |
19 |
import org.eclipse.swt.layout.GridLayout; |
| 20 |
import org.eclipse.swt.widgets.*; |
20 |
import org.eclipse.swt.widgets.*; |
|
|
21 |
import org.eclipse.swt.graphics.Image; |
| 21 |
import java.util.*; |
22 |
import java.util.*; |
| 22 |
|
23 |
|
| 23 |
/** |
24 |
/** |
|
Lines 42-47
Link Here
|
| 42 |
private ResourceAndContainerGroup resourceGroup; |
43 |
private ResourceAndContainerGroup resourceGroup; |
| 43 |
private Button okButton; |
44 |
private Button okButton; |
| 44 |
private Button cancelButton; |
45 |
private Button cancelButton; |
|
|
46 |
|
| 47 |
private Image dlgTitleImage = null; |
| 45 |
/** |
48 |
/** |
| 46 |
* Creates a new Save As dialog for no specific file. |
49 |
* Creates a new Save As dialog for no specific file. |
| 47 |
* |
50 |
* |
|
Lines 65-70
Link Here
|
| 65 |
validatePage(); |
68 |
validatePage(); |
| 66 |
resourceGroup.setFocus(); |
69 |
resourceGroup.setFocus(); |
| 67 |
setTitle(WorkbenchMessages.getString("SaveAsDialog.title")); //$NON-NLS-1$ |
70 |
setTitle(WorkbenchMessages.getString("SaveAsDialog.title")); //$NON-NLS-1$ |
|
|
71 |
dlgTitleImage = WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_DLGBAN_SAVEAS_DLG).createImage(); |
| 72 |
setTitleImage(dlgTitleImage); |
| 73 |
setMessage(WorkbenchMessages.getString("SaveAsDialog.message")); |
| 74 |
} |
| 75 |
/** |
| 76 |
* Dispose of the banner image when the dialog is closed. |
| 77 |
* <p> |
| 78 |
* |
| 79 |
* @return <code>true</code> if the window is (or was already) closed, |
| 80 |
* and <code>false</code> if it is still open |
| 81 |
*/ |
| 82 |
public boolean close() { |
| 83 |
if (dlgTitleImage != null) dlgTitleImage.dispose(); |
| 84 |
return super.close(); |
| 85 |
|
| 68 |
} |
86 |
} |
| 69 |
/* (non-Javadoc) |
87 |
/* (non-Javadoc) |
| 70 |
* Method declared on Dialog. |
88 |
* Method declared on Dialog. |