private Shell parent;
private Shell shell;
-
+
private String dialogName = null;
private boolean bOk = false;
- private Boolean bMsg = false;
- private Boolean bPid = false;
- private Boolean bTag = false;
+ private LogTab oldTab = null;
+ private boolean bMsg = false;
+ private boolean bPid = false;
+ private boolean bTag = false;
private String tabName = null;
private String device = null;
if ((bMode & LogTab.FILTER_MSG) != 0) {
bMsg = true;
}
+
+ oldTab = tab;
}
}
{
if(tab.getFilterName().equals(newName))
{
+ if( oldTab != null && oldTab == tab)
+ continue;
int ret = FileDialogUtils.getInstance().checkTabName(newName);
if (ret == IDialogConstants.OK_ID)
return ;
* <code>mBufferEnd - 1</code>. Therefore its number of item is
* <code>mBufferEnd - mBufferStart</code>.
*/
- public static final ArrayList<LogTab> tabs = new ArrayList<LogTab>();
+ public static ArrayList<LogTab> tabs = new ArrayList<LogTab>();
private LogTab currentTab;
private static int tabCnt = 0;
String fileName;
dlg.setText("Export Log");
- dlg.setFileName("log.txt");
+ dlg.setFileName(getCurrentLogTab().getFilterName() +"-log.txt");
String defaultPath = mDefaultLogSave;
if (defaultPath == null) {
defaultPath = System.getProperty("user.home"); //$NON-NLS-1$