| Summary: | Remote tool launchers need more flexibility | ||
|---|---|---|---|
| Product: | [Tools] Linux Tools | Reporter: | Corey Ashford <cjashfor> |
| Component: | Project | Assignee: | Linux Distros Inbox <linux.distros-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | akurtakov, jjohnstn |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Bug Depends on: | 364426, 364433 | ||
| Bug Blocks: | |||
|
Description
Corey Ashford
I found the code that allows specifying a remote project not in the CDT, but in the Eclipse core. This is because any sort of project (not just C/C++ projects) can use non-local filesystems. The code is in org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea which uses org.eclipse.ui.internal.ide.dialogs.FileSystemConfiguration. This ProjectContentsLocationArea is not reusable, even if it were exported, which it isn't. However, we could use it as a guide to create a new widget implementation. (In reply to comment #1) > However, we could use it as a guide to create a new widget implementation. This isn't looking very good. Ideally, I'd like to leverage off of the code that's already in Eclipse for obtaining a list of registered filesystems, and classes to access these filesystems. However, I'm finding that nearly all of this code is in contained in internal packages (i.e. not exported). After discovering this, I thought maybe that the best route would be to duplicate a subset of the code from org.eclipse.ui.internal.ide which implements the filesystem extension point. That way we have access to the same exact data that Eclipse does. The downside is that we would now have duplicated code in Eclipse, which would need to track its twin in the main Eclipse. Anyone have a better idea about how to deal with this? (In reply to comment #2) > (In reply to comment #1) > > However, we could use it as a guide to create a new widget implementation. > > This isn't looking very good. Ideally, I'd like to leverage off of the code > that's already in Eclipse for obtaining a list of registered filesystems, and > classes to access these filesystems. However, I'm finding that nearly all of > this code is in contained in internal packages (i.e. not exported). > > After discovering this, I thought maybe that the best route would be to > duplicate a subset of the code from org.eclipse.ui.internal.ide which > implements the filesystem extension point. That way we have access to the same > exact data that Eclipse does. The downside is that we would now have > duplicated code in Eclipse, which would need to track its twin in the main > Eclipse. > > Anyone have a better idea about how to deal with this? Well, I have a little good news. While the packages we need are exported as "internal", we can still use them it turns out. I get a yellow underline in the code editor telling me that access is discouraged, but I think we can live with that. (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > However, we could use it as a guide to create a new widget implementation. > > > > This isn't looking very good. Ideally, I'd like to leverage off of the code > > that's already in Eclipse for obtaining a list of registered filesystems, and > > classes to access these filesystems. However, I'm finding that nearly all of > > this code is in contained in internal packages (i.e. not exported). > > > > After discovering this, I thought maybe that the best route would be to > > duplicate a subset of the code from org.eclipse.ui.internal.ide which > > implements the filesystem extension point. That way we have access to the > same > > exact data that Eclipse does. The downside is that we would now have > > duplicated code in Eclipse, which would need to track its twin in the main > > Eclipse. > > > > Anyone have a better idea about how to deal with this? > > Well, I have a little good news. While the packages we need are exported as > "internal", we can still use them it turns out. I get a yellow underline in the > code editor telling me that access is discouraged, but I think we can live with > that. We can petition the platform to make them API if you'd like. |