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); }
protected void fireEvent(AppEvent event) { if (eventManager != null) { eventManager.fireEvent(event); } }