Loading src/com/elphel/vdt/VDT.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -103,6 +103,7 @@ public class VDT { public static final String ATTR_TOOL_INFO = ID_VDT + ".ATTR_TOOL_INFO"; public static final String ATTR_TOOL_INFO = ID_VDT + ".ATTR_TOOL_INFO"; public static final String ATTR_LOG_BUILD_STAMP = ID_VDT + ".ATTR_LOG_BUILD_STAMP"; public static final String ATTR_LOG_BUILD_STAMP = ID_VDT + ".ATTR_LOG_BUILD_STAMP"; public static final String ATTR_TOOL_STATE_FILE = ID_VDT + ".TOOL_STATE_FILE"; // name of state (snapshot) file to restore passed at tool launch /** /** Loading Loading @@ -153,4 +154,9 @@ public class VDT { public static final String GENERATOR_ID_USERNAME = "UserName"; public static final String GENERATOR_ID_USERNAME = "UserName"; public static final String GENERATOR_ID_BLANK = "Blank"; public static final String GENERATOR_ID_BLANK = "Blank"; public static final String GENERATOR_ID_NEWLINE = "NewLine"; public static final String GENERATOR_ID_NEWLINE = "NewLine"; public static final String GENERATOR_ID_STATE_DIR = "StateDir"; public static final String GENERATOR_ID_STATE_FILE = "StateFile"; } // class VDT } // class VDT src/com/elphel/vdt/core/launching/LaunchCore.java +5 −8 Original line number Original line Diff line number Diff line Loading @@ -115,8 +115,10 @@ public class LaunchCore { , String logBuildStamp ) throws CoreException { , String logBuildStamp ) throws CoreException { workingCopy.setAttribute(VDT.ATTR_LOG_BUILD_STAMP, logBuildStamp); workingCopy.setAttribute(VDT.ATTR_LOG_BUILD_STAMP, logBuildStamp); } } public static void setToolStateFile( ILaunchConfigurationWorkingCopy workingCopy , String stateFile ) throws CoreException { workingCopy.setAttribute(VDT.ATTR_TOOL_STATE_FILE, stateFile); } public static void updateLaunchConfiguration( ILaunchConfigurationWorkingCopy workingCopy public static void updateLaunchConfiguration( ILaunchConfigurationWorkingCopy workingCopy Loading Loading @@ -217,11 +219,6 @@ public class LaunchCore { return launchConfig; return launchConfig; } // createLaunchConfiguration() } // createLaunchConfiguration() /* public static void launch(Tool tool, IProject project) throws CoreException { launch(tool, project, VDT.VARIABLE_RESOURCE_NAME); } */ Loading src/com/elphel/vdt/core/launching/RunningBuilds.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -290,7 +290,7 @@ public class RunningBuilds { if (toolName.equals(runConfig.getToolName())){ if (toolName.equals(runConfig.getToolName())){ Tool tool=ToolsCore.getTool(runConfig.getToolName()); Tool tool=ToolsCore.getTool(runConfig.getToolName()); tool.setRunning(false); tool.setRunning(false); tool.updateViewStateIcon(); tool.toolFinished(); if (tool.getState()==TOOL_STATE.KEPT_OPEN) { if (tool.getState()==TOOL_STATE.KEPT_OPEN) { MessageUI.error("Termninal that starts by this tool ("+toolName+") is already open in console \""+consoleName+"\""); MessageUI.error("Termninal that starts by this tool ("+toolName+") is already open in console \""+consoleName+"\""); return true; return true; Loading src/com/elphel/vdt/core/launching/ToolLogFile.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -97,6 +97,14 @@ public class ToolLogFile { return null; return null; } } public static String insertTimeStamp(String filename, String timestamp){ int index=filename.lastIndexOf("."); if (index>=0){ return filename.substring(0, index)+BUILD_STAMP_SEPARATOR+timestamp+filename.substring(index); } else { return filename+BUILD_STAMP_SEPARATOR+timestamp; } } /** /** * @param logDir Directory path of the log files root directory (or null) * @param logDir Directory path of the log files root directory (or null) Loading src/com/elphel/vdt/core/launching/VDTLaunchUtil.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -331,6 +331,10 @@ public class VDTLaunchUtil { return configuration.getAttribute(VDT.ATTR_LOG_BUILD_STAMP, (String) null); return configuration.getAttribute(VDT.ATTR_LOG_BUILD_STAMP, (String) null); } } public static String getToolStateFile(ILaunchConfiguration configuration) throws CoreException{ return configuration.getAttribute(VDT.ATTR_TOOL_STATE_FILE, (String) null); } /** /** * Throws a core exception with an error status object built from * Throws a core exception with an error status object built from * the given message, lower level exception, and error code. * the given message, lower level exception, and error code. Loading Loading
src/com/elphel/vdt/VDT.java +6 −0 Original line number Original line Diff line number Diff line Loading @@ -103,6 +103,7 @@ public class VDT { public static final String ATTR_TOOL_INFO = ID_VDT + ".ATTR_TOOL_INFO"; public static final String ATTR_TOOL_INFO = ID_VDT + ".ATTR_TOOL_INFO"; public static final String ATTR_LOG_BUILD_STAMP = ID_VDT + ".ATTR_LOG_BUILD_STAMP"; public static final String ATTR_LOG_BUILD_STAMP = ID_VDT + ".ATTR_LOG_BUILD_STAMP"; public static final String ATTR_TOOL_STATE_FILE = ID_VDT + ".TOOL_STATE_FILE"; // name of state (snapshot) file to restore passed at tool launch /** /** Loading Loading @@ -153,4 +154,9 @@ public class VDT { public static final String GENERATOR_ID_USERNAME = "UserName"; public static final String GENERATOR_ID_USERNAME = "UserName"; public static final String GENERATOR_ID_BLANK = "Blank"; public static final String GENERATOR_ID_BLANK = "Blank"; public static final String GENERATOR_ID_NEWLINE = "NewLine"; public static final String GENERATOR_ID_NEWLINE = "NewLine"; public static final String GENERATOR_ID_STATE_DIR = "StateDir"; public static final String GENERATOR_ID_STATE_FILE = "StateFile"; } // class VDT } // class VDT
src/com/elphel/vdt/core/launching/LaunchCore.java +5 −8 Original line number Original line Diff line number Diff line Loading @@ -115,8 +115,10 @@ public class LaunchCore { , String logBuildStamp ) throws CoreException { , String logBuildStamp ) throws CoreException { workingCopy.setAttribute(VDT.ATTR_LOG_BUILD_STAMP, logBuildStamp); workingCopy.setAttribute(VDT.ATTR_LOG_BUILD_STAMP, logBuildStamp); } } public static void setToolStateFile( ILaunchConfigurationWorkingCopy workingCopy , String stateFile ) throws CoreException { workingCopy.setAttribute(VDT.ATTR_TOOL_STATE_FILE, stateFile); } public static void updateLaunchConfiguration( ILaunchConfigurationWorkingCopy workingCopy public static void updateLaunchConfiguration( ILaunchConfigurationWorkingCopy workingCopy Loading Loading @@ -217,11 +219,6 @@ public class LaunchCore { return launchConfig; return launchConfig; } // createLaunchConfiguration() } // createLaunchConfiguration() /* public static void launch(Tool tool, IProject project) throws CoreException { launch(tool, project, VDT.VARIABLE_RESOURCE_NAME); } */ Loading
src/com/elphel/vdt/core/launching/RunningBuilds.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -290,7 +290,7 @@ public class RunningBuilds { if (toolName.equals(runConfig.getToolName())){ if (toolName.equals(runConfig.getToolName())){ Tool tool=ToolsCore.getTool(runConfig.getToolName()); Tool tool=ToolsCore.getTool(runConfig.getToolName()); tool.setRunning(false); tool.setRunning(false); tool.updateViewStateIcon(); tool.toolFinished(); if (tool.getState()==TOOL_STATE.KEPT_OPEN) { if (tool.getState()==TOOL_STATE.KEPT_OPEN) { MessageUI.error("Termninal that starts by this tool ("+toolName+") is already open in console \""+consoleName+"\""); MessageUI.error("Termninal that starts by this tool ("+toolName+") is already open in console \""+consoleName+"\""); return true; return true; Loading
src/com/elphel/vdt/core/launching/ToolLogFile.java +8 −0 Original line number Original line Diff line number Diff line Loading @@ -97,6 +97,14 @@ public class ToolLogFile { return null; return null; } } public static String insertTimeStamp(String filename, String timestamp){ int index=filename.lastIndexOf("."); if (index>=0){ return filename.substring(0, index)+BUILD_STAMP_SEPARATOR+timestamp+filename.substring(index); } else { return filename+BUILD_STAMP_SEPARATOR+timestamp; } } /** /** * @param logDir Directory path of the log files root directory (or null) * @param logDir Directory path of the log files root directory (or null) Loading
src/com/elphel/vdt/core/launching/VDTLaunchUtil.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -331,6 +331,10 @@ public class VDTLaunchUtil { return configuration.getAttribute(VDT.ATTR_LOG_BUILD_STAMP, (String) null); return configuration.getAttribute(VDT.ATTR_LOG_BUILD_STAMP, (String) null); } } public static String getToolStateFile(ILaunchConfiguration configuration) throws CoreException{ return configuration.getAttribute(VDT.ATTR_TOOL_STATE_FILE, (String) null); } /** /** * Throws a core exception with an error status object built from * Throws a core exception with an error status object built from * the given message, lower level exception, and error code. * the given message, lower level exception, and error code. Loading