if (selection instanceof ITextSelection) { final ITextSelection textSelection= (ITextSelection) selection; AddImportOnSelectionAction.SelectTypeQuery query= new SelectTypeQuery(getShell()); AddImportsOperation op= new AddImportsOperation(cu, textSelection.getOffset(), textSelection.getLength(), query, false); IEditingSupport helper= createViewerHelper(textSelection, query);
@Override public boolean ownsFocusShell() { return query.isShowing(); }
if (selection instanceof ITextSelection) { final ITextSelection textSelection= (ITextSelection) selection; AddImportOnSelectionAction.SelectTypeQuery query= new SelectTypeQuery(getShell()); AddImportsOperation op= new AddImportsOperation(cu, textSelection.getOffset(), textSelection.getLength(), query, false); IEditingSupport helper= createViewerHelper(textSelection, query);
if (selection instanceof ITextSelection) { final ITextSelection textSelection= (ITextSelection) selection; AddImportOnSelectionAction.SelectTypeQuery query= new SelectTypeQuery(getShell()); AddImportsOperation op= new AddImportsOperation(cu, textSelection.getOffset(), textSelection.getLength(), query, false); IEditingSupport helper= createViewerHelper(textSelection, query);
@Override public boolean ownsFocusShell() { return query.isShowing(); }
/** * Creates a import query that shows a dialog for conflics. * * @param shell the parent shell * @return the created mport query */ public static IChooseImportQuery newDialogQuery(Shell shell) { return new SelectTypeQuery(shell); }
/** * Creates a import query that shows a dialog for conflics. * * @param shell the parent shell * @return the created mport query */ public static IChooseImportQuery newDialogQuery(Shell shell) { return new SelectTypeQuery(shell); }