Hi Lidia, Sorry you have stumped me on that one. But I have a few guesses that may help you debug the issue:
1- Stick a breakpoint on org.eclipse.ui.internal.WorkbenchPage.openEditor(IEditorInput, String, boolean, int, IMemento, boolean) - that should help you track down in the stack trace where the decision was made. 2- The plug-in that contributes an item to the view normally has control over what happens when you double-click or open the file. However the Open With command is handled generically. That means a plug-in can force a specific editor on normal opens, but users can override by using Open with. 3- For a CDT contributed element, org.eclipse.cdt.internal.ui.util.EditorUtility.getEditorID(IEditorInput, Object) is in charge of figuring out which editor to use 4- org.eclipse.ui.ide.IDE.EDITOR_KEY is the persistent property (see org.eclipse.core.resources.IResource.getPersistentProperty(QualifiedName)) that keep track of overrides for a single file. I don't know where the global overrides are stored. I hope that helps you figure out the problem. It would be great if you could report back what the issue ended up being. Thanks Jonah ~~~ Jonah Graham Kichwa Coders www.kichwacoders.com On Tue, 18 May 2021 at 18:48, Popescu, Lidia <lidia.pope...@windriver.com> wrote: > Thanks Jonah, > > Do you know by accident what could be the reason that my selection is not > persistent ? I can't reproduce it in plaint eclipse. > > Open a file with Specfile Editor and check 'Use it for all *.test files'. > The icons in project explorer are properly displayed, but on file click it > still opens with previous default text editor. > Where should I look for investigating this? > > > > > Thank you > Kind Regards > Lidia > > ------------------------------ > *From:* linuxtools-dev <linuxtools-dev-boun...@eclipse.org> on behalf of > Jonah Graham <jo...@kichwacoders.com> > *Sent:* Monday, May 17, 2021 1:51 AM > *To:* Linux Tools developer discussions <linuxtools-dev@eclipse.org> > *Subject:* Re: [linuxtools-dev] Why does RPM Specfile Editor is not > enabled ? > > > [Please note: This e-mail is from an EXTERNAL e-mail address] > Hi Lidia, > > In Eclipse 2020-06 and later (4.16) there is a new option that is on by > default that helps users in this case - > https://www.eclipse.org/eclipse/news/4.16/platform.php#verify-jre-installation > > HTH, > Jonah > > ~~~ > Jonah Graham > Kichwa Coders > www.kichwacoders.com > > > On Sun, 16 May 2021 at 18:41, Popescu, Lidia <lidia.pope...@windriver.com> > wrote: > > Hello > > I figured out that latest linuxtools requires java 11. > My problem is fixed. I found appropriate versions > 7.7.0 for eclipse v.4.15.0 > 6.2.1 for eclipse oxigen 3a > > but why does I've been allowed to install latest > org.eclipse.linuxtools.rpm_8.2.0.202103091924.jar > <https://download.eclipse.org/linuxtools/update/features/org.eclipse.linuxtools.rpm_8.2.0.202103091924.jar> > and it tells that installation is successful. It's confusing. A less > advanced user may not figure this out. > > Thank you > Kind Regards > Lidia > ------------------------------ > *From:* Popescu, Lidia > *Sent:* Sunday, May 16, 2021 1:47 PM > *To:* linuxtools-dev@eclipse.org <linuxtools-dev@eclipse.org> > *Subject:* Why does RPM Specfile Editor is not enabled ? > > Hello forks, > > I am trying to find out why does the RPM Specfile Editor is not visible > after 'org.eclipse.linuxtools.rpm.ui.editor ' plugin installation on a > linux system, on both eclipse Eclipse Oxygen.3a (v.4.7.3a) & Eclipse > v.4.15.0 (2020-03-05). > > I successfully works on windows system, eclipse 2021-03. > But I don't think that eclipse version or OS matters as soon as it passed > installation process. > > I compared Configuration's tab and > > 1. When it does not work, the option "open with SpeciFile Editor" is > not visible - It shows as [Installed] org.eclipse.linuxtools.rpm.ui.editor > (4.0.0.202103091924) "RPM Specfile Editor" [Installed] > 2. When it works, it has [Active] state > > org.eclipse.linuxtools.rpm.ui.editor (4.0.0.202103091924) "RPM > Specfile Editor" [Active] > > So, what could prevent a plugin from being Active? What are the > dependencies, why it does not work? I am trying to debug the plugin to find > out, but maybe you could give me a quicker replay? > > > Thank you in advance > Kind Regards > Lidia Popescu > _______________________________________________ > linuxtools-dev mailing list > linuxtools-dev@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/linuxtools-dev > > _______________________________________________ > linuxtools-dev mailing list > linuxtools-dev@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/linuxtools-dev >
_______________________________________________ linuxtools-dev mailing list linuxtools-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/linuxtools-dev