Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] [EASE] Sign and Verify Script

Hi,

I am running the snippet within the eclipse application using eclipse console.

I want instance of ScriptType so that I can get an instance of ICodeParser. Then I want to use parser for its methods.

On Mon, Jun 27, 2016 at 4:17 PM <Christian.Pontesegger@xxxxxxxxxxxx> wrote:

Hi Varun,

 

what were you trying to do, run this snippet outside the context of a running eclipse application? This will definitely not work.

The workspace needs to be launched, only afterwards you will be able to call getService().

 

Running the same snippet within eclipse (eg in an EASE shell) gives following result:

 

service = getService(org.eclipse.ease.service.IScriptService);

      org.eclipse.ease.service.ScriptService@c77bb6

service.getScriptType("workspace://Scripts/Test.js")

      org.eclipse.ease.service.ScriptType@b01c44

 

HTH

Christian

 

From: ease-dev-bounces@xxxxxxxxxxx [mailto:ease-dev-bounces@xxxxxxxxxxx] On Behalf Of Varun Raval
Sent: Monday, June 27, 2016 11:55 AM
To: ease developer discussions
Subject: Re: [ease-dev] [EASE] Sign and Verify Script

 

Hi,

I tried the ScriptTypeTest.java

But it is giving error described in error.txt

Thanks for helping,

On Mon, Jun 27, 2016 at 1:16 AM Christian Pontesegger <christian.pontesegger@xxxxxx> wrote:

Hi Varun,

if you look in the documentation for IScriptService you will find the exact java call to get the service. Do not unse getInstance(), it will vanish as soon as I have time to fix some base dependencies to that getter.

Regarding your error on getScriptType: what location are you using there?

cheers
Christian

 

On 06/23/2016 03:18 PM, Varun Raval wrote:

Hi,

I have uploaded a new patch regarding core methods for Signature verification functionality. See here: https://git.eclipse.org/r/#/c/75831/

I am trying to figure out how to get language specific block comments and have posted a comment on Mattermost.


How should try following command?
         IScriptService scriptService = ScriptService.getInstance();
         ScriptType scriptType = scriptService.getScriptType(location);

It is giving error while running getScriptType.

 

Best regards,

--

Varun Raval

 

_______________________________________________
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

--

Varun Raval

_______________________________________________
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
--
Varun Raval

Back to the top