protected void setActive() { boolean segment = wUseSegmentEnabled.getSelection(); wCustomSegmentEnabled.setEnabled( segment ); if ( !segment ) { wQuCustomSegment.setEnabled( false ); wQuCustomSegmentReference.setEnabled( false ); wQuSegment.setEnabled( false ); wGetSegments.setEnabled( false ); } else { boolean custom = wCustomSegmentEnabled.getSelection(); wQuCustomSegment.setEnabled( custom ); wQuCustomSegmentReference.setEnabled( custom ); wQuSegment.setEnabled( !custom ); wGetSegments.setEnabled( !custom ); } boolean directTableId = wCustomProfileEnabled.getSelection(); wGaProfile.setEnabled( !directTableId ); wGetProfiles.setEnabled( !directTableId ); wGaCustomProfile.setEnabled( directTableId ); wGaCustomProfileReference.setEnabled( directTableId ); }
/** Determines whether this FlatBtn is enabled or not. */ public void setEnabled(boolean enabled) { wrapped.setEnabled(enabled); } }
public void widgetSelected(SelectionEvent event) { fRefactoringLink.setEnabled(fExportRefactoringsCheckbox.getSelection()); } });
@Override public void widgetSelected(SelectionEvent event) { fRefactoringLink.setEnabled(fExportRefactoringsCheckbox.getSelection()); } });
@Override public void widgetSelected(SelectionEvent event) { fRefactoringLink.setEnabled(fExportRefactoringsCheckbox.getSelection()); } });
public void widgetSelected(SelectionEvent e) { boolean psp = pspecific.getSelection(); block.useProjectSpecificSettings(psp); if(link != null) { link.setEnabled(!psp); } } });
public void widgetSelected(SelectionEvent e) { getSimilarElementUpdating().setUpdateSimilarDeclarations(fUpdateSimilarElements.getSelection()); fUpdateSimilarElementsButton.setEnabled(fUpdateSimilarElements.getSelection()); } });
@Override public void widgetSelected(SelectionEvent e) { getSimilarElementUpdating().setUpdateSimilarDeclarations(fUpdateSimilarElements.getSelection()); fUpdateSimilarElementsButton.setEnabled(fUpdateSimilarElements.getSelection()); } });
@Override public void widgetSelected(SelectionEvent e) { getSimilarElementUpdating().setUpdateSimilarDeclarations(fUpdateSimilarElements.getSelection()); fUpdateSimilarElementsButton.setEnabled(fUpdateSimilarElements.getSelection()); } });
protected void enableBrowseSection(boolean enabled) { fLocationLink.setEnabled(enabled); fLocationText.setEnabled(enabled); fFileSystemButton.setEnabled(enabled); fWorkspaceButton.setEnabled(enabled); fVariablesButton.setEnabled(enabled); if (fTab != null) fTab.updateLaunchConfigurationDialog(); }
@Override public void widgetSelected(final SelectionEvent e) { final Optional<IMethod> opt = jdtResolver.toJdtMethod(method); if (opt.isPresent()) { final JavaSelectionEvent event = new JavaSelectionEvent(opt.get(), METHOD_DECLARATION); workspaceBus.post(event); } else { link.setEnabled(false); } } });
@Override public void widgetSelected(final SelectionEvent e) { final Optional<IMethod> opt = resolver.toJdtMethod(method); if (opt.isPresent()) { final JavaSelectionEvent event = new JavaSelectionEvent(opt.get(), METHOD_DECLARATION); workspaceBus.post(event); } else { link.setEnabled(false); } } });
private void updateLinkVisibility() { if (fChangeWorkspaceSettings == null || fChangeWorkspaceSettings.isDisposed()) { return; } if (isProjectPreferencePage()) { fChangeWorkspaceSettings.setEnabled(!useProjectSettings()); } }
private void updateLinkVisibility() { if (fChangeWorkspaceSettings == null || fChangeWorkspaceSettings.isDisposed()) { return; } if (isProjectPreferencePage()) { fChangeWorkspaceSettings.setEnabled(!useProjectSettings()); } }
private void updateLinkVisibility() { if (changeWorkspaceSettings == null || changeWorkspaceSettings.isDisposed()) { return; } if (isProjectPreferencePage()) { changeWorkspaceSettings.setEnabled(!useProjectSettings()); } }
private void updateLinkVisibility() { if (fChangeWorkspaceSettings == null || fChangeWorkspaceSettings.isDisposed()) { return; } if (isProjectPreferencePage()) { fChangeWorkspaceSettings.setEnabled(!useProjectSettings()); } }
@Override public boolean changed(IEclipseContext context) { if (stop || isDisposed() || !link.isVisible()) { // stop listening for changes return false; } EHandlerService service = context.get(EHandlerService.class); link.setEnabled(service != null && service.canExecute(parmCommand)); return true; } }
public void update(Observable o, Object arg) { final boolean detect= fDetectGroup.mustDetect(); fStdRadio.setEnabled(!detect); fSrcBinRadio.setEnabled(!detect); fPreferenceLink.setEnabled(!detect); fGroup.setEnabled(!detect); }
private void updateEnableState() { if (fDetectGroup == null) return; final boolean detect= fDetectGroup.mustDetect(); fStdRadio.setEnabled(!detect); fSrcBinRadio.setEnabled(!detect); if (fPreferenceLink != null) { fPreferenceLink.setEnabled(!detect); } if (fGroup != null) { fGroup.setEnabled(!detect); } }
private void updateEnableState() { final boolean detect= fDetectGroup.mustDetect(); fUseDefaultJRE.setEnabled(!detect); fUseProjectJRE.setEnabled(!detect); fUseEEJRE.setEnabled(!detect); fJRECombo.setEnabled(!detect && fUseProjectJRE.isSelected()); fEECombo.setEnabled(!detect && fUseEEJRE.isSelected()); fPreferenceLink.setEnabled(!detect); fGroup.setEnabled(!detect); }