public void setOutSourceFolder(IPackageFragmentRoot outSourceFolder) { this.outSourceFolder = outSourceFolder; if (outSourceFolder == null) { setStringValue(null); } else { setStringValue(IProjectUtils.toRelativePath(outSourceFolder, project)); } if (eventManager != null) { eventManager.fireEvent(new FolderSelectionEvent(outSourceFolder)); } }
@SuppressWarnings("restriction") @Override protected String changePressed() { updateSourceFolderFromText(); if (outSourceFolder != null) { outSourceFolder = SourceContainerDialog.getSourceContainer(shell, workspaceRoot, outSourceFolder); } else { outSourceFolder = SourceContainerDialog.getSourceContainer(shell, workspaceRoot, project); } if (eventManager != null) { eventManager.fireEvent(new FolderSelectionEvent(outSourceFolder)); } if (outSourceFolder == null) { return null; } return IProjectUtils.toRelativePath(outSourceFolder, project); }
private void updateSourceFolderFromText() { outSourceFolder = IProjectUtils.toPackageFragmentRoot(project, getStringValue()); }