Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.IInputValidator


      _publisherOptionsModel.remove((PublisherOption) _tablePublisherOptions.getTable().getSelection()[0].getData());
    }
  }

  protected void handleAddPublisherOption() {
    InputDialog dialog = new InputDialog(getSite().getShell(), "Add publisher option", "Please specify the publiser option name:", null, new IInputValidator() {

      public String isValid(String newText) {
        if (newText == null || newText.trim().equals("")) {
          return "";
        }
View Full Code Here


        {
            @Override
            public void widgetSelected(SelectionEvent e)
            {
                InputDialog dialog = new InputDialog(getShell(), "Add Resource",
                    "Enter resource name", "", new IInputValidator()
                    {
                        public String isValid(String newText)
                        {
                            String error = null;
                            if (newText == null || newText.length() == 0)
View Full Code Here

  public void run(IAction action) {
    if (this.node==null) {
      return;
    }
        InputDialog id = new InputDialog(shell, "Change Node Name", "Enter new name for node '" + node.getDescription()
                + "':", node.getLabel(), new IInputValidator() {
         
          @Override
          public String isValid(String newText) {
            if (newText!=null && newText.trim().length()>0 && newText.trim().equals(newText)) {
              return null;
View Full Code Here

        // open input dialog

        final InputDialog nameDialog = new InputDialog(shell, "Saving coverage results",
                "Enter the name for saving coverage results", statName.toString(),
                new IInputValidator() {

                    @Override
                    public String isValid(final String newText) {

                        final String[] names = dir.list();
View Full Code Here

    }

    private InputDialog getModuleInput(final String name, final String mesg) {
        return new InputDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                .getShell(), name, mesg, "", new IInputValidator() {

            public IValidator internalV = new ModuleNameValidator();

            @Override
            public String isValid(final String newText) {
View Full Code Here

    @Override
    public Object execute(final ExecutionEvent event) throws ExecutionException {

        final InputDialog dialog = new InputDialog(PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getShell(), "Add user-defined refactoring",
                "Please type callback module name!", "", new IInputValidator() {

                    public IValidator internalV = new ModuleNameValidator();

                    @Override
                    public String isValid(final String newText) {
View Full Code Here

     * @param search
     *      the Search to rename
     */
    protected void renameSearch( final ISearch search )
    {
        IInputValidator validator = new IInputValidator()
        {
            public String isValid( String newName )
            {
                if ( search.getName().equals( newName ) )
                    return null;
View Full Code Here

     * @param bookmark
     *      the Bookmark to rename
     */
    protected void renameBookmark( final IBookmark bookmark )
    {
        IInputValidator validator = new IInputValidator()
        {
            public String isValid( String newName )
            {
                if ( bookmark.getName().equals( newName ) )
                    return null;
View Full Code Here

     * @param connection
     *      the Connection to rename
     */
    private void renameConnection( final Connection connection )
    {
        IInputValidator validator = new IInputValidator()
        {
            public String isValid( String newName )
            {
                if ( connection.getName().equals( newName ) )
                {
View Full Code Here

     * @param connectionFolder
     *      the ConnectionFolder to rename
     */
    private void renameConnectionFolder( final ConnectionFolder connectionFolder )
    {
        IInputValidator validator = new IInputValidator()
        {
            public String isValid( String newName )
            {
                if ( connectionFolder.getName().equals( newName ) )
                {
View Full Code Here

TOP

Related Classes of org.eclipse.jface.dialogs.IInputValidator

Copyright © 2018 www.massapicom. 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.