Bug 547772 - [9][build path] improve synchronization of data on different tabs of Java Build Path
Summary: [9][build path] improve synchronization of data on different tabs of Java Bui...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.12   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 546790
Blocks:
  Show dependency tree
 
Reported: 2019-05-29 18:27 EDT by Stephan Herrmann CLA
Modified: 2020-06-05 17:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2019-05-29 18:27:38 EDT
Left over from bug 546790:

(In reply to Stephan Herrmann from bug 546790 comment #8)
> Next, I noticed that a jar freshly added to the module path still doesn't
> show up, because for this we need an IPackageFragmentRoot, which hasn't been
> created yet. Current solution: raise a warning:
>   Not all modules could be found. Please consider pressing Apply to
> synchronize.

This obviously isn't ideal.

Still, I'm not sure which is the best solution:

- automatically perform Apply? By this we'd loose the option of a true "Cancel".
  or should we remember the initial configuration so that cancel can *restore* it?

- do we need to invent a new representation for a module that is not yet on the build path? Short of Apply we simply will not have an IModuleDescription :(
Comment 1 Noopur Gupta CLA 2019-05-30 02:59:03 EDT
It's similar to the "Is modular" dialog. There, after adding an external JAR (and before clicking Apply) if we double-click on the "Is modular" node, we get the dialog "Working on Unapplied changes". We can show a similar dialog with Apply and Cancel when switching to the new tab.
Comment 2 Noopur Gupta CLA 2019-05-30 03:04:48 EDT
(In reply to Noopur Gupta from comment #1)
> It's similar to the "Is modular" dialog. There, after adding an external JAR
> (and before clicking Apply) if we double-click on the "Is modular" node, we
> get the dialog "Working on Unapplied changes". We can show a similar dialog
> with Apply and Cancel when switching to the new tab.
Similar to Launch Configurations, where changing JRE from modular to non-modular on JRE tab and moving to Dependencies tab shows the dialog.
Comment 3 Noopur Gupta CLA 2020-02-17 00:59:28 EST
Moving out of 4.15.