'use strict' ; import { MessageItem } from 'vscode' ; import { localize } from './localize' ; export namespace DialogMessage { export const yes = { title : localize ( 'tomcatExt.yes' , 'Yes' ) } ; export const no = { title : localize ( 'tomcatExt.no' , 'No' ) , isCloseAffordance : true } ; export const cancel = { title : localize ( 'tomcatExt.cancel' , 'Cancel' ) , isCloseAffordance : true } ; export const never = { title : localize ( 'tomcatExt.never' , 'Never' ) } ; export const moreInfo = { title : localize ( 'tomcatExt.moreInfo' , 'More Info' ) } ; export const selectServer = localize ( 'tomcatExt.selectServer' , 'Select Tomcat Server' ) ; export const addServer = localize ( 'tomcatExt.addServer' , 'Add New Server' ) ; export const noServer = localize ( 'tomcatExt.noServer' , 'There are no Tomcat Servers.' ) ; export const noPackage = localize ( 'tomcatExt.noPackage' , 'The selected package is not under current workspace.' ) ; export const noServerConfig = localize ( 'tomcatExt.noServerConfig' , 'The Tomcat Server is broken. It does not have server.xml' ) ; export const selectWarPackage = localize ( 'tomcatExt.selectWarPackage' , 'Select War Package' ) ; export const selectDirectory = localize ( 'tomcatExt.selectDirectory' , 'Select Tomcat Directory' ) ; export const deleteConfirm = localize ( 'tomcatExt.deleteConfirm' , 'Are you sure you want to delete this server?' ) ; export const serverRunning = localize ( 'tomcatExt.serverRunning' , 'This Tomcat Server is already started.' ) ; export const serverStopped = localize ( 'tomcatExt.serverStopped' , 'This Tomcat Server was stopped.' ) ; export const startServer = localize ( 'tomcatExt.startServer' , 'The Tomcat server needs to be started before browsing. Would you like to start it now?' ) ; export const invalidWebappFolder = localize ( 'tomcatExt.invalidWebappFolder' , 'The folder is not a valid web app to run on Tomcat Server.' ) ; export const invalidWarFile = localize ( 'tomcatExt.invalidWarFile' , 'Please select a .war file.' ) ; export const pickFolderToGenerateWar = localize ( 'tomcatExt.pickFolderToGenerateWar' , 'Please select the folder(s) you want to generate war package' ) ; export function getServerPortChangeErrorMessage ( serverName , serverPort ) { return localize ( 'tomcatExt.serverPortChangeError' , 'Changing the server port of a running server {0} will cause it unable to shutdown. Would you like to change it back to {1}?' , serverName , serverPort ) ; } export function getConfigChangedMessage ( serverName ) { return localize ( 'tomcatExt.configChanged' , 'server.xml of running server {0} has been changed. Would you like to restart it?' , serverName ) ; } export function getWarGeneratedInfo ( count ) { return localize ( 'tomcatExt.warGenerated' , '{0} war package(s) was generated.' , count ) ; } }