本文整理匯總了Java中org.eclipse.jface.internal.text.html.BrowserInput類的典型用法代碼示例。如果您正苦於以下問題:Java BrowserInput類的具體用法?Java BrowserInput怎麽用?Java BrowserInput使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BrowserInput類屬於org.eclipse.jface.internal.text.html包,在下文中一共展示了BrowserInput類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setInput
import org.eclipse.jface.internal.text.html.BrowserInput; //導入依賴的package包/類
/**
* Set input to the given input.
*
* @param input the input for the view
* @since 3.4
*/
public void setInput(BrowserInput input) {
fCurrent= input;
Object inputElement= input.getInputElement();
if (inputElement instanceof IJavaElement) {
setInput((IJavaElement) inputElement);
} else if (inputElement instanceof URL) {
fBrowser.setUrl(((URL) inputElement).toExternalForm());
if (fInputSelectionProvider != null)
fInputSelectionProvider.setSelection(new StructuredSelection(inputElement));
}
fForthAction.update();
fBackAction.update();
}
示例2: update
import org.eclipse.jface.internal.text.html.BrowserInput; //導入依賴的package包/類
public void update() {
BrowserInformationControlInput current = fInfoControl.getInput();
if (current != null && current.getPrevious() != null) {
BrowserInput previous = current.getPrevious();
setToolTipText(MessageFormat.format(XtextUIMessages.XtextBrowserInformationControlInput_BackTo,
new Object[] { previous.getInputName() }));
setEnabled(true);
} else {
setToolTipText(XtextUIMessages.XtextBrowserInformationControlInput_Back);
setEnabled(false);
}
}
示例3: update
import org.eclipse.jface.internal.text.html.BrowserInput; //導入依賴的package包/類
public void update() {
if (fCurrent != null && fCurrent.getNext() != null) {
BrowserInput element= fCurrent.getNext();
setToolTipText(Messages.format(InfoViewMessages.JavadocView_action_forward_enabledTooltip, BasicElementLabels.getJavaElementName(element.getInputName())));
setEnabled(true);
} else {
setToolTipText(InfoViewMessages.JavadocView_action_forward_disabledTooltip);
setEnabled(false);
}
}
示例4: update
import org.eclipse.jface.internal.text.html.BrowserInput; //導入依賴的package包/類
public void update() {
BrowserInformationControlInput current= fInfoControl.getInput();
if (current != null && current.getPrevious() != null) {
BrowserInput previous= current.getPrevious();
setToolTipText(Messages.format(JavaHoverMessages.JavadocHover_back_toElement_toolTip, BasicElementLabels.getJavaElementName(previous.getInputName())));
setEnabled(true);
} else {
setToolTipText(JavaHoverMessages.JavadocHover_back);
setEnabled(false);
}
}
示例5: JavaElementBrowserInput
import org.eclipse.jface.internal.text.html.BrowserInput; //導入依賴的package包/類
public JavaElementBrowserInput(BrowserInput previous, IJavaElement inputElement) {
super(previous);
Assert.isNotNull(inputElement);
fInput= inputElement;
}
示例6: URLBrowserInput
import org.eclipse.jface.internal.text.html.BrowserInput; //導入依賴的package包/類
public URLBrowserInput(BrowserInput previous, URL url) {
super(previous);
Assert.isNotNull(url);
fURL= url;
}