提交 6262d46c 编写于 作者: J jurgen

Save blob - file name

Former-commit-id: f8570085
上级 e8705029
......@@ -50,9 +50,9 @@ public class DialogUtils {
public static String curDialogFolder = System.getProperty("user.dir");
public static File selectFileForSave(Shell parentShell)
public static File selectFileForSave(Shell parentShell, String valueName)
{
return selectFileForSave(parentShell, "Save Content As", null, null);
return selectFileForSave(parentShell, "Save Content As", null, valueName);
}
public static File selectFileForSave(Shell parentShell, String title, String[] filterExt, @Nullable String fileName)
......@@ -159,7 +159,7 @@ public class DialogUtils {
}
Shell shell = UIUtils.getShell(controller.getValueSite());
final File saveFile = selectFileForSave(shell);
final File saveFile = selectFileForSave(shell, controller.getValueName());
if (saveFile == null) {
return;
}
......
......@@ -266,7 +266,7 @@ public class ContentEditorContributor extends MultiPageEditorActionBarContributo
public void run()
{
Shell shell = getEditor().getSite().getShell();
final File saveFile = DialogUtils.selectFileForSave(shell);
final File saveFile = DialogUtils.selectFileForSave(shell, getEditor().getPartName());
if (saveFile == null) {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册