-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New groovy output #52
Conversation
@@ -19,6 +19,7 @@ Bundle-Activator: org.orbisgis.core.CoreActivator | |||
Bundle-ActivationPolicy: lazy | |||
Export-Package: org.orbisgis.core, | |||
org.orbisgis.core.logger, | |||
org.orbisgis.core.service.definition, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be removed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
.github/workflows/CI-build.yml
Outdated
#BRANCH: p2-repository # The branch name where you want to push the assets | ||
#FOLDER: ./p2/target/p2-1.0.0-SNAPSHOT # The directory where your assets are generated | ||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token | ||
#MESSAGE: "Build: plugins available from p2-repository" # The commit message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The p2-1.0.0-SNAPSHOT cannot be pushed to p2-repository,
There is this message:
remote: Permission to orbisgis/orbisrcp.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/orbisgis/orbisrcp.git/': The requested URL returned error: 403
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SPalominos could you check when you will have the time ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the GITHUB_TOKEN already active ?
@@ -97,7 +105,7 @@ public void mouseHover(MouseEvent e) { | |||
|
|||
this.addMouseListener(new MouseAdapter() { | |||
@Override | |||
public void mouseDown(MouseEvent e) { | |||
public void mouseDown(MouseEvent e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank space.
You can used format with the ide
@@ -21,4 +21,6 @@ Require-Bundle: org.eclipse.core.runtime, | |||
dependencies | |||
Bundle-ActivationPolicy: lazy | |||
Bundle-Activator: org.orbisgis.ui.editors.groovy.GroovyActivator | |||
|
|||
Import-Package: org.jkiss.dbeaver.core, | |||
org.jkiss.dbeaver.ext.sample.database, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
necessary ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no!
@@ -41,21 +54,40 @@ | |||
description="Clear the script" | |||
id="org.orbisgis.ui.editors.groovy.clear" | |||
name="Clear script"> </command> | |||
<!-- | |||
<command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it
import org.orbisgis.ui.editors.groovy.GroovyEditor; | ||
import org.orbisgis.ui.editors.groovy.GroovyUtils; | ||
|
||
public class OpenHandler extends AbstractHandler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add author
Adrien Bessy, LAB-STICC, CNRS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is never used ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class allows to open a web page in the software, but we don't use it.
|
||
private void createDeleteOutputButton(Composite group) { | ||
final MenuManager menuMgr = new MenuManager(); | ||
menuMgr.setRemoveAllWhenShown(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format the code with the IDE
@@ -140,4 +145,18 @@ public void stop(){ | |||
public GroovyJob getRunningJob() { | |||
return job; | |||
} | |||
|
|||
public void changeGroovyInterpreter() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never used ?
LOGGER.info("GroovyScriptEngine is now selected."); | ||
} else { | ||
this.groovyInterpreter = "GroovyShell"; | ||
System.out.println("\n***\n groovyInterpreter in changeGroovyInterpreter method : " + groovyInterpreter + "\n***\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove println
super(name); | ||
this.script = script; | ||
this.name = name; | ||
|
||
System.out.println("\n***\n in GroovyJob constructor \n***\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't used any println in the code, use log system if necessary
016514c
to
f910bf7
Compare
.github/workflows/CI-build.yml
Outdated
#BRANCH: p2-repository # The branch name where you want to push the assets | ||
#FOLDER: ./p2/target/p2-1.0.0-SNAPSHOT # The directory where your assets are generated | ||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token | ||
#MESSAGE: "Build: plugins available from p2-repository" # The commit message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SPalominos could you check when you will have the time ;-)
} | ||
Object res3 = shell.getProperty("out"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format code
.github/workflows/CI-build.yml
Outdated
#BRANCH: p2-repository # The branch name where you want to push the assets | ||
#FOLDER: ./p2/target/p2-1.0.0-SNAPSHOT # The directory where your assets are generated | ||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token | ||
#MESSAGE: "Build: plugins available from p2-repository" # The commit message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the GITHUB_TOKEN already active ?
@@ -21,4 +21,4 @@ Require-Bundle: org.eclipse.core.runtime, | |||
dependencies | |||
Bundle-ActivationPolicy: lazy | |||
Bundle-Activator: org.orbisgis.ui.editors.groovy.GroovyActivator | |||
|
|||
Import-Package: org.jkiss.dbeaver.registry.driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed ?
|
||
public GroovyJob(String name, String script){ | ||
public GroovyJob(String name, String script, String groovyInterpreter){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you set a String argument to define the groovy engine.
I think you can remove it and use the original code. No ?
fb6eeae
to
60761f5
Compare
A Groovy Output that prints in the same way that the GroovyConsole.
There is a button allowing to delete its content.