a239bc37bc23ae0e2eedcc9fb83551beb671d42f
java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/adminconsole/ImagesListComposite.java
| ... | ... | @@ -299,22 +299,27 @@ public class ImagesListComposite extends Composite { |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | protected void callResizingService(ImageResizingTaskDTO resizingTask, ImageDTO originalImage) { |
| 302 | - sailingService.resizeImage(resizingTask, new AsyncCallback<ImageDTO[]>() { |
|
| 303 | - @Override |
|
| 304 | - public void onFailure(Throwable caught) { |
|
| 305 | - Notification.notify(stringMessages.resizeUnsuccessfull(), NotificationType.ERROR); |
|
| 306 | - } |
|
| 302 | + if (resizingTask.getResizingTask().size() != 0) { |
|
| 303 | + sailingService.resizeImage(resizingTask, new AsyncCallback<ImageDTO[]>() { |
|
| 304 | + @Override |
|
| 305 | + public void onFailure(Throwable caught) { |
|
| 306 | + Notification.notify(stringMessages.resizeUnsuccessfull(), NotificationType.ERROR); |
|
| 307 | + } |
|
| 307 | 308 | |
| 308 | - @Override |
|
| 309 | - public void onSuccess(ImageDTO[] result) { |
|
| 310 | - for (int i = 0; i < result.length; i++) { |
|
| 311 | - imageListDataProvider.getList().add(result[i]); |
|
| 309 | + @Override |
|
| 310 | + public void onSuccess(ImageDTO[] result) { |
|
| 311 | + for (int i = 0; i < result.length; i++) { |
|
| 312 | + imageListDataProvider.getList().add(result[i]); |
|
| 313 | + } |
|
| 314 | + imageListDataProvider.getList().remove(originalImage); |
|
| 315 | + updateTableVisisbilty(); |
|
| 316 | + Notification.notify(stringMessages.resizeSuccessfull(), NotificationType.SUCCESS); |
|
| 312 | 317 | } |
| 313 | - imageListDataProvider.getList().remove(originalImage); |
|
| 314 | - updateTableVisisbilty(); |
|
| 315 | - Notification.notify(stringMessages.resizeSuccessfull(), NotificationType.SUCCESS); |
|
| 316 | - } |
|
| 317 | - }); |
|
| 318 | + }); |
|
| 319 | + } else { |
|
| 320 | + imageListDataProvider.getList().remove(originalImage); |
|
| 321 | + imageListDataProvider.getList().add(resizingTask.getImage()); |
|
| 322 | + } |
|
| 318 | 323 | } |
| 319 | 324 | |
| 320 | 325 | private void updateTableVisisbilty() { |
java/com.sap.sse.gwt/src/com/sap/sse/gwt/client/controls/listedit/ListEditorComposite.java
| ... | ... | @@ -6,8 +6,6 @@ import java.util.List; |
| 6 | 6 | import com.google.gwt.event.logical.shared.ValueChangeEvent; |
| 7 | 7 | import com.google.gwt.event.logical.shared.ValueChangeHandler; |
| 8 | 8 | import com.google.gwt.event.shared.HandlerRegistration; |
| 9 | -import com.google.gwt.resources.client.ClientBundle; |
|
| 10 | -import com.google.gwt.resources.client.CssResource; |
|
| 11 | 9 | import com.google.gwt.user.client.ui.Composite; |
| 12 | 10 | import com.google.gwt.user.client.ui.HasValue; |
| 13 | 11 | import com.sap.sse.common.Util; |
wiki/info/landscape/typical-development-scenarios.md
| ... | ... | @@ -14,6 +14,7 @@ We distinguish two cases: adding a 3rd-party bundle to the target platform and a |
| 14 | 14 | * Go to directory 'java/com.sap.sailing.targetplatform/scripts' |
| 15 | 15 | * Rebuild the base target platform by running the script 'createLocalBaseP2repository.sh' |
| 16 | 16 | * Generate the target definition for this local repository by running the script 'createLocalTargetDef.sh' |
| 17 | + * Currently this scripts work for the cygwin shell and the git bash, if the path to your files in the target definition is incorrect, this may be the reason. |
|
| 17 | 18 | * Test the new overall target platform |
| 18 | 19 | * by setting the race-analysis-p2-local.target as target platform in the IDE |
| 19 | 20 | * by running the local maven build via ''buildAndUpdateProduct.sh -v build'' (the ''-v'' switch builds and uses the local p2 repository) |