Commit 5e1c383e authored by tu's avatar tu

fixed bug metadataButton

parent b260b07c
Pipeline #7503 passed with stage
in 4 minutes and 8 seconds
......@@ -298,6 +298,8 @@ public class RwViewButtonComposite extends Composite {
public void checkCreateSpeech() {
if (dirFlag == false && indirFlag == false && freeIndirFlag == false && repFlag == false
&& buttonRwTypeAmbig.getEnabled() == true) {
buttonEditMetadata.setEnabled(true);
metadataFlag = false;
JFrame frame = new JFrame("Information");
JOptionPane.showMessageDialog(frame, "Please choose a type first.", "Attention",
JOptionPane.WARNING_MESSAGE);
......@@ -318,6 +320,8 @@ public class RwViewButtonComposite extends Composite {
public void checkCreateThought() {
if (dirFlag == false && indirFlag == false && freeIndirFlag == false && repFlag == false
&& buttonRwTypeAmbig.getEnabled() == true) {
buttonEditMetadata.setEnabled(true);
metadataFlag = false;
JFrame frame = new JFrame("Information");
JOptionPane.showMessageDialog(frame, "Please choose a type first.", "Attention",
JOptionPane.WARNING_MESSAGE);
......@@ -338,6 +342,8 @@ public class RwViewButtonComposite extends Composite {
public void checkCreateWriting() {
if (dirFlag == false && indirFlag == false && freeIndirFlag == false && repFlag == false
&& buttonRwTypeAmbig.getEnabled() == true) {
buttonEditMetadata.setEnabled(true);
metadataFlag = false;
JFrame frame = new JFrame("Information");
JOptionPane.showMessageDialog(frame, "Please choose a type first.", "Attention",
JOptionPane.WARNING_MESSAGE);
......@@ -358,6 +364,8 @@ public class RwViewButtonComposite extends Composite {
public void checkCreateMediumAmbig() {
if (dirFlag == false && indirFlag == false && freeIndirFlag == false && repFlag == false
&& buttonRwTypeAmbig.getEnabled() == true) {
buttonEditMetadata.setEnabled(true);
metadataFlag = false;
JFrame frame = new JFrame("Information");
JOptionPane.showMessageDialog(frame, "Please choose a type first.", "Attention",
JOptionPane.WARNING_MESSAGE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment