@Override public void run() { IJavaElement inputElement= fInfoView.getOrignalInput(); new OpenAction(fInfoView.getViewSite()).run(new Object[] { inputElement }); } }
@Override public void run() { IJavaElement inputElement= fInfoView.getOrignalInput(); new OpenAction(fInfoView.getViewSite()).run(new Object[] { inputElement }); } }
private void doSetInput(Object input, String description) { doSetInput(input); boolean hasValidInput= input != null; fGotoInputAction.setEnabled(hasValidInput); IJavaElement inputElement= getOrignalInput(); String toolTip= hasValidInput && inputElement != null ? JavaElementLabels.getElementLabel(inputElement, TOOLTIP_LABEL_FLAGS) : ""; //$NON-NLS-1$ setContentDescription(description); setTitleToolTip(toolTip); }
private void doSetInput(Object input, String description) { doSetInput(input); boolean hasValidInput= input != null; fGotoInputAction.setEnabled(hasValidInput); IJavaElement inputElement= getOrignalInput(); String toolTip= hasValidInput && inputElement != null ? JavaElementLabels.getElementLabel(inputElement, TOOLTIP_LABEL_FLAGS) : ""; //$NON-NLS-1$ setContentDescription(description); setTitleToolTip(toolTip); }