| Summary: | disable all operations in the Task Repositories view for a disconnected repository | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Shawn Minto <shawn.minto> | ||||||
| Component: | Mylyn | Assignee: | Shawn Minto <shawn.minto> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P4 | Keywords: | helpwanted | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 2.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Shawn Minto
Shawn: could you provide a patch? I should be able to look into this later this week. Created attachment 84363 [details]
patch
Attached is a patch that adds a property for whether the repository is online and adds the check for this property in the enablement of the contributed actions.
Created attachment 84364 [details]
mylyn/context/zip
Updated IP log and applied the patch with minor modifications: renamed the property to "offline" to make it consistent with rest of the API and made the property check compare the specified value. The patch does not set the enabled state for the "Update Attributes" menu item. Should that be disabled for offline repositories as well? (In reply to comment #5) > The patch does not set the enabled state for the "Update Attributes" menu item. > Should that be disabled for offline repositories as well? I thought that this would be ok to leave since it shouldn't bring up any wizards that may require contacting the repository and therefore should fail gracefully. I can create another patch to address this if you wanted. Okay, we can leave it for now as "Update Attributes" only invokes a method on the connector that can handle it appropriately. |