-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2794 from Coduz/feature-jobExecutionLogDialog
Added Dialog to show Job Execution Log in Console
- Loading branch information
Showing
6 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...java/org/eclipse/kapua/app/console/module/job/client/execution/JobExecutionLogButton.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Eurotech and/or its affiliates and others | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.app.console.module.job.client.execution; | ||
|
||
import com.extjs.gxt.ui.client.event.ButtonEvent; | ||
import com.extjs.gxt.ui.client.event.SelectionListener; | ||
import com.google.gwt.core.client.GWT; | ||
import org.eclipse.kapua.app.console.module.api.client.resources.icons.IconSet; | ||
import org.eclipse.kapua.app.console.module.api.client.resources.icons.KapuaIcon; | ||
import org.eclipse.kapua.app.console.module.api.client.ui.button.Button; | ||
import org.eclipse.kapua.app.console.module.job.client.messages.ConsoleJobMessages; | ||
|
||
public class JobExecutionLogButton extends Button { | ||
|
||
private static final ConsoleJobMessages MSGS_JOB = GWT.create(ConsoleJobMessages.class); | ||
|
||
public JobExecutionLogButton(SelectionListener<ButtonEvent> listener) { | ||
super(MSGS_JOB.jobExecutionLogButton(), | ||
new KapuaIcon(IconSet.STICKY_NOTE_O), | ||
listener); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...java/org/eclipse/kapua/app/console/module/job/client/execution/JobExecutionLogDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Eurotech and/or its affiliates and others | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.app.console.module.job.client.execution; | ||
|
||
import com.google.gwt.core.client.GWT; | ||
import org.eclipse.kapua.app.console.module.api.client.ui.dialog.entity.EntityLogDialog; | ||
import org.eclipse.kapua.app.console.module.job.client.messages.ConsoleJobMessages; | ||
import org.eclipse.kapua.app.console.module.job.shared.model.GwtJobExecution; | ||
|
||
public class JobExecutionLogDialog extends EntityLogDialog { | ||
|
||
private static final ConsoleJobMessages MSG_JOB = GWT.create(ConsoleJobMessages.class); | ||
|
||
public JobExecutionLogDialog(GwtJobExecution jobExecution) { | ||
super(MSG_JOB.jobExecutionLogDialogHeader(), jobExecution.getUnescapedLog()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters