Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] RCP e4 and EASE

Hi Mike,

the keyword mechanism for scripts is part of o.e.ease.ui.scripts. I guess
without a workbench you will have a hard time to use this functionality. We
do need it to get our hands on all kinds of services. Not sure if all of
them could be replaced with e4 services without a major rewrite of the
plugin.

ScriptService.getInstance() is there for cases where the workbench is not
available. Up to now this was only valid for the headless use case for
eclipse.

Scripts are represented via IScript objects, which do have a run()
implementation to launch them. Run() will use the workbench again to
retrieve the correct script engine...

I am not really into e4 a lot, so what you do is also an interesting
experiment for me. If you want to share your project somewhere on github I
could have a look, although I will not really have time for that before
EclipseCon.

Christian


-----Original Message-----
From: ease-dev-bounces@xxxxxxxxxxx [mailto:ease-dev-bounces@xxxxxxxxxxx] On
Behalf Of Gerdes, Mike
Sent: Thursday, October 12, 2017 1:33 PM
To: ease developer discussions
Subject: Re: [ease-dev] RCP e4 and EASE

Ok, loadModule works now. The command "getActiveView()" and similar commands
crash the application, but that must be some implementation error. 

I noticed that a major error source for me is that "
PlatformUI.getWorkbench()" is used by most classes, however in my
application there is no workbench and so the methods that try to get the
workbench crash.

I retrieved my ScriptService via ScriptService.getInstance(); and that
worked well.

-----Ursprüngliche Nachricht-----
Von: ease-dev-bounces@xxxxxxxxxxx [mailto:ease-dev-bounces@xxxxxxxxxxx] Im
Auftrag von Gerdes, Mike
Gesendet: Donnerstag, 12. Oktober 2017 12:55
An: ease developer discussions
Betreff: Re: [ease-dev] RCP e4 and EASE

Hi,

I made some progress with my EASE and RCP 4 project. I have now an editor
that can execute Python command. My current problem is that this editor does
not know the command "loadModule" and some others. How do I include them
into my project? I use createEngine() to start my interpreter and
executeSync() to execute Python commands. 

I think that I am missing a class or something here.

Another question is: Which class executes the scripts? Basically I need to
know which class interprets the " # popup         :
enableFor(java.lang.Object)" comment and similar strings in the script code.

When I have my RCP project finished I will upload it to the Wiki if
everything goes well.


Best regards

Mike

-----Ursprüngliche Nachricht-----
Von: ease-dev-bounces@xxxxxxxxxxx [mailto:ease-dev-bounces@xxxxxxxxxxx] Im
Auftrag von Gerdes, Mike
Gesendet: Dienstag, 10. Oktober 2017 13:37
An: ease developer discussions
Betreff: Re: [ease-dev] RCP e4 and EASE

Hi Christian,

I will do my best to provide my findings tp the wiki.


Regards

Mike

-----Ursprüngliche Nachricht-----
Von: ease-dev-bounces@xxxxxxxxxxx [mailto:ease-dev-bounces@xxxxxxxxxxx] Im
Auftrag von Christian Pontesegger
Gesendet: Dienstag, 10. Oktober 2017 11:49
An: ease-dev@xxxxxxxxxxx
Betreff: Re: [ease-dev] RCP e4 and EASE

Hi Mike,

EASE views are written in eclipse 3.x style. So in a pure e4 application you
would have to define them somehow in the application model I guess.

Basic plugins you need are:

* org.eclipse.ease
* o.e.ease.ui

Then add some language support (I guess python stuff in your case). Have a
look at our target platform definition for external update site URIs:
http://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/releng/org.ecli
pse.ease.releng.target/Oxygen.tpd

Having language support + the ease.ui plugin should provide run targets for
*.py file.

Scripts for eg UI integration addtiionally need o.e.ease.ui.scripts. 
Then you need to register the script location in the Scripting preferences.
To add toolbar/menu/popup elements we use 3.x semantics, I guess in an e4
application you would need to add the compatibility layer to have support
for those things.

If you are able to contribute a toolbar by using extension points in a
plugin.xml then EASE should also be able to add toolbars to your
application.

Your findings regarding dependencies and integration would be very welcome
for our wiki page!

Christian


On 10.10.2017 10:10, Gerdes, Mike wrote:
> Hi all,
>
> I am still working with py4j and EASE and it is a great experience. I was
able to enhance Eclipse by multiple features that make working a bit easier.
I had to do some try and error until I got the interaction between EASE,
Eclipse and Python right (the biggest issue was getting the Java classes of
the selected elements and perform operations on them).
>
> My next goal is to take a simple RCP application using this tutorial
(http://o7planning.org/en/10181/eclipse-rcp-tutorial-for-beginners-workbench
-application). I have added the dependencies to the EASE plugin and the
application launches. But no EASE functionality is working. The problem I
think is that the application is not finding my scripts.
>
> Has anybody tried to include EASe into a RCP e4 application and managed to
configure it?
>
>
> Best regards
>
> Mike
> _______________________________________________
> ease-dev mailing list
> ease-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or 
> unsubscribe from this list, visit 
> https://dev.eclipse.org/mailman/listinfo/ease-dev

_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/ease-dev
_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/ease-dev
_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/ease-dev
_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit https://dev.eclipse.org/mailman/listinfo/ease-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top