/** * {@inheritDoc} */ public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IAction.RESULT)) { if (event.getNewValue().equals(Boolean.TRUE)) { finishWizard(); } else { fWizard.cancel(); } } }
@Override protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException { if (fDoFlushChange) { IJavaProject javaProject= getEntryToEdit().getJavaProject(); BuildPathsBlock.flush(getExistingEntries(), getOutputLocation(), javaProject, null, monitor); IProject project= javaProject.getProject(); IPath path= getEntryToEdit().getPath(); IResource folder= project.getWorkspace().getRoot().findMember(path); fPackageFragmentRoot= javaProject.getPackageFragmentRoot(folder); } }
protected void finishWizard() { List insertedElements= fWizard.getInsertedElements(); refresh(insertedElements, fWizard.getRemovedElements(), fWizard.getModifiedElements(), fWizard.getOutputLocation()); if (insertedElements.isEmpty()) { fFoldersList.postSetSelection(new StructuredSelection(fSelectedElements)); } }
public BuildPathWizard(CPListElement[] existingEntries, CPListElement newEntry, IPath outputLocation, String titel, ImageDescriptor image) { fOutputLocation= outputLocation; if (image != null) setDefaultPageImageDescriptor(image); setDialogSettings(JavaPlugin.getDefault().getDialogSettings()); setWindowTitle(titel); fEntryToEdit= newEntry; fExistingEntries= new ArrayList<>(Arrays.asList(existingEntries)); fDoFlushChange= true; }
@Override public void addPages() { super.addPages(); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
@Override public boolean performFinish() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); entryToEdit.setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); return super.performFinish(); }
@Override public List<CPListElement> getInsertedElements() { List<CPListElement> result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
public BuildPathWizard(CPListElement[] existingEntries, CPListElement newEntry, IPath outputLocation, String titel, ImageDescriptor image) { fOutputLocation= outputLocation; if (image != null) setDefaultPageImageDescriptor(image); setDialogSettings(JavaPlugin.getDefault().getDialogSettings()); setWindowTitle(titel); fEntryToEdit= newEntry; fExistingEntries= new ArrayList(Arrays.asList(existingEntries)); fDoFlushChange= true; }
public void addPages() { super.addPages(); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
public boolean performFinish() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); entryToEdit.setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); return super.performFinish(); }
@Override public List<CPListElement> getInsertedElements() { List<CPListElement> result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
protected void finishWizard() { List<CPListElement> insertedElements= fWizard.getInsertedElements(); refresh(insertedElements, fWizard.getRemovedElements(), fWizard.getModifiedElements(), fWizard.getOutputLocation()); if (insertedElements.isEmpty()) { fFoldersList.postSetSelection(new StructuredSelection(fSelectedElements)); } }
@Override protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException { if (fDoFlushChange) { IJavaProject javaProject= getEntryToEdit().getJavaProject(); BuildPathsBlock.flush(getExistingEntries(), getOutputLocation(), javaProject, null, monitor); IProject project= javaProject.getProject(); IPath path= getEntryToEdit().getPath(); IResource folder= project.getWorkspace().getRoot().findMember(path); fPackageFragmentRoot= javaProject.getPackageFragmentRoot(folder); } }
public BuildPathWizard(CPListElement[] existingEntries, CPListElement newEntry, IPath outputLocation, String titel, ImageDescriptor image) { fOutputLocation= outputLocation; if (image != null) setDefaultPageImageDescriptor(image); setDialogSettings(JavaPlugin.getDefault().getDialogSettings()); setWindowTitle(titel); fEntryToEdit= newEntry; fExistingEntries= new ArrayList<>(Arrays.asList(existingEntries)); fDoFlushChange= true; }
@Override public void addPages() { super.addPages(); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
@Override public boolean performFinish() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); entryToEdit.setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); return super.performFinish(); }
@Override public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IAction.RESULT)) { if (event.getNewValue().equals(Boolean.TRUE)) { finishWizard(); } else { fWizard.cancel(); } } }
/** * {@inheritDoc} */ public List getInsertedElements() { List result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
protected void finishWizard() { List<CPListElement> insertedElements= fWizard.getInsertedElements(); refresh(insertedElements, fWizard.getRemovedElements(), fWizard.getModifiedElements(), fWizard.getOutputLocation()); if (insertedElements.isEmpty()) { fFoldersList.postSetSelection(new StructuredSelection(fSelectedElements)); } }
/** * {@inheritDoc} */ protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException { if (fDoFlushChange) { IJavaProject javaProject= getEntryToEdit().getJavaProject(); BuildPathsBlock.flush(getExistingEntries(), getOutputLocation(), javaProject, monitor); IProject project= javaProject.getProject(); IPath path= getEntryToEdit().getPath(); IResource folder= project.getWorkspace().getRoot().findMember(path); fPackageFragmentRoot= javaProject.getPackageFragmentRoot(folder); } }