Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] CodeEdit - listen to CTRL-S

Hi Gowrishankar:
Currently there is no such API you can call by yourself to invoke the validation other than that the save action invoking it.
But we will expose an API from editorViewer so that you can listen to the "inputChange" event and call that API.

Stay tuned,
Libing



From:        Gowrishankar Holalkere <gowrishankar.holalkere@xxxxxxxxxxxxxxxxx>
To:        Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date:        12/04/2015 11:56 AM
Subject:        Re: [orion-dev] CodeEdit - listen to CTRL-S
Sent by:        orion-dev-bounces@xxxxxxxxxxx




Hi Libing,
I re-read the section carefully and re-tried the code. Here is the use-case I am trying to address. I do not want auto-save with every change, but I do want auto-validate with every change. I think my understanding and what I am experiencing with the code is that "InputChanged" gets triggered either when CTRL-S is typed or with every change when auto-save is enabled and validation occurs only when "InputChanged" is triggered.

Is there a way to keep auto-save disabled, but still enable auto-validate either by listening to some other change-event and explicitly invoking validate?



Thanks

Gowrishankar Holalkere| Sr. Development Manager, IT
Solutions Development - Variable Data Management
Retail Branding and Information Solutions | Avery Dennison 
1700 West Park Drive, Suite 400, Westborough, MA 01581
508-948-3466 (office) | 508-308-7987 (mobile) 
Gowrishankar.Holalkere@xxxxxxxxxxxxxxxxx 


On Fri, Dec 4, 2015 at 10:30 AM, Libing Wang <Libing_Wang@xxxxxxxxxx> wrote:
I assume that you are talking about https://wiki.eclipse.org/Orion/How_Tos/Code_Edit#Saving_your_editor_contents.
CTRL+S is a preserved key binding for the widget. Your custom-save() function is kicked whenever CTRL+S happens on a dirty editor.
I am not sure why you want to control evt.contentsSaved and isDirty flag. Could you elaborate what you want to achieve?


Libing




From:        
Gowrishankar Holalkere <gowrishankar.holalkere@xxxxxxxxxxxxxxxxx>
To:        
Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date:        
12/03/2015 07:56 PM
Subject:        
[orion-dev]  CodeEdit - listen to CTRL-S
Sent by:        
orion-dev-bounces@xxxxxxxxxxx




Hello, Could you please tell me how to listen to CTRL-S command so that I can implement custom-save() and also how can I reset evt.contentsSaved and/or rest isDirty attribute if there is one after my custom-save() is successful.


Thanks

Gowrishankar Holalkere
| Sr. Development Manager, IT
Solutions Development - Variable Data Management
Retail Branding and Information Solutions | Avery Dennison 
1700 West Park Drive, Suite 400, Westborough, MA 01581

508-948-3466 (office) | 508-308-7987(mobile) 
Gowrishankar.Holalkere@xxxxxxxxxxxxxxxxx 




-------------------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------------------------------------------------------------------------------------------------------

_______________________________________________
orion-dev mailing list

orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/orion-dev


_______________________________________________
orion-dev mailing list

orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/orion-dev



-------------------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------------------------------------------------------------------------------------------------------
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top