Skip to content
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

Change the state of che editor programmatically #1209

Closed
Mirage20 opened this issue May 10, 2016 · 2 comments
Closed

Change the state of che editor programmatically #1209

Mirage20 opened this issue May 10, 2016 · 2 comments

Comments

@Mirage20
Copy link

I need to open an existing project file in the che editor and move the cursor to a specific line. How do I achieve this programmatically from an extension? What classes or objects are responsible for this?

Che version: 4.3.0-RC1-SNAPSHOT

Thanks.

@vparfonov
Copy link
Contributor

vparfonov commented May 10, 2016

Hello, for opening file you can fire event FileEvent. About navigation to the specific line we do it by calling native JS of Orion Editor for details you cat look at built-codeEdit-amd.js (try fond line 35920 in this script)

@Mirage20
Copy link
Author

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants