1543: StatMan AIgorithms Importer - Create a widget to support code editing
Task-Url: https://support.d4science.org/issues/1543 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/acegwt-widget@120429 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
41a95146a8
commit
b3c416968a
|
@ -11,7 +11,9 @@ public class AceCommandArgs {
|
|||
private final Object value;
|
||||
|
||||
/**
|
||||
* Create map argument. In case <code>data</code> is null map will be empty.
|
||||
* Create map argument. In case param data is null map will be empty.
|
||||
*
|
||||
* @param data map
|
||||
*/
|
||||
public AceCommandArgs(Map<String, String> data) {
|
||||
value = JavaScriptObject.createObject();
|
||||
|
@ -22,6 +24,8 @@ public class AceCommandArgs {
|
|||
|
||||
/**
|
||||
* Create text argument.
|
||||
*
|
||||
* @param value text argument
|
||||
*/
|
||||
public AceCommandArgs(String value) {
|
||||
this.value = value;
|
||||
|
@ -29,8 +33,10 @@ public class AceCommandArgs {
|
|||
|
||||
/**
|
||||
* Add key-value pair to map.
|
||||
* @param argName
|
||||
* @param argValue
|
||||
*
|
||||
* @param argKey key
|
||||
* @param argValue value
|
||||
* @return
|
||||
*/
|
||||
public native AceCommandArgs with(String argKey, String argValue) /*-{
|
||||
this.@edu.ycp.cs.dh.acegwt.client.ace.AceCommandArgs::value[argKey] = argValue;
|
||||
|
|
|
@ -6,7 +6,8 @@ package edu.ycp.cs.dh.acegwt.client.ace;
|
|||
public interface AceCommandLineListener {
|
||||
/**
|
||||
* Notify subscriber (e.g. editor) that command was entered.
|
||||
* @param command
|
||||
*
|
||||
* @param command that command was entered
|
||||
*/
|
||||
public void onCommandEntered(String command);
|
||||
}
|
||||
|
|
|
@ -167,7 +167,7 @@ public class AceEditor extends Composite implements RequiresResize, HasText, Tak
|
|||
/**
|
||||
* Enable a worker for the current session.
|
||||
*
|
||||
* @param userWorker true to enable a worker otherwise false
|
||||
* @param useWorker true to enable a worker otherwise false
|
||||
*/
|
||||
public native void setUseWorker(boolean useWorker) /*-{
|
||||
var editor = this.@edu.ycp.cs.dh.acegwt.client.ace.AceEditor::editor;
|
||||
|
@ -495,7 +495,7 @@ public class AceEditor extends Composite implements RequiresResize, HasText, Tak
|
|||
/**
|
||||
* Execute a command with arguments (in case args is not null).
|
||||
* @param command one word command
|
||||
* @param args command argument
|
||||
* @param arg command argument
|
||||
*/
|
||||
public void execCommand(String command, String arg) {
|
||||
execCommandHidden(command, arg);
|
||||
|
|
Loading…
Reference in New Issue