/** * Method doEditButtonPressed. */ private void doEditButtonPressed() { List<JavadocLinkRef> selected= fListDialogField.getSelectedElements(); if (selected.isEmpty()) { return; } JavadocLinkRef obj= selected.get(0); if (obj != null) { JavadocPropertyDialog jdialog= new JavadocPropertyDialog(getShell(), obj); if (jdialog.open() == Window.OK) { fListDialogField.refresh(); } } }
@Override protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control inner= fJavadocConfigurationBlock.createContents(composite); inner.setLayoutData(new GridData(GridData.FILL_BOTH)); applyDialogFont(composite); return composite; }
/** * @see Dialog#okPressed() */ @Override protected void okPressed() { try { IWorkspaceRunnable runnable= new IWorkspaceRunnable() { @Override public void run(IProgressMonitor monitor) throws CoreException { URL javadocLocation= fJavadocConfigurationBlock.getJavadocLocation(); fElement.setURL(javadocLocation, monitor); } }; PlatformUI.getWorkbench().getProgressService().run(true, true, new WorkbenchRunnableAdapter(runnable)); } catch (InvocationTargetException e) { String title= JavadocExportMessages.JavadocStandardWizardPage_configurecontainer_error_title; String message= JavadocExportMessages.JavadocStandardWizardPage_configurecontainer_error_message; ExceptionHandler.handle(e, getShell(), title, message); } catch (InterruptedException e) { // user cancelled } fListDialogField.refresh(); doValidation(LINK_REFERENCES); super.okPressed(); }
/** * @see Dialog#okPressed() */ @Override protected void okPressed() { try { IWorkspaceRunnable runnable= new IWorkspaceRunnable() { @Override public void run(IProgressMonitor monitor) throws CoreException { URL javadocLocation= fJavadocConfigurationBlock.getJavadocLocation(); fElement.setURL(javadocLocation, monitor); } }; PlatformUI.getWorkbench().getProgressService().run(true, true, new WorkbenchRunnableAdapter(runnable)); } catch (InvocationTargetException e) { String title= JavadocExportMessages.JavadocStandardWizardPage_configurecontainer_error_title; String message= JavadocExportMessages.JavadocStandardWizardPage_configurecontainer_error_message; ExceptionHandler.handle(e, getShell(), title, message); } catch (InterruptedException e) { // user cancelled } fListDialogField.refresh(); doValidation(LINK_REFERENCES); super.okPressed(); }
/** * @see Dialog#okPressed() */ protected void okPressed() { try { IWorkspaceRunnable runnable= new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { URL javadocLocation= fJavadocConfigurationBlock.getJavadocLocation(); fElement.setURL(javadocLocation, monitor); } }; PlatformUI.getWorkbench().getProgressService().run(true, true, new WorkbenchRunnableAdapter(runnable)); } catch (InvocationTargetException e) { String title= JavadocExportMessages.JavadocStandardWizardPage_configurecontainer_error_title; String message= JavadocExportMessages.JavadocStandardWizardPage_configurecontainer_error_message; ExceptionHandler.handle(e, getShell(), title, message); } catch (InterruptedException e) { // user cancelled } fListDialogField.refresh(); doValidation(LINK_REFERENCES); super.okPressed(); }
public void statusChanged(IStatus status) { updateStatus(status); }
/** * Method doEditButtonPressed. */ private void doEditButtonPressed() { List<JavadocLinkRef> selected= fListDialogField.getSelectedElements(); if (selected.isEmpty()) { return; } JavadocLinkRef obj= selected.get(0); if (obj != null) { JavadocPropertyDialog jdialog= new JavadocPropertyDialog(getShell(), obj); if (jdialog.open() == Window.OK) { fListDialogField.refresh(); } } }
/** * Method doEditButtonPressed. */ private void doEditButtonPressed() { List selected= fListDialogField.getSelectedElements(); if (selected.isEmpty()) { return; } JavadocLinkRef obj= (JavadocLinkRef) selected.get(0); if (obj != null) { JavadocPropertyDialog jdialog= new JavadocPropertyDialog(getShell(), obj); if (jdialog.open() == Window.OK) { fListDialogField.refresh(); } } }
@Override public void statusChanged(IStatus status) { updateStatus(status); }
public JavadocPropertyDialog(Shell parent, JavadocLinkRef selection) { super(parent); setTitle(JavadocExportMessages.JavadocStandardWizardPage_javadocpropertydialog_title); fElement= selection; URL initialLocation= selection.getURL(); fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, this, initialLocation, selection.isProjectRef()); }
@Override public void statusChanged(IStatus status) { updateStatus(status); }
public JavadocPropertyDialog(Shell parent, JavadocLinkRef selection) { super(parent); setTitle(JavadocExportMessages.JavadocStandardWizardPage_javadocpropertydialog_title); fElement= selection; URL initialLocation= selection.getURL(); fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, this, initialLocation, selection.isProjectRef()); }
public JavadocPropertyDialog(Shell parent, JavadocLinkRef selection) { super(parent); setTitle(JavadocExportMessages.JavadocStandardWizardPage_javadocpropertydialog_title); fElement= selection; URL initialLocation= selection.getURL(); fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, this, initialLocation, selection.isProjectRef()); }
protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control inner= fJavadocConfigurationBlock.createContents(composite); inner.setLayoutData(new GridData(GridData.FILL_BOTH)); applyDialogFont(composite); return composite; }
@Override protected Control createDialogArea(Composite parent) { Composite composite= (Composite) super.createDialogArea(parent); Control inner= fJavadocConfigurationBlock.createContents(composite); inner.setLayoutData(new GridData(GridData.FILL_BOTH)); applyDialogFont(composite); return composite; }