Package org.eclipse.ui.forms

Examples of org.eclipse.ui.forms.IMessageManager.removeMessage()


        }
    }

    private void reloadRepos() {
        final IMessageManager messages = getManagedForm().getMessageManager();
        messages.removeMessage(MESSAGE_KEY, viewer.getControl());
        allRepos.clear();

        try {
            allRepos.addAll(Central.getWorkspace().getPlugins(Repository.class));
        } catch (Exception e) {
View Full Code Here


                    SWTConcurrencyUtil.execForControl(viewer.getControl(), true, new Runnable() {
                        @Override
                        public void run() {
                            allRepos.clear();
                            allRepos.addAll(ws.getPlugins(Repository.class));
                            messages.removeMessage(MESSAGE_KEY, viewer.getControl());
                        }
                    });
                    return null;
                }
            });
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        if (button1.getSelection()) {
          mmng.addMessage("saveError", "Save Error", null,
              IMessageProvider.ERROR);
        } else {
          mmng.removeMessage("saveError");
        }
      }
    });
    final Button button2 = toolkit.createButton(form.getBody(),
        "Add static message", SWT.CHECK);
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        if (button2.getSelection()) {
          mmng.addMessage("info", "Secondary info", null,
              IMessageProvider.NONE);
        } else {
          mmng.removeMessage("info");
        }
      }
    });
    final Button button3 = toolkit.createButton(form.getBody(),
        "Auto update", SWT.CHECK);
View Full Code Here

    if(show) {
      String msg = UIPlugin.getLocalString(msgKey);
      msgManager.addMessage(msgKey, msg, null, IMessageProvider.ERROR);
    }
    else
      msgManager.removeMessage(msgKey);
    msgManager.update();
  }

  void showSyntaxError(boolean show) {
    showGeneralError(show, "_UI_Syntax_Error");
View Full Code Here

        if(control == null)
          msgManager.addMessage(key, syntax, null, syntaxSeverity);
        else
          msgManager.addMessage(DEFAULT_MESSAGE_KEY, syntax, null, syntaxSeverity, control);
      else if(control != null)
        msgManager.removeMessage(DEFAULT_MESSAGE_KEY, control);
      return syntaxSeverity;
    }

    int validateOwnerName(String name, String key, Control control) {
      IMessageManager msgManager = getManagedForm().getMessageManager();
View Full Code Here

        if(control == null)
          msgManager.addMessage(key, syntax, null, syntaxSeverity);
        else
          msgManager.addMessage(DEFAULT_MESSAGE_KEY, syntax, null, syntaxSeverity, control);
      else if(control != null)
        msgManager.removeMessage(DEFAULT_MESSAGE_KEY, control);
      return syntaxSeverity;
    }

    int validateVersion(String version, Control control) {
      IMessageManager msgManager = getManagedForm().getMessageManager();
View Full Code Here

        return IMessageProvider.ERROR;
      }
      int result = IMessageProvider.NONE;
      try {
        Version.fromString(version);
        msgManager.removeMessage(DEFAULT_MESSAGE_KEY, control);
      }
      catch(IllegalArgumentException e) {
        msgManager.addMessage(DEFAULT_MESSAGE_KEY, e.getMessage(), null, IMessageProvider.ERROR, control);
        result = IMessageProvider.ERROR;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.