configurer.getWorkbenchConfigurer().restoreState();
// set default window size
configurer.setInitialSize(new Point(1200, 900));
- configurer.setShowCoolBar(true);
+ configurer.setShowCoolBar(false);
configurer.setShowStatusLine(true);
configurer.setShowPerspectiveBar(true);
class="org.argeo.slc.client.ui.commands.ResultListViewRefreshHandler"
scope="prototype">
</bean>
+ <bean id="org.argeo.slc.client.ui.refreshExecutionModulesView"
+ class="org.argeo.slc.client.ui.commands.ExecutionModulesViewRefreshHandler"
+ scope="prototype">
+ </bean>
<bean id="org.argeo.slc.client.ui.refreshProcessList"
class="org.argeo.slc.client.ui.commands.ProcessListViewRefreshHandler"
scope="prototype">
id="org.argeo.slc.client.ui.refreshResultList"
name="RefreshResultList">
</command>
+ <command
+ defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
+ id="org.argeo.slc.client.ui.refreshExecutionModulesView"
+ name="refreshExecutionModulesView">
+ </command>
<command
defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
id="org.argeo.slc.client.ui.launchBatch"
commandId="org.argeo.slc.client.ui.refreshResultList"
label="Refresh"
style="push"
- tooltip="Refresh the result list">
+ tooltip="Refresh the result list">
</command>
</menu>
</menuContribution>
-->
<menuContribution
- locationURI="toolbar:org.eclipse.ui.main.toolbar">
- <toolbar
- id="org.argeo.slc.client.ui.ResultViewToolbar">
+ locationURI="toolbar:org.argeo.slc.client.ui.resultListView">
<command
commandId="org.argeo.slc.client.ui.refreshResultList"
icon="icons/refresh.png"
style="toggle"
tooltip="Refresh the result list">
</command>
- <separator
- name="resultListViewGroup">
- </separator>
- </toolbar>
- </menuContribution>
+ </menuContribution>
+ <menuContribution
+ locationURI="toolbar:org.argeo.slc.client.ui.executionModulesView">
+ <command
+ commandId="org.argeo.slc.client.ui.refreshExecutionModulesView"
+ icon="icons/refresh.png"
+ label="Refresh"
+ tooltip="Refresh the execution modules view.">
+ </command>
+ </menuContribution>
<menuContribution
locationURI="toolbar:org.argeo.slc.client.ui.processBuilderView">
<command
--- /dev/null
+package org.argeo.slc.client.ui.commands;
+
+import org.argeo.slc.client.ui.views.ExecutionModulesView;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+public class ExecutionModulesViewRefreshHandler extends AbstractHandler {
+
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ ExecutionModulesView eView = (ExecutionModulesView) HandlerUtil
+ .getActiveWorkbenchWindow(event).getActivePage()
+ .findView(ExecutionModulesView.ID);
+ eView.refreshView();
+ return null;
+ }
+
+}
return viewer;
}
+ public void refreshView() {
+ viewer.setInput(getViewSite());
+ }
+
class ViewLabelProvider extends LabelProvider implements
ITableLabelProvider {
public String getColumnText(Object obj, int index) {
props.setProperty("agentId", flowNode
.getExecutionModuleNode().getAgentNode().getAgent()
.getAgentUuid());
- props.setProperty("host", flowNode.getExecutionModuleNode().getAgentNode()
- .getAgent().toString());
+ props.setProperty("host", flowNode.getExecutionModuleNode()
+ .getAgentNode().getAgent().toString());
ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
return (ra.getAttributes().get("testCase") == null) ? null : ra
.getAttributes().get("testCase");
case 1:
- return dateFormatter.format(ra.getCloseDate());
+ // otherwise we get null pointer exception when the test is not
+ // closed yet.
+ return (ra.getCloseDate() == null) ? null : dateFormatter
+ .format(ra.getCloseDate());
case 2:
return ra.getUuid();
}