private AddSourceFolderWizard newSourceFolderWizard(CPListElement element, CPListElement[] existing, String outputLocation, IContainer parent) { AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, true, false, false, false, parent); wizard.setDoFlushChange(false); return wizard; }
/** * {@inheritDoc} */ public void addPages() { super.addPages(); fAddFolderPage= new AddSourceFolderWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation(), fLinkedMode, fCanCommitConflict, fAllowConflict, fAllowRemoveProjectFolder, fAllowAddExclusionPatterns, fParent); addPage(fAddFolderPage); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
public AddSourceFolderWizard(CPListElement[] existingEntries, CPListElement newEntry, IPath outputLocation, boolean linkedMode, boolean canCommitConflict, boolean allowConflict, boolean allowRemoveProjectFolder, boolean allowAddExclusionPatterns, IContainer parent) { super(existingEntries, newEntry, outputLocation, getTitel(newEntry, linkedMode), JavaPluginImages.DESC_WIZBAN_NEWSRCFOLDR); fLinkedMode= linkedMode; fCanCommitConflict= canCommitConflict; fAllowConflict= allowConflict; fAllowRemoveProjectFolder= allowRemoveProjectFolder; fAllowAddExclusionPatterns= allowAddExclusionPatterns; fParent= parent; }
boolean isProjectSrcFolder= CPListElement.isProjectSourceFolder(existing, javaProject); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, newEntrie, getOutputLocation(javaProject), true, false, false, isProjectSrcFolder, isProjectSrcFolder); wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(javaProject)); ArrayList<CPListElement> newEntries= wizard.getExistingEntries(); delta.setNewEntries(newEntries.toArray(new CPListElement[newEntries.size()])); IResource resource= wizard.getCreatedElement().getCorrespondingResource(); delta.addCreatedResource(resource); delta.setDefaultOutputLocation(wizard.getOutputLocation()); selectAndReveal(new StructuredSelection(wizard.getCreatedElement()));
@Override public boolean performFinish() { getEntryToEdit().setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); getEntryToEdit().setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); setOutputLocation(fAddFolderPage.getOutputLocation()); boolean res= super.performFinish(); if (res) { selectAndReveal(fAddFolderPage.getCorrespondingResource()); } return res; }
@Override public List<CPListElement> getInsertedElements() { List<CPListElement> result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
boolean isProjectSrcFolder= CPListElement.isProjectSourceFolder(existing, javaProject); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, newEntrie, getOutputLocation(javaProject), true, false, false, isProjectSrcFolder, isProjectSrcFolder); wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(javaProject)); ArrayList newEntries= wizard.getExistingEntries(); delta.setNewEntries((CPListElement[])newEntries.toArray(new CPListElement[newEntries.size()])); IResource resource= wizard.getCreatedElement().getCorrespondingResource(); delta.addCreatedResource(resource); delta.setDefaultOutputLocation(wizard.getOutputLocation()); selectAndReveal(new StructuredSelection(wizard.getCreatedElement()));
@Override public boolean performFinish() { getEntryToEdit().setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); getEntryToEdit().setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); setOutputLocation(fAddFolderPage.getOutputLocation()); boolean res= super.performFinish(); if (res) { selectAndReveal(fAddFolderPage.getCorrespondingResource()); } return res; }
/** * {@inheritDoc} */ public List getInsertedElements() { List result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
boolean isProjectSrcFolder= CPListElement.isProjectSourceFolder(existing, javaProject); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, newEntrie, getOutputLocation(javaProject), true, false, false, isProjectSrcFolder, isProjectSrcFolder); wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(javaProject)); ArrayList<CPListElement> newEntries= wizard.getExistingEntries(); delta.setNewEntries(newEntries.toArray(new CPListElement[newEntries.size()])); IResource resource= wizard.getCreatedElement().getCorrespondingResource(); delta.addCreatedResource(resource); delta.setDefaultOutputLocation(wizard.getOutputLocation()); selectAndReveal(new StructuredSelection(wizard.getCreatedElement()));
@Override public void addPages() { super.addPages(); fAddFolderPage= new AddSourceFolderWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation(), fLinkedMode, fCanCommitConflict, fAllowConflict, fAllowRemoveProjectFolder, fAllowAddExclusionPatterns, fParent); addPage(fAddFolderPage); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
private AddSourceFolderWizard newSourceFolderWizard(CPListElement element, CPListElement[] existing, String outputLocation, IContainer parent) { AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, true, false, false, false, parent); wizard.setDoFlushChange(false); return wizard; }
/** * {@inheritDoc} */ public boolean performFinish() { getEntryToEdit().setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); getEntryToEdit().setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); setOutputLocation(fAddFolderPage.getOutputLocation()); boolean res= super.performFinish(); if (res) { selectAndReveal(fAddFolderPage.getCorrespondingResource()); } return res; }
public AddSourceFolderWizard(CPListElement[] existingEntries, CPListElement newEntry, IPath outputLocation, boolean linkedMode, boolean canCommitConflict, boolean allowConflict, boolean allowRemoveProjectFolder, boolean allowAddExclusionPatterns, IContainer parent) { super(existingEntries, newEntry, outputLocation, getTitel(newEntry, linkedMode), JavaPluginImages.DESC_WIZBAN_NEWSRCFOLDR); fLinkedMode= linkedMode; fCanCommitConflict= canCommitConflict; fAllowConflict= allowConflict; fAllowRemoveProjectFolder= allowRemoveProjectFolder; fAllowAddExclusionPatterns= allowAddExclusionPatterns; fParent= parent; }
@Override public List<CPListElement> getInsertedElements() { List<CPListElement> result= super.getInsertedElements(); if (getEntryToEdit().getOrginalPath() == null) result.add(getEntryToEdit()); return result; }
boolean isProjectSrcFolder= CPListElement.isProjectSourceFolder(existing, javaProject); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, newEntrie, getOutputLocation(javaProject), false, false, false, isProjectSrcFolder, isProjectSrcFolder); wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(javaProject)); BuildpathDelta delta= new BuildpathDelta(getToolTipText()); ArrayList newEntries= wizard.getExistingEntries(); delta.setNewEntries((CPListElement[])newEntries.toArray(new CPListElement[newEntries.size()])); IResource resource= wizard.getCreatedElement().getCorrespondingResource(); delta.addCreatedResource(resource); delta.setDefaultOutputLocation(wizard.getOutputLocation()); selectAndReveal(new StructuredSelection(wizard.getCreatedElement()));
@Override public void addPages() { super.addPages(); fAddFolderPage= new AddSourceFolderWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation(), fLinkedMode, fCanCommitConflict, fAllowConflict, fAllowRemoveProjectFolder, fAllowAddExclusionPatterns, fParent); addPage(fAddFolderPage); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
private AddSourceFolderWizard newSourceFolderWizard(CPListElement element, CPListElement[] existing, String outputLocation, IContainer parent) { AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, true, false, false, false, parent); wizard.setDoFlushChange(false); return wizard; }
public AddSourceFolderWizard(CPListElement[] existingEntries, CPListElement newEntry, IPath outputLocation, boolean linkedMode, boolean canCommitConflict, boolean allowConflict, boolean allowRemoveProjectFolder, boolean allowAddExclusionPatterns, IContainer parent) { super(existingEntries, newEntry, outputLocation, getTitel(newEntry, linkedMode), JavaPluginImages.DESC_WIZBAN_NEWSRCFOLDR); fLinkedMode= linkedMode; fCanCommitConflict= canCommitConflict; fAllowConflict= allowConflict; fAllowRemoveProjectFolder= allowRemoveProjectFolder; fAllowAddExclusionPatterns= allowAddExclusionPatterns; fParent= parent; }
boolean isProjectSrcFolder= CPListElement.isProjectSourceFolder(existing, javaProject); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, newEntrie, getOutputLocation(javaProject), false, false, false, isProjectSrcFolder, isProjectSrcFolder); wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(javaProject)); BuildpathDelta delta= new BuildpathDelta(getToolTipText()); ArrayList<CPListElement> newEntries= wizard.getExistingEntries(); delta.setNewEntries(newEntries.toArray(new CPListElement[newEntries.size()])); IResource resource= wizard.getCreatedElement().getCorrespondingResource(); delta.addCreatedResource(resource); delta.setDefaultOutputLocation(wizard.getOutputLocation()); selectAndReveal(new StructuredSelection(wizard.getCreatedElement()));