modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/AbstractBundleCreateWizard.java
| 4
modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleCreateWizard.java
| 4
modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleSummaryStep.java
| 12 +-
modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleTypeDropDownSelectItem.java
| 9 +
modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java
| 22 ++--
modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDistroFileStep.java
| 46 +++++----
modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties
| 50 ++++++++++
7 files changed, 103 insertions(+), 44 deletions(-)
New commits:
commit b019c1c7dd542faa060601835f51dea5448e6a94
Author: John Mazzitelli <mazz(a)redhat.com>
Date: Thu Nov 18 14:23:13 2010 -0500
i18n
diff --git
a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties
b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties
index 8df9966..070f51c 100644
---
a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties
+++
b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties
@@ -593,6 +593,7 @@ view_autoDiscoveryQ_loadFailure=Failed to load the inventory discovery
queue~
view_bundle_bundle = Bundle~
view_bundle_bundles = Bundles~
view_bundle_bundleDestinations=Bundle Destinations~
+view_bundle_bundleDeployment=Bundle Deployment~
view_bundle_bundleDeployments=Bundle Deployments~
view_bundle_bundleFiles=Bundle Files~
view_bundle_bundleType=Bundle Type~
@@ -677,6 +678,54 @@ view_bundle_deploy_selectARow=Select a row to show installation
details~
view_bundle_deploy_operatingSystem=Operating System~
view_bundle_deploy_loadFailure=Failed to load bundle deployment~
view_bundle_deploy_loadBundleFailure=Failed to find bundle~
+view_bundle_createWizard_title=Create Bundle~
+view_bundle_createWizard_windowTitle=Bundle Creation Wizard~
+view_bundle_createWizard_cancelSuccessful=Canceled the creation of bundle [{0}],
version=[{1}]~
+view_bundle_createWizard_cancelFailure=Failed to fully cancel the creation of bundle
[{0}], version=[{1}] - the bundle may still exist in the database~
+view_bundle_createWizard_noBundleTypesSupported=No bundle types are supported - you must
deploy a valid plugin that supports bundle deployments~
+view_bundle_createWizard_noBundleTypesAvail=No bundle types are available~
+view_bundle_createWizard_loadBundleFileFailure=Cannot obtain bundle file information from
server~
+view_bundle_createWizard_uploadInProgress=Upload is in progress... This can take several
minutes for large files~
+view_bundle_createWizard_uploadStepName=Upload Bundle Files~
+view_bundle_createWizard_noAdditionalFilesNeeded=No additional files need to be uploaded
for this bundle~
+view_bundle_createWizard_failedToUploadFile=Failed to upload bundle file~
+view_bundle_createWizard_failedToUploadDistroFile=Failed to upload bundle distribution
file~
+view_bundle_createWizard_bundleDistro=Bundle Distribution~
+view_bundle_createWizard_youMustChooseOne=You must choose one option in order to create a
bundle!
+view_bundle_createWizard_urlOption=URL~
+view_bundle_createWizard_uploadOption=Upload~
+view_bundle_createWizard_recipeOption=Recipe~
+view_bundle_createWizard_uploadStepName=Provide a Bundle Distribution~
+view_bundle_createWizard_clickToUploadRecipe=Click to upload a recipe file~
+view_bundle_createWizard_createFailure=Failed to create the bundle~
+view_bundle_createWizard_createSuccessful=You have successfully created a bundle named
[{0}] with a version of [{1}]~
+
+view_bundle_deployWizard_deploying = Deploying...~
+view_bundle_deployWizard_deployStep = Deploy Bundle to Destination Platforms~
+view_bundle_deployWizard_deploymentCreated = Created Deployment...~
+view_bundle_deployWizard_deploymentCreatedDetail = Created deployment [{0}] description
[{1}]~
+view_bundle_deployWizard_deploymentScheduled = Bundle Deployment Scheduled!~
+view_bundle_deployWizard_deploymentScheduledDetail = Scheduled bundle deployment [{0}]
destination group [{1}]~
+view_bundle_deployWizard_error_1 = Failed to delete new deployment on Cancel: {0}~
+view_bundle_deployWizard_error_2 = Failed to delete new destination on Cancel: {0}~
+view_bundle_deployWizard_error_3 = Failed to Schedule Deployment!~
+view_bundle_deployWizard_error_4 = Failed to schedule deployment: {0}~
+view_bundle_deployWizard_error_5 = Failed to Create Deployment!~
+view_bundle_deployWizard_error_6 = Failed to create deployment: {0}~
+view_bundle_deployWizard_error_7 = Failed to get deployment name.~
+view_bundle_deployWizard_getConfigStep = Set Deployment Configuration~
+view_bundle_deployWizard_getConfigSkip = No configuration needed for this bundle
version.~
+view_bundle_deployWizard_getInfoStep = Provide Deployment Information~
+view_bundle_deployWizard_getInfo_clean = Clean Deployment? (wipe deploy directory on
destination platform)~
+view_bundle_deployWizard_getInfo_deploymentDesc = Deployment Description~
+view_bundle_deployWizard_getInfo_deploymentName = Deployment Name~
+view_bundle_deployWizard_getOptionsStep = Deploy Options~
+view_bundle_deployWizard_getOptions_deployLater = Deploy Later~
+view_bundle_deployWizard_getOptions_deployNow = Deploy Now~
+view_bundle_deployWizard_getOptions_deployTime = Deployment Time~
+
+view_bundle_deployWizard_title = Bundle Deployment Wizard~
+
#=================== Components =====================
@@ -1241,3 +1290,4 @@ view_messageCenter_messageTitle = Message Center~
view_messageCenter_messageSeverity = Severity~
view_messageCenter_messageTime = Time~
view_messageCenter_messageDetail = Detail~
+
commit 3423a4491a09c34038fa2b48e6a4e4ea2f5c7612
Author: John Mazzitelli <mazz(a)redhat.com>
Date: Thu Nov 18 14:22:52 2010 -0500
i18n
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/AbstractBundleCreateWizard.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/AbstractBundleCreateWizard.java
index a3bd629..9aa7a1e 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/AbstractBundleCreateWizard.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/AbstractBundleCreateWizard.java
@@ -72,13 +72,13 @@ public abstract class AbstractBundleCreateWizard extends
AbstractWizard {
bundleServer.deleteBundleVersion(bv.getId(), true, new
AsyncCallback<Void>() {
public void onSuccess(Void result) {
CoreGUI.getMessageCenter().notify(
- new Message("Canceled bundle [" + bv.getName() +
"] version [" + bv.getVersion() + "]",
+ new
Message(MSG.view_bundle_createWizard_cancelSuccessful(bv.getName(), bv.getVersion()),
Severity.Info));
}
public void onFailure(Throwable caught) {
CoreGUI.getErrorHandler().handleError(
- "Failed to fully cancel - bundle may still exist in the
database", caught);
+ MSG.view_bundle_createWizard_cancelFailure(bv.getName(),
bv.getVersion()), caught);
}
});
}
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleCreateWizard.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleCreateWizard.java
index 238ca4b..b63e3f4 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleCreateWizard.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleCreateWizard.java
@@ -25,8 +25,8 @@ import
org.rhq.enterprise.gui.coregui.client.components.wizard.WizardStep;
public class BundleCreateWizard extends AbstractBundleCreateWizard {
public BundleCreateWizard() {
- setWindowTitle("Bundle Creation Wizard");
- setTitle("Create Bundle");
+ setWindowTitle(MSG.view_bundle_createWizard_windowTitle());
+ setTitle(MSG.view_bundle_createWizard_title());
ArrayList<WizardStep> steps = new ArrayList<WizardStep>();
steps.add(new BundleUploadDistroFileStep(this));
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleSummaryStep.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleSummaryStep.java
index fe4fb1f..8a886bd 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleSummaryStep.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleSummaryStep.java
@@ -45,32 +45,32 @@ public class BundleSummaryStep extends AbstractWizardStep {
form.setNumCols(2);
form.setMargin(20);
- StaticTextItem bundleTypeLabel = new StaticTextItem("bundleType",
"Type");
+ StaticTextItem bundleTypeLabel = new StaticTextItem("bundleType",
MSG.view_bundle_bundleType());
bundleTypeLabel.setTitleAlign(Alignment.LEFT);
bundleTypeLabel.setAlign(Alignment.LEFT);
bundleTypeLabel.setWrap(false);
bundleTypeLabel.setValue(wizard.getBundleVersion().getBundle().getBundleType().getName());
- StaticTextItem nameLabel = new StaticTextItem("name",
"Name");
+ StaticTextItem nameLabel = new StaticTextItem("name",
MSG.common_title_name());
nameLabel.setTitleAlign(Alignment.LEFT);
nameLabel.setAlign(Alignment.LEFT);
nameLabel.setWrap(false);
nameLabel.setValue(wizard.getBundleVersion().getBundle().getName());
- StaticTextItem versionLabel = new StaticTextItem("Version");
+ StaticTextItem versionLabel = new StaticTextItem("Version",
MSG.common_title_version());
versionLabel.setTitleAlign(Alignment.LEFT);
versionLabel.setTitleAlign(Alignment.LEFT);
versionLabel.setAlign(Alignment.LEFT);
versionLabel.setWrap(false);
versionLabel.setValue(wizard.getBundleVersion().getVersion());
- StaticTextItem descriptionLabel = new StaticTextItem("Description");
+ StaticTextItem descriptionLabel = new StaticTextItem("Description",
MSG.common_title_description());
descriptionLabel.setTitleAlign(Alignment.LEFT);
descriptionLabel.setAlign(Alignment.LEFT);
descriptionLabel.setWrap(false);
descriptionLabel.setValue(wizard.getBundleVersion().getBundle().getDescription());
- StaticTextItem filesLabel = new StaticTextItem("Files");
+ StaticTextItem filesLabel = new StaticTextItem("Files",
MSG.view_bundle_files());
filesLabel.setTitleVAlign(VerticalAlignment.TOP);
filesLabel.setTitleAlign(Alignment.LEFT);
filesLabel.setAlign(Alignment.LEFT);
@@ -93,6 +93,6 @@ public class BundleSummaryStep extends AbstractWizardStep {
}
public String getName() {
- return "Summary";
+ return MSG.common_title_summary();
}
}
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleTypeDropDownSelectItem.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleTypeDropDownSelectItem.java
index 540d13e..959237b 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleTypeDropDownSelectItem.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleTypeDropDownSelectItem.java
@@ -43,7 +43,7 @@ public class BundleTypeDropDownSelectItem extends SelectItem {
private BundleType selected = null;
public BundleTypeDropDownSelectItem(String name) {
- super(name, "Bundle Type");
+ super(name, CoreGUI.getMessages().view_bundle_bundleType());
buildDropDownMenu();
}
@@ -74,7 +74,9 @@ public class BundleTypeDropDownSelectItem extends SelectItem {
public void onSuccess(ArrayList<BundleType> result) {
if (result == null || result.size() == 0) {
setSelected(null);
- CoreGUI.getMessageCenter().notify(new Message("No bundle types
are supported", Severity.Error));
+ CoreGUI.getMessageCenter().notify(
+ new
Message(CoreGUI.getMessages().view_bundle_createWizard_noBundleTypesSupported(),
+ Severity.Error));
return;
}
@@ -96,7 +98,8 @@ public class BundleTypeDropDownSelectItem extends SelectItem {
}
public void onFailure(Throwable caught) {
- CoreGUI.getErrorHandler().handleError("No bundle types
available", caught);
+ CoreGUI.getErrorHandler().handleError(
+ CoreGUI.getMessages().view_bundle_createWizard_noBundleTypesAvail(),
caught);
}
});
}
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java
index e62b908..a5490bf 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java
@@ -82,7 +82,7 @@ public class BundleUploadDataStep extends AbstractWizardStep {
public void onFailure(Throwable caught) {
wizard.setAllBundleFilesStatus(null);
- CoreGUI.getErrorHandler().handleError("Cannot obtain bundle file
information from server", caught);
+
CoreGUI.getErrorHandler().handleError(MSG.view_bundle_createWizard_loadBundleFileFailure(),
caught);
}
});
@@ -100,8 +100,8 @@ public class BundleUploadDataStep extends AbstractWizardStep {
for (BundleFileUploadForm uploadForm : this.uploadForms) {
if (uploadForm.isUploadInProgress()) {
- handleUploadError("[" + uploadForm.getName()
- + "] Upload is in progress... This can take several minutes for
large files.", false);
+ handleUploadError("[" + uploadForm.getName() + "] " +
MSG.view_bundle_createWizard_uploadInProgress(),
+ false);
return false;
}
}
@@ -110,7 +110,7 @@ public class BundleUploadDataStep extends AbstractWizardStep {
}
public String getName() {
- return "Upload Bundle Files";
+ return MSG.view_bundle_createWizard_uploadStepName();
}
private boolean isFinished() {
@@ -125,8 +125,8 @@ public class BundleUploadDataStep extends AbstractWizardStep {
boolean needToUpload = false;
for (BundleFileUploadForm uploadForm : this.uploadForms) {
if (uploadForm.isUploadInProgress()) {
- handleUploadError("[" + uploadForm.getName()
- + "] Upload is in progress... This can take several minutes for
large files.", false);
+ handleUploadError("[" + uploadForm.getName() + "] " +
MSG.view_bundle_createWizard_uploadInProgress(),
+ false);
needToUpload = true;
} else if (uploadForm.getUploadResult() == null) {
needToUpload = true;
@@ -160,7 +160,7 @@ public class BundleUploadDataStep extends AbstractWizardStep {
}
if (noFilesNeedToBeUploaded) {
- HeaderLabel label = new HeaderLabel("No additional files need to be
uploaded for this bundle");
+ HeaderLabel label = new
HeaderLabel(MSG.view_bundle_createWizard_noAdditionalFilesNeeded());
label.setWidth100();
mainLayout.addMember(label);
uploadForms = null;
@@ -192,7 +192,7 @@ public class BundleUploadDataStep extends AbstractWizardStep {
uploadForm.addFormHandler(new DynamicFormHandler() {
public void onSubmitComplete(DynamicFormSubmitCompleteEvent event) {
String results = event.getResults();
- if (!results.contains("Failed to upload bundle file")) {
+ if (!results.contains("Failed to upload bundle file")) { //
this is looking for an error message coming from the server, its not i18n'ed
allFilesStatus.put(uploadForm.getName(), Boolean.TRUE);
} else {
allFilesStatus.put(uploadForm.getName(), Boolean.FALSE);
@@ -204,7 +204,8 @@ public class BundleUploadDataStep extends AbstractWizardStep {
uploadForm.addFormSubmitFailedHandler(new FormSubmitFailedHandler() {
public void onFormSubmitFailed(FormSubmitFailedEvent event) {
allFilesStatus.put(uploadForm.getName(), Boolean.FALSE);
- CoreGUI.getMessageCenter().notify(new Message("Failed to upload
file", Message.Severity.Error));
+ CoreGUI.getMessageCenter().notify(
+ new Message(MSG.view_bundle_createWizard_failedToUploadFile(),
Message.Severity.Error));
}
});
@@ -225,7 +226,8 @@ public class BundleUploadDataStep extends AbstractWizardStep {
if (sendToMessageCenter) {
CoreGUI.getMessageCenter().notify(
- new Message("Failed to upload bundle distribution file. " +
errorMessage, Severity.Error));
+ new Message(MSG.view_bundle_createWizard_failedToUploadDistroFile() +
": " + errorMessage,
+ Severity.Error));
}
}
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDistroFileStep.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDistroFileStep.java
index bccf37b..8c4b280 100644
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDistroFileStep.java
+++
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDistroFileStep.java
@@ -59,6 +59,10 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
private DynamicCallbackForm recipeForm;
private RadioGroupWithComponentsItem radioGroup;
+ private final String URL_OPTION = MSG.view_bundle_createWizard_urlOption();
+ private final String UPLOAD_OPTION = MSG.view_bundle_createWizard_uploadOption();
+ private final String RECIPE_OPTION = MSG.view_bundle_createWizard_recipeOption();
+
public BundleUploadDistroFileStep(AbstractBundleCreateWizard bundleCreationWizard) {
this.wizard = bundleCreationWizard;
}
@@ -66,13 +70,13 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
public Canvas getCanvas() {
if (mainCanvasForm == null) {
LinkedHashMap<String, DynamicForm> radioItems = new
LinkedHashMap<String, DynamicForm>();
- radioItems.put("URL", createUrlForm());
- radioItems.put("Upload", createUploadForm());
- radioItems.put("Recipe", createRecipeForm());
+ radioItems.put(URL_OPTION, createUrlForm());
+ radioItems.put(UPLOAD_OPTION, createUploadForm());
+ radioItems.put(RECIPE_OPTION, createRecipeForm());
mainCanvasForm = new DynamicForm();
- radioGroup = new
RadioGroupWithComponentsItem("bundleDistRadioGroup", "Bundle
Distribution", radioItems,
- mainCanvasForm);
+ radioGroup = new
RadioGroupWithComponentsItem("bundleDistRadioGroup", MSG
+ .view_bundle_createWizard_bundleDistro(), radioItems, mainCanvasForm);
radioGroup.setShowTitle(false);
mainCanvasForm.setItems(radioGroup);
@@ -91,24 +95,23 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
wizard.getView().hideMessage();
if (uploadDistroForm.isUploadInProgress()) {
- handleUploadError("Upload is in progress... This can take several
minutes for large distribution files.",
- false);
+ handleUploadError(MSG.view_bundle_createWizard_uploadInProgress(), false);
return false;
}
if (wizard.getBundleVersion() == null) {
String selected = radioGroup.getSelected();
- if ("URL".equals(selected)) {
+ if (URL_OPTION.equals(selected)) {
processUrl();
- } else if ("Upload".equals(selected)) {
+ } else if (UPLOAD_OPTION.equals(selected)) {
uploadDistroForm.submitForm();
// on certain errors the form may never be submitted, report these errors
outside submit handlers
handleUploadError(uploadDistroForm.getUploadError(), false);
- } else if ("Recipe".equals(selected)) {
+ } else if (RECIPE_OPTION.equals(selected)) {
processRecipe();
} else {
- wizard.getView().showMessage("You must choose one option for
creating your Bundle!");
+
wizard.getView().showMessage(MSG.view_bundle_createWizard_youMustChooseOne());
return false;
}
return false;
@@ -121,11 +124,11 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep
{
}
public String getName() {
- return "Provide A Bundle Distribution";
+ return MSG.view_bundle_createWizard_uploadStepName();
}
private DynamicForm createUrlForm() {
- urlTextItem = new TextItem("url", "URL");
+ urlTextItem = new TextItem("url", URL_OPTION);
urlTextItem.setRequired(false);
urlTextItem.setShowTitle(false);
urlTextItem.setWidth(400);
@@ -158,7 +161,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
recipeForm.setShowInlineErrors(false);
final LinkItem showUpload = new LinkItem("recipeUploadLink");
- showUpload.setValue("Click To Upload A Recipe File");
+ showUpload.setValue(MSG.view_bundle_createWizard_clickToUploadRecipe());
showUpload.setShowTitle(false);
final CanvasItem upload = new CanvasItem("recipeUploadCanvas");
@@ -204,7 +207,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
bundleServer.createBundleVersionViaURL(urlString, new
AsyncCallback<BundleVersion>() {
public void onSuccess(BundleVersion result) {
CoreGUI.getMessageCenter().notify(
- new Message("Created bundle [" + result.getName() + "]
version [" + result.getVersion() + "]",
+ new
Message(MSG.view_bundle_createWizard_createSuccessful(result.getName(),
result.getVersion()),
Message.Severity.Info));
wizard.setBundleVersion(result);
setButtonsDisableMode(false);
@@ -213,7 +216,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
public void onFailure(Throwable caught) {
wizard.getView().showMessage(caught.getMessage());
- CoreGUI.getErrorHandler().handleError("Failed to create
bundle", caught);
+
CoreGUI.getErrorHandler().handleError(MSG.view_bundle_createWizard_createFailure(),
caught);
wizard.setBundleVersion(null);
setButtonsDisableMode(false);
}
@@ -231,7 +234,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
public void onSuccess(PageList<BundleVersion> result) {
BundleVersion bv = result.get(0);
CoreGUI.getMessageCenter().notify(
- new Message("Created bundle [" + bv.getName() + "]
version [" + bv.getVersion() + "]",
+ new
Message(MSG.view_bundle_createWizard_createSuccessful(bv.getName(), bv.getVersion()),
Message.Severity.Info));
wizard.setBundleVersion(bv);
setButtonsDisableMode(false);
@@ -240,7 +243,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
public void onFailure(Throwable caught) {
wizard.getView().showMessage(caught.getMessage());
- CoreGUI.getErrorHandler().handleError("Failed to create
bundle", caught);
+
CoreGUI.getErrorHandler().handleError(MSG.view_bundle_createWizard_createFailure(),
caught);
wizard.setBundleVersion(null);
setButtonsDisableMode(false);
}
@@ -259,7 +262,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
bundleServer.createBundleVersionViaRecipe(this.wizard.getRecipe(), new
AsyncCallback<BundleVersion>() {
public void onSuccess(BundleVersion result) {
CoreGUI.getMessageCenter().notify(
- new Message("Created bundle [" + result.getName() + "]
version [" + result.getVersion() + "]",
+ new
Message(MSG.view_bundle_createWizard_createSuccessful(result.getName(),
result.getVersion()),
Message.Severity.Info));
wizard.setBundleVersion(result);
setButtonsDisableMode(false);
@@ -268,7 +271,7 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
public void onFailure(Throwable caught) {
wizard.getView().showMessage(caught.getMessage());
- CoreGUI.getErrorHandler().handleError("Failed to create
bundle", caught);
+
CoreGUI.getErrorHandler().handleError(MSG.view_bundle_createWizard_createFailure(),
caught);
wizard.setBundleVersion(null);
wizard.setRecipe("");
setButtonsDisableMode(false);
@@ -290,7 +293,8 @@ public class BundleUploadDistroFileStep extends AbstractWizardStep {
if (sendToMessageCenter) {
CoreGUI.getMessageCenter().notify(
- new Message("Failed to upload bundle distribution file. " +
errorMessage, Severity.Error));
+ new Message(MSG.view_bundle_createWizard_failedToUploadDistroFile() +
": " + errorMessage,
+ Severity.Error));
}
}
}