@Override public boolean performCancel() { updateStore(); //If the wizard was not launched from an ant file store the settings if (fXmlJavadocFile == null) { IJavaProject[] checkedProjects= fTreeWizardPage.getCheckedProjects(); fStore.updateDialogSettings(getDialogSettings(), checkedProjects); } return super.performCancel(); }
@Override public boolean performCancel() { updateStore(); //If the wizard was not launched from an ant file store the settings if (fXmlJavadocFile == null) { IJavaProject[] checkedProjects= fTreeWizardPage.getCheckedProjects(); fStore.updateDialogSettings(getDialogSettings(), checkedProjects); } return super.performCancel(); }
public boolean performCancel() { IJavaProject[] checkedProjects= fJTWPage.getCheckedProjects(); updateStore(checkedProjects); //If the wizard was not launched from an ant file store the settings if (fXmlJavadocFile == null) { fStore.updateDialogSettings(getDialogSettings(), checkedProjects); } return super.performCancel(); }
public void init(IWorkbench workbench, IStructuredSelection structuredSelection) { IWorkbenchWindow window= workbench.getActiveWorkbenchWindow(); List selected= Collections.EMPTY_LIST; if (window != null) { ISelection selection= window.getSelectionService().getSelection(); if (selection instanceof IStructuredSelection) { selected= ((IStructuredSelection) selection).toList(); } else { IJavaElement element= EditorUtility.getActiveEditorJavaInput(); if (element != null) { selected= new ArrayList(); selected.add(element); } } } fStore= new JavadocOptionsManager(fXmlJavadocFile, getDialogSettings(), selected); }
@Override public void init(IWorkbench workbench, IStructuredSelection structuredSelection) { IWorkbenchWindow window= workbench.getActiveWorkbenchWindow(); List<?> selected= Collections.EMPTY_LIST; if (window != null) { ISelection selection= window.getSelectionService().getSelection(); if (selection instanceof IStructuredSelection) { selected= ((IStructuredSelection) selection).toList(); } else { IJavaElement element= EditorUtility.getActiveEditorJavaInput(); if (element != null) { selected= Arrays.asList(element); } } } fStore= new JavadocOptionsManager(fXmlJavadocFile, getDialogSettings(), selected); }
@Override public void init(IWorkbench workbench, IStructuredSelection structuredSelection) { IWorkbenchWindow window= workbench.getActiveWorkbenchWindow(); List<?> selected= Collections.EMPTY_LIST; if (window != null) { ISelection selection= window.getSelectionService().getSelection(); if (selection instanceof IStructuredSelection) { selected= ((IStructuredSelection) selection).toList(); } else { IJavaElement element= EditorUtility.getActiveEditorJavaInput(); if (element != null) { selected= Arrays.asList(element); } } } fStore= new JavadocOptionsManager(fXmlJavadocFile, getDialogSettings(), selected); }
fStore.updateDialogSettings(getDialogSettings(), checkedProjects);
fStore.updateDialogSettings(getDialogSettings(), checkedProjects);
updateStore(checkedProjects); fStore.updateDialogSettings(getDialogSettings(), checkedProjects);