Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319340

Summary: [build] show Hudson views in build plan selection
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Markus Knittig <markus>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: markus
Version: unspecified   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip
none
Filtering for build plans
none
mylyn/context/zip
none
fix none

Description Steffen Pingel CLA 2010-07-09 00:44:56 EDT
It would be helpful if the Hudson settings page showed views and nested build jobs. Also to better support servers with many build plans the list should have a find field for filtering (see bug 317891).
Comment 1 Markus Knittig CLA 2010-07-13 14:51:29 EDT
Nested build jobs? Haven't seen these. Or do you mean actual builds?
Views should definitely be there, but how to show these? A job can be in multiple views, so showing that in a tree view might be confusing...
Also not sure how generic this stuff is (and overriding the settings page is IIRC currently not possible in the Hudson connector).
Filtering should be done in the commons settings page. You mean filtering on the retrieved results, right?
Comment 2 Steffen Pingel CLA 2010-07-13 15:15:08 EDT
Yes, I mean the views. I agree that it could be confusing to show these in the tree due to the potential for duplicates and we might be better of leaving them out for now and adding a filter instead. It should be fairly straight forward to add that to the generic build page implementation.

For the views it would be nice to have them in the Hudson connector API even if we are not yet going to use them.
Comment 3 Steffen Pingel CLA 2010-07-13 16:36:04 EDT
Just to clarify for filtering I was thinking of using a FilteredTree. I have attached a context that points to CheckboxFilteredTree which has an example of that.
Comment 4 Markus Knittig CLA 2010-07-21 16:07:05 EDT
I don't see any attached context.
I found some implementations of @CheckboxFilteredTree@. The problem I have right now is that @TreeColumnLayout@ doesn't work with that, because it's tightly coupled to @Tree@. I tried overriding @TreeColumnLayout@, but that isn't working and probably a bad idea anyway. Any hints?
Comment 5 Steffen Pingel CLA 2010-07-22 16:12:44 EDT
Here is the context. Do we need multiple columns in the tree or can we get away without a special layout? How does PDE deal with that for the launch configurations dialog?
Comment 6 Steffen Pingel CLA 2010-07-22 16:12:45 EDT
Created attachment 175022 [details]
mylyn/context/zip
Comment 7 Markus Knittig CLA 2010-07-25 19:25:30 EDT
Removed the layout code, all seems to be fine so far. Now I just have to figure out why the @CheckboxFilteredTree@ is empty even though there should be items...
Comment 8 Markus Knittig CLA 2010-08-01 08:19:21 EDT
Created attachment 175670 [details]
Filtering for build plans

Finally got it...
Comment 9 Markus Knittig CLA 2010-08-01 08:19:23 EDT
Created attachment 175671 [details]
mylyn/context/zip
Comment 10 Steffen Pingel CLA 2010-08-02 00:43:34 EDT
Created attachment 175680 [details]
fix
Comment 11 Steffen Pingel CLA 2010-08-02 00:47:58 EDT
Thanks. I ran into some problem with your patch. If the list was filtered it would discard the checked state of the elements. I have committed a change that uses an ICheckStateProvider which does stores the checked state in the model instead of using the button controls. I have assigned the  bug to you nevertheless since you did a lot of investigation here.
Comment 12 Markus Knittig CLA 2010-08-03 12:53:21 EDT
The checked elements need to be saved and restored after the filtering. Not a big problem...
BTW: The project doesn't work after the latest CVS Update. The class @CredentialsFactory@ from commons.repository is missing. Local or global problem?
Comment 13 Steffen Pingel CLA 2010-08-03 13:40:54 EDT
(In reply to comment #12)
> BTW: The project doesn't work after the latest CVS Update. The class
> @CredentialsFactory@ from commons.repository is missing. Local or global
> problem?

I have verified that the class is in CVS but anonymous CVS seems to lack behind again. Unfortunately there is not much we can do about that. Let me know if the class does not appear within the next 48 hours and I'll contact the webmasters.