@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 boolean performFinish() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); entryToEdit.setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); return super.performFinish(); }
@Override public void addPages() { super.addPages(); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
/** * {@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 IClasspathEntry getNewEntry() { CPListElement elem= CPListElement.createFromExisting(fEntry, fProject); IPath sourceAttachmentPath= getSourceAttachmentPath(); String encoding= getEncoding(); elem.setAttribute(CPListElement.SOURCEATTACHMENT, sourceAttachmentPath); elem.setAttribute(CPListElement.SOURCE_ATTACHMENT_ENCODING, encoding); return elem.getClasspathEntry(); }
private void attributeUpdated(CPListElement selElement, String[] changedAttributes) { Object parentContainer= selElement.getParentContainer(); if (parentContainer instanceof CPListElement) { // inside a container: apply changes right away IClasspathEntry updatedEntry= selElement.getClasspathEntry(); updateContainerEntry(updatedEntry, changedAttributes, fCurrJProject, ((CPListElement) parentContainer).getPath()); } }
@Override public IClasspathEntry getParentClasspassEntry() { return getParent().getClasspathEntry(); } };
@Override public void cancel() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fOrginalInclusion); entryToEdit.setAttribute(CPListElement.EXCLUSION, fOriginalExclusion); } }
/** * Returns the value. * @param value value to set */ public void setValue(Object value) { fValue= value; fCachedAccess= null; getParent().attributeChanged(fKey); }
public Object getAttribute(String key) { CPListElementAttribute attrib= findAttributeElement(key); if (attrib != null) { return attrib.getValue(); } return null; }
public ChooseVariableDialog(Shell parent, String variableSelection) { super(parent); setTitle(NewWizardMessages.VariablePathDialogField_variabledialog_title); fVariableBlock= new VariableBlock(false, variableSelection); }
/** * {@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; }
@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); }
public boolean performFinish() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); entryToEdit.setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); return super.performFinish(); }
public void addPages() { super.addPages(); fFilterPage= new SetFilterWizardPage(getEntryToEdit(), getExistingEntries(), getOutputLocation()); addPage(fFilterPage); }
/** * {@inheritDoc} */ public void cancel() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fOrginalInclusion); entryToEdit.setAttribute(CPListElement.EXCLUSION, fOriginalExclusion); } }
public ChooseVariableDialog(Shell parent, String variableSelection) { super(parent); setTitle(NewWizardMessages.VariablePathDialogField_variabledialog_title); fVariableBlock= new VariableBlock(false, variableSelection); }
@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 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); }
@Override public boolean performFinish() { CPListElement entryToEdit= getEntryToEdit(); entryToEdit.setAttribute(CPListElement.INCLUSION, fFilterPage.getInclusionPattern()); entryToEdit.setAttribute(CPListElement.EXCLUSION, fFilterPage.getExclusionPattern()); return super.performFinish(); }