KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > ui > jres > IAddVMDialogRequestor


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.debug.ui.jres;
12
13
14 import org.eclipse.jdt.launching.IVMInstall;
15
16 /**
17  * This interface is implemented by clients of the <code>AddVMDialog</code>.
18  */

19 public interface IAddVMDialogRequestor {
20
21     /**
22      * Reply whether or not a new VM of the specified name would
23      * constitute a duplicate.
24      *
25      * @param name the name of a potential new VM
26      * @return whether a new VM with the specified name would be a duplicate VM
27      */

28     public boolean isDuplicateName(String JavaDoc name);
29     
30     /**
31      * Notification that a VM has been added from the <code>AddVMDialog</code>.
32      *
33      * @param vm the added vm
34      */

35     public void vmAdded(IVMInstall vm);
36     
37 }
38
Popular Tags