Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021 error handling t2p #122

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,16 @@ public NameModel(CreationMap creationMap)
GraphConstants.setEditable(map, true);
GraphConstants.setMoveable(map, true);
GraphConstants.setSizeable(map, false);
GraphConstants.setAutoSize(map, true);
if(creationMap.getName().length() < 10){
//GraphConstants.setAutoSize(map, true);
GraphConstants.setSize(map, new Dimension(40, 24));
}
else{
GraphConstants.setSize(map, new Dimension(80, 24));
}
//GraphConstants.setAutoSize(map, true);
GraphConstants.setInset(map, 2);

setAttributes(map);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ protected void done() {
showErrorPopUp("T2PUI.400Error.Title", "T2PUI.400Error.Text");
break;
case 500:
showErrorPopUp("T2PUI.500Error.Title", "T2PUI.GeneralError.Text");
showErrorPopUp("T2PUI.500Error.Title", "T2PUI.500Error.Text");
break;
case 503:
showErrorPopUp("T2PUI.503Error.Title", "T2PUI.503Error.Text");
Expand Down
6 changes: 3 additions & 3 deletions WoPeD-GUI/src/main/resources/Messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1109,12 +1109,12 @@ T2PUI.NoText.Title = Empty editor
T2PUI.NoText.Text = The text field is empty.
T2PUI.NoFile.Title = No Selection
T2PUI.NoFile.Text = No file was selected.
T2PUI.GeneralError.Title = Error
T2PUI.GeneralError.Text = An error occurred, please try again later.
T2PUI.GeneralError.Title = General Error
T2PUI.GeneralError.Text = An error has occurred. This happens when the entered English sentence has not been interpreted correctly. \n Try to rearrange the sentence, make sure that this sentence is grammatically correct in English and try again.\n Otherwise, please try again later.
T2PUI.400Error.Title = Invalid Input
T2PUI.400Error.Text = The text contains invalid characters.
T2PUI.500Error.Title = URL Error
T2PUI.500Error.Text = Webservice could not be contacted under URL %0.\n
T2PUI.500Error.Text = Webservice could not be contacted under URL woped.dhbw-karlsruhe.de:8081/t2p.\n
T2PUI.503Error.Title = Service Unavailable
T2PUI.503Error.Text = Service is currently unavailable. Please try again later.
T2PUI.Webservice.Settings = Check your setting under "Options & Help" -> "Settings" -> "NLP Tools"
Expand Down
6 changes: 3 additions & 3 deletions WoPeD-GUI/src/main/resources/Messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -660,12 +660,12 @@ T2PUI.NoText.Title = Leeres Textfeld
T2PUI.NoText.Text = Das Textfeld ist leer.
T2PUI.NoFile.Title = Keine Auswahl
T2PUI.NoFile.Text = Keine Datei ausgew\u00E4hlt.
T2PUI.GeneralError.Title = Fehler
T2PUI.GeneralError.Text = Versuchen Sie es sp\u00E4ter erneut.
T2PUI.GeneralError.Title = Allgemeiner Fehler
T2PUI.GeneralError.Text = Ein Fehler ist aufgetreten. Dies passiert, wenn der eingegeben englische Satz nicht richtig interpretiert wurde. Versuchen Sie den Satz umzustellen, \n stellen Sie sicher, dass dieser Satz einen grammatikalisch richtigen englischen Satz darstellt und probieren Sie es erneut. \n Ansonsten probieren Sie es zu einem sp\u00E4ter Zeitpunkt erneut.
T2PUI.400Error.Title = Ung\u00FCltige Eingabe
T2PUI.400Error.Text = Der eingegebene Text enth\u00E4lt unerlaubte Zeichen.
T2PUI.500Error.Title = URL Fehler
T2PUI.500Error.Text = Webservice nicht gefunden unter URL %0.
T2PUI.500Error.Text = Webservice nicht gefunden unter URL woped.dhbw-karlsruhe.de:8081/t2p.
T2PUI.503Error.Title = Service nicht verf\u00FCgbar
T2PUI.503Error.Text = Service ist derzeit nicht verf\u00FCgbar. Bitte versuchen Sie es sp\u00E4ter erneut.
T2PUI.Webservice.Settings = Pr\u00FCe die Einstellungen unter "Optionen & Hilfe" -> "Einstellungen" -> "NLP Tools"
Expand Down