Re: [EGIT PATCH] git property page for project properties.
- From
- Tomi Pakarinen <tomi.pakarinen@gmail.com>
- Date
- Oct 21, 2008, 18:09 UTC
- Message-ID
- <f299b4f30810211109q7f2919f2r1d5cd8faf0048154@mail.gmail.com>
- In-Reply-To
- <200810211950.50540.robin.rosenberg.lists@dewire.com>
On Tue, Oct 21, 2008 at 8:50 PM, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
Show 32 quoted lines
> måndagen den 20 oktober 2008 21.06.44 skrev Tomi Pakarinen:
>> Show git property page in project's properties, if project
>> has git repository provider.
> [...]
>> + switch (repository.getRepositoryState()) {
>> + case BISECTING:
>> + state.setText("Bisecting");
>> + break;
>> + case MERGING:
>> + state.setText("Merging");
>> + break;
>> + case REBASING:
>> + state.setText("Rebasing");
>> + break;
>> + case REBASING_INTERACTIVE:
>> + state.setText("Rebasing interactive");
>> + break;
>> + case REBASING_MERGE:
>> + state.setText("Rebasing merge");
>> + break;
>> + case SAFE:
>> + state.setText("Safe");
>> + break;
>> + }
> Why not this:
>
> state.setText(repository.getRepositoryState().getDescription());
>
> Description is ment for presentation purposes. The enum for code.
>
> -- robin
>That is ok. I just didn't notice that method before. But, what if someone wants localize this plugin, he'll propably have to explode this back to switch statement.
Tomi.