Examples of IInputValidator


Examples of org.eclipse.jface.dialogs.IInputValidator

     * @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

Examples of org.eclipse.jface.dialogs.IInputValidator

     * @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

Examples of org.eclipse.jface.dialogs.IInputValidator

 

  public void setExternalData(Result r) throws SQLException, Exception{
    this.r = r;
    done = false;
    IInputValidator validator = new IInputValidator() {
            public String isValid(String newText) {
              return null;
            }
          };
   
View Full Code Here

Examples of org.eclipse.jface.dialogs.IInputValidator

     * @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

Examples of org.eclipse.jface.dialogs.IInputValidator

     * @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

Examples of org.eclipse.jface.dialogs.IInputValidator

            StructuredSelection selection = ( StructuredSelection ) view.getViewer().getSelection();
            final LdapServer server = ( LdapServer ) selection.getFirstElement();

            if ( server != null )
            {
                IInputValidator validator = new IInputValidator()
                {
                    public String isValid( String newName )
                    {
                        if ( server.getName().equals( newName ) )
                        {
View Full Code Here

Examples of org.eclipse.jface.dialogs.IInputValidator

     * @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

Examples of org.eclipse.jface.dialogs.IInputValidator

     * @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

Examples of org.eclipse.jface.dialogs.IInputValidator

            StructuredSelection selection = ( StructuredSelection ) view.getViewer().getSelection();
            final Server server = ( Server ) selection.getFirstElement();

            if ( server != null )
            {
                IInputValidator validator = new IInputValidator()
                {
                    public String isValid( String newName )
                    {
                        if ( server.getName().equals( newName ) )
                        {
View Full Code Here

Examples of org.eclipse.jface.dialogs.IInputValidator

    IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
    Shell shell = window.getShell();

    InputDialog dialog = new InputDialog(shell, "New vertex",
        "Please enter a vertex identifier", initialValue,
        new IInputValidator() {

          @Override
          public String isValid(String vertexId) {
            if (vertexId.isEmpty()) {
              return "";
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.