|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2006, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2006, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 14-19
Link Here
|
| 14 |
|
14 |
|
| 15 |
import org.eclipse.core.commands.IHandler; |
15 |
import org.eclipse.core.commands.IHandler; |
| 16 |
|
16 |
|
|
|
17 |
import org.eclipse.jface.dialogs.IDialogSettings; |
| 18 |
|
| 17 |
import org.eclipse.jface.text.IDocument; |
19 |
import org.eclipse.jface.text.IDocument; |
| 18 |
import org.eclipse.jface.text.IInformationControlCreator; |
20 |
import org.eclipse.jface.text.IInformationControlCreator; |
| 19 |
import org.eclipse.jface.text.ITextViewer; |
21 |
import org.eclipse.jface.text.ITextViewer; |
|
Lines 192-197
Link Here
|
| 192 |
} |
194 |
} |
| 193 |
|
195 |
|
| 194 |
/** |
196 |
/** |
|
|
197 |
* Tells this assistant to open the proposal popup with the size |
| 198 |
* contained in the given dialog settings and to store the control's last valid size in the |
| 199 |
* given dialog settings. |
| 200 |
* <p> |
| 201 |
* Note: This API is only valid if the information control implements |
| 202 |
* {@link org.eclipse.jface.text.IInformationControlExtension3}. Not following this restriction |
| 203 |
* will later result in an {@link UnsupportedOperationException}. |
| 204 |
* </p> |
| 205 |
* <p> |
| 206 |
* The constants used to store the values are: |
| 207 |
* <ul> |
| 208 |
* <li>{@link ContentAssistant#STORE_SIZE_X}</li> |
| 209 |
* <li>{@link ContentAssistant#STORE_SIZE_Y}</li> |
| 210 |
* </ul> |
| 211 |
* </p> |
| 212 |
* |
| 213 |
* @param dialogSettings the dialog settings |
| 214 |
* @since 3.7 |
| 215 |
*/ |
| 216 |
public void setRestoreCompletionProposalSize(IDialogSettings dialogSettings) { |
| 217 |
fQuickAssistAssistantImpl.setRestoreCompletionProposalSize(dialogSettings); |
| 218 |
} |
| 219 |
|
| 220 |
/** |
| 195 |
* Callback to signal this quick assist assistant that the presentation of the |
221 |
* Callback to signal this quick assist assistant that the presentation of the |
| 196 |
* possible completions has been stopped. |
222 |
* possible completions has been stopped. |
| 197 |
*/ |
223 |
*/ |