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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html