[rfc][icedtea-web][policyeditor] Enhancement: added Rename, Copy, and Paste actions
Andrew Azores
aazores at redhat.com
Wed Jun 4 14:48:24 UTC 2014
On 06/03/2014 06:24 PM, Andrew Azores wrote:
> On 05/30/2014 03:19 PM, Andrew Azores wrote:
>> Hi,
>>
>> As alluded to in the subject, this patch adds three new actions to
>> PolicyEditor. They are all available through the new Edit menu. The
>> Rename action allows a codebase entry to be renamed, keeping all of
>> the same permissions. The Copy and Paste actions can be used to
>> duplicate the permissions of one codebase and grant them to a new
>> codebase, which makes it easier to produce two codebase entries with
>> very similar permissions granted.
>>
>> This patch also fixes a bug where removing a codebase only did so for
>> the standard permissions map which models the checkboxes in the main
>> PolicyEditor UI, but did not remove custom permissions granted to the
>> codebase through CustomPolicyViewer. There are also some very minor
>> refactors included, noted in the in-patch ChangeLog.
>>
>> Thanks,
>>
>
> Attached is an updated version that applies cleanly to HEAD.
>
> Still not included are key accelerators or mnemonics for the new menu
> items. I'm going to go through and redo all of them in a later patch.
>
> Thanks,
>
Very slight update. I noticed that the Rename action didn't ensure that
a codebase wasn't renamed to an already existing other codebase, which
would allow the already existing codebase to be deleted in favour of the
newly renamed one. This is solved just by checking if the desired rename
is already present in another codebase entry and, if so, re-prompting
for a codebase name.
Thanks,
--
Andrew A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: policyeditor-rename-copy-paste-3.patch
Type: text/x-patch
Size: 10103 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140604/5fceb24b/policyeditor-rename-copy-paste-3-0001.patch>
More information about the distro-pkg-dev
mailing list