/** * Shows the UI for configuring a javadoc location. * Use {@link org.eclipse.jdt.ui.JavaUI} to access and configure Javadoc locations. * * @param parent The parent shell for the dialog. * @param libraryName Name of of the library to which configured javadoc location belongs. * @param initialURL The initial URL or <code>null</code>. */ public JavadocLocationDialog(Shell parent, String libraryName, URL initialURL) { super(parent); IStatusChangeListener listener= new IStatusChangeListener() { @Override public void statusChanged(IStatus status) { updateStatus(status); } }; setTitle(Messages.format(NewWizardMessages.LibrariesWorkbookPage_JavadocPropertyDialog_title, libraryName)); fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, listener, initialURL, false); }
/** * Shows the UI for configuring a javadoc location. * Use {@link org.eclipse.jdt.ui.JavaUI} to access and configure Javadoc locations. * * @param parent The parent shell for the dialog. * @param libraryName Name of of the library to which configured javadoc location belongs. * @param initialURL The initial URL or <code>null</code>. */ public JavadocLocationDialog(Shell parent, String libraryName, URL initialURL) { super(parent); IStatusChangeListener listener= new IStatusChangeListener() { @Override public void statusChanged(IStatus status) { updateStatus(status); } }; setTitle(Messages.format(NewWizardMessages.LibrariesWorkbookPage_JavadocPropertyDialog_title, libraryName)); fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, listener, initialURL, false); }
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()); }
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()); }
fJavadocConfigurationBlock= new JavadocConfigurationBlock(getShell(), this, fInitalLocation, isProject); Control control= fJavadocConfigurationBlock.createContents(parent); control.setVisible(elem != null);
fJavadocConfigurationBlock= new JavadocConfigurationBlock(getShell(), this, fInitalLocation, isProject); Control control= fJavadocConfigurationBlock.createContents(parent); control.setVisible(elem != null);
/** * Shows the UI for configuring a javadoc location. * Use {@link org.eclipse.jdt.ui.JavaUI} to access and configure Javadoc locations. * * @param parent The parent shell for the dialog. * @param libraryName Name of of the library to which configured javadoc location belongs. * @param initialURL The initial URL or <code>null</code>. */ public JavadocLocationDialog(Shell parent, String libraryName, URL initialURL) { super(parent); setShellStyle(getShellStyle() | SWT.RESIZE); IStatusChangeListener listener= new IStatusChangeListener() { public void statusChanged(IStatus status) { updateStatus(status); } }; setTitle(Messages.format(NewWizardMessages.LibrariesWorkbookPage_JavadocPropertyDialog_title, libraryName)); fJavadocConfigurationBlock= new JavadocConfigurationBlock(parent, listener, initialURL, false); }
protected Control createContents(Composite parent) { if (!fIsValidElement) { return new Composite(parent, SWT.NONE); } IJavaElement elem= getJavaElement(); fInitalLocation= null; if (elem != null) { try { fInitalLocation= JavaUI.getJavadocBaseLocation(elem); } catch (JavaModelException e) { JavaPlugin.log(e); } } boolean isProject= (elem instanceof IJavaProject); fJavadocConfigurationBlock= new JavadocConfigurationBlock(getShell(), this, fInitalLocation, isProject); Control control= fJavadocConfigurationBlock.createContents(parent); control.setVisible(elem != null); Dialog.applyDialogFont(control); return control; }