@Override
public void widgetSelected(SelectionEvent e) {
if (resourceManager.getResourceCount() >= Constants.MAX_RESOURCE_COUNT) {
- MessageDialog
- .openInformation(Display.getDefault()
- .getActiveShell(),
- "Resource limit exceeded",
- "Exceeded the limit of resources that can exist in the server.");
+ MessageDialog.openInformation(Display.getDefault()
+ .getActiveShell(), "Resource limit exceeded",
+ Constants.RESOURCE_LIMIT_EXCEEDED_MSG);
return;
}
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {