Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] how to debug "Choose workspace" dialog workflow?

Hi Tony,

> How can I debug the “Choose workspace” dialog workflow with an “Eclipse Application” launch?

Use @noDefault and you will get the prompt under normal conditions. You can debug org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(Shell, Map) to see why your code is working as it is. You can read more about the special location options in https://help.eclipse.org/2020-09/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html#locations

HTH,
Jonah

~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Tue, 10 Nov 2020 at 18:23, Homer, Tony <tony.homer@xxxxxxxxx> wrote:

I recently made a change in an Eclipse product to switch from a static product declaration to a dynamic product declaration, as documented here:

https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_core_runtime_products.html&cp%3D2_1_1_30

 

After making this change, most everything works as expected, but the “Choose workspace” dialog is no longer displayed on startup.  The workspace can be switched via the File>Switch Workspace menu item, but on subsequent starts, the selection has not been saved (RECENT_WORKSPACES is empty) and the default workspace is opened.  I imagine that my dynamic product implementation is causing this, so I want to step through the workflow (by the way, if anyone reading has an idea of how I could have broken this, please let me know!).

 

However, as far as I can tell, when launching an “Eclipse Application” there is no way to avoid specifying the target workspace in the workspace data section, so on initial launch, the “Choose workspace” dialog is not displayed.  Trying to exercise the workflow via File>Switch Workspace also fails, because an error occurs (“Missing System Property - Unable to relaunch the platform because the eclipse.vm property has not been set.").

 

How can I debug the “Choose workspace” dialog workflow with an “Eclipse Application” launch?

 

_______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev

Back to the top