Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:22 Go to next message
Virag Purnam is currently offline Virag PurnamFriend
Messages: 142
Registered: June 2014
Senior Member
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 11:23]

Report message to a moderator

Re: How to control Indexing for Xtext Projects [message #1795643 is a reply to message #1795642] Wed, 26 September 2018 11:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to control Indexing for Xtext Projects [message #1795646 is a reply to message #1795643] Wed, 26 September 2018 11:35 Go to previous messageGo to next message
Virag Purnam is currently offline Virag PurnamFriend
Messages: 142
Registered: June 2014
Senior Member
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 11:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
no really. of course you could let the user cancel the build but then it would be restarted at the next action.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 26 September 2018 11:43]

Report message to a moderator

Re: How to control Indexing for Xtext Projects [message #1795648 is a reply to message #1795647] Wed, 26 September 2018 11:46 Go to previous messageGo to next message
Virag Purnam is currently offline Virag PurnamFriend
Messages: 142
Registered: June 2014
Senior Member
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 11:47 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

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: Thu Apr 18 21:04:23 GMT 2024

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

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

Back to the top