Skip to main content



      Home
Home » Modeling » TMF (Xtext) » How to control Indexing for Xtext Projects(Indexing starts as soon as project is imported into editor or we click open project (Can we control this))
How to control Indexing for Xtext Projects [message #1795642] Wed, 26 September 2018 07:22 Go to next message
Eclipse UserFriend
Hello,

We have an editor created using Xtext.
Now when we import project into an editor or we click open project, it starts indexing resources of the project.
Can we control this event ? How can we disable this?
I want to trigger this only when I open resource.
Is this possible? and How to achieve this?

Thanks and regards,
Virag Purnam

[Updated on: Wed, 26 September 2018 07:23] by Moderator

Re: How to control Indexing for Xtext Projects [message #1795643 is a reply to message #1795642] Wed, 26 September 2018 07:23 Go to previous messageGo to next message
Eclipse UserFriend
that a build is started and that then xtext is indexing is part of the xtext build infrastructure.
is there any reason why you would want to do that.
i strongly discurage you from doing that for no real reason
Re: How to control Indexing for Xtext Projects [message #1795646 is a reply to message #1795643] Wed, 26 September 2018 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the reply.
This one I am trying to reduce the repeated build.
When we open the project or import the project, this triggers a build.
This build result will not be useful for the user, because user wants to modify some files.
Only after modification of files, triggered build results are useful for the user.
Two builds are taking some time, which we want to avoid.

Any suggestions?

Thanks and regards,
Virag Purnam
Re: How to control Indexing for Xtext Projects [message #1795647 is a reply to message #1795646] Wed, 26 September 2018 07:39 Go to previous messageGo to next message
Eclipse UserFriend
no really. of course you could let the user cancel the build but then it would be restarted at the next action.

[Updated on: Wed, 26 September 2018 07:43] by Moderator

Re: How to control Indexing for Xtext Projects [message #1795648 is a reply to message #1795647] Wed, 26 September 2018 07:46 Go to previous messageGo to next message
Eclipse UserFriend
I agree.
I will propose the same.

Thanks and regards,
Virag Purnam
Re: How to control Indexing for Xtext Projects [message #1795649 is a reply to message #1795647] Wed, 26 September 2018 07:47 Go to previous message
Eclipse UserFriend
You could programmatically disable the auto-build and activate when needed. But take this hint as strongly discouraged.
Previous Topic:Cloning/Copying Xtext Resource including node model
Next Topic:xtext-eclipse project
Goto Forum:
  


Current Time: Sun Jun 15 20:06:07 EDT 2025

Powered by FUDForum. Page generated in 0.03981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top