Salome HOME
Tiles is added
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / ImportDocumentAction.java
index 32ffa8c25c8f465fdbf5f8b991a856a2655bf373..beabeaaf6baea04979d66df29598ed0487903d54 100644 (file)
@@ -147,7 +147,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                                Document slot = getDocumentService().selectDocument(fileref,
                                                new Revision().toString());
                                if (slot == null) {
-                                       setErrorCode("reference.undefined");
+                                       setErrorCode("message.error.reference.undefined");
                                        
                                        setToolProperty("none");
                                        initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
@@ -155,7 +155,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                                        return ERROR;
                                } else {
                                        if (!slot.isUndefined()) {
-                                               setErrorCode("reference.duplicate");
+                                               setErrorCode("message.error.reference.duplicate");
                                                
                                                setToolProperty("none");
                                                initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
@@ -178,7 +178,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                                                state = ProgressState.inCHECK;
                                        docver = version.toString();
                                } catch (ParseException e) {
-                                       setErrorCode("format.version");
+                                       setErrorCode("message.error.format.version");
                                        
                                        setToolProperty("none");
                                        initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
@@ -195,7 +195,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                                try {
                                        check.parse(date);
                                } catch (ParseException e) {
-                                       setErrorCode("format.date");
+                                       setErrorCode("message.error.format.date");
                                        
                                        setToolProperty("none");
                                        initializationFullScreenContext(_menuProperty, _titleProperty, _editDisabledProperty, _toolProperty, _leftMenuProperty);
@@ -238,7 +238,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                if (action == ToDo.cancel)
                        return "cancel";
                if (doctype == 0) {
-                       setErrorCode("import.type");
+                       setErrorCode("message.error.import.type");
                        
                        setToolProperty("none");
                        setLeftMenuProperty("study");
@@ -330,10 +330,10 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                        return SUCCESS;
                } catch (FileNotFoundException error) {
                        LOG.error("Reason:", error);
-                       setErrorCode("import.file");
+                       setErrorCode("message.error.import.file");
                } catch (Exception error) {
                        LOG.error("Reason:", error);
-                       setErrorCode("internal");
+                       setErrorCode("message.error.internal");
                }
                
                setToolProperty("none");
@@ -372,45 +372,45 @@ public class ImportDocumentAction extends UploadBaseNextAction {
                return docver;
        }
 
-       public void setDocumentDate(String date) {
+       public void setDocumentDate(final String date) {
                // -----------------------------------------
                this.date = date;
        }
 
-       public void setDocumentName(String name) {
+       public void setDocumentName(final String name) {
                // -----------------------------------------
                this.docname = name; // Name entered by the user if enabled
        }
 
-       public void setDocumentTitle(String name) { // Called even if DocumentName is enabled
+       public void setDocumentTitle(final String name) { // Called even if DocumentName is enabled
        // -----------------------------------------
                if (this.docname == null)
                        this.docname = name;
        }
 
-       public void setDocumentType(String value) {
+       public void setDocumentType(final String value) {
                // ------------------------------------------
                this.doctype = Integer.valueOf(value);
        }
 
-       public void setDefaultDocumentState(String state) { // Called even if DocumentState is enabled
+       public void setDefaultDocumentState(final String state) { // Called even if DocumentState is enabled
        // --------------------------------------------------
                if (this.state == null)
                        this.state = ProgressState.valueOf(state);
        }
 
-       public void setDefaultDocumentType(String value) { // Called even if DocumentType is enabled
+       public void setDefaultDocumentType(final String value) { // Called even if DocumentType is enabled
        // --------------------------------------------------
                if (this.doctype == 0)
                        this.doctype = Integer.valueOf(value);
        }
 
-       public void setReference(String value) {
+       public void setReference(final String value) {
                // ---------------------------------------
                this.docref = value;
        }
 
-       public void setVersion(String value) {
+       public void setVersion(final String value) {
                // -------------------------------------
                this.docver = value;
        }
@@ -430,7 +430,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * @param projectSettingsService
         *            project settings service
         */
-       public void setProjectSettings(ProjectSettingsService projectSettingsService) {
+       public void setProjectSettings(final ProjectSettingsService projectSettingsService) {
                _projectSettingsService = projectSettingsService;
        }
 
@@ -449,7 +449,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * @param publicationService
         *            the publicationService to set
         */
-       public void setPublicationService(PublicationService publicationService) {
+       public void setPublicationService(final PublicationService publicationService) {
                _publicationService = publicationService;
        }
 
@@ -465,7 +465,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the stepService.
         * @param stepService the stepService to set
         */
-       public void setStepService(StepService stepService) {
+       public void setStepService(final StepService stepService) {
                _stepService = stepService;
        }
 
@@ -481,7 +481,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the documentService.
         * @param documentService the documentService to set
         */
-       public void setDocumentService(DocumentService documentService) {
+       public void setDocumentService(final DocumentService documentService) {
                _documentService = documentService;
        }
 
@@ -497,7 +497,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the repositoryService.
         * @param repositoryService the repositoryService to set
         */
-       public void setRepositoryService(RepositoryService repositoryService) {
+       public void setRepositoryService(final RepositoryService repositoryService) {
                _repositoryService = repositoryService;
        }
 
@@ -513,7 +513,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the documentTypeService.
         * @param documentTypeService the documentTypeService to set
         */
-       public void setDocumentTypeService(DocumentTypeService documentTypeService) {
+       public void setDocumentTypeService(final DocumentTypeService documentTypeService) {
                _documentTypeService = documentTypeService;
        }
        
@@ -529,7 +529,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the menuProperty.
         * @param menuProperty the menuProperty to set
         */
-       public void setMenuProperty(String menuProperty) {
+       public void setMenuProperty(final String menuProperty) {
                this._menuProperty = menuProperty;
        }
        
@@ -545,7 +545,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the _titleProperty.
         * @param _titleProperty the titleProperty to set
         */
-       public void setTitleProperty(String titleProperty) {
+       public void setTitleProperty(final String titleProperty) {
                _titleProperty = titleProperty;
        }
 
@@ -561,7 +561,7 @@ public class ImportDocumentAction extends UploadBaseNextAction {
         * Set the editDisabledProperty.
         * @param editDisabledProperty the editDisabledProperty to set
         */
-       public final void setEditDisabledProperty(String editDisabledProperty) {
+       public final void setEditDisabledProperty(final String editDisabledProperty) {
                _editDisabledProperty = editDisabledProperty;
        }