Skip to content

Commit 6781c24

Browse files
committed
[client] alert scripting view can be opened for each counter
1 parent 6b4d6d0 commit 6781c24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scouter.client/src/scouter/client/configuration/actions/OpenAlertScriptingAction.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.eclipse.ui.IWorkbenchWindow;
2626
import org.eclipse.ui.PartInitException;
2727
import scouter.client.configuration.views.AlertScriptingView;
28-
import scouter.client.configuration.views.ConfigureView;
2928
import scouter.client.util.ImageUtil;
3029

3130
public class OpenAlertScriptingAction extends Action {
@@ -51,7 +50,7 @@ public OpenAlertScriptingAction(IWorkbenchWindow window, String label, Image ima
5150
public void run() {
5251
if (window != null) {
5352
try {
54-
AlertScriptingView v = (AlertScriptingView) window.getActivePage().showView(AlertScriptingView.ID, "" + serverId, IWorkbenchPage.VIEW_ACTIVATE);
53+
AlertScriptingView v = (AlertScriptingView) window.getActivePage().showView(AlertScriptingView.ID, serverId + "-c-" + counterName, IWorkbenchPage.VIEW_ACTIVATE);
5554
if(v!= null) {
5655
v.setInput(serverId, familyName, counterName, counterDisplayName);
5756
}

0 commit comments

Comments
 (0)