1 12 package org.eclipse.debug.internal.ui.stringsubstitution; 13 14 import org.eclipse.jface.dialogs.InputDialog; 15 import org.eclipse.jface.window.Window; 16 17 20 public class StringPrompt extends PromptingResolver { 21 22 26 public void prompt() { 27 InputDialog dialog = new InputDialog(null, StringSubstitutionMessages.StringPromptExpander_0, dialogMessage, defaultValue == null ? lastValue : defaultValue, null); 28 int dialogResult = dialog.open(); 29 if (dialogResult == Window.OK) { 30 dialogResultString = dialog.getValue(); 31 } 32 } 33 34 } 35 | Popular Tags |