Exemplo n.º 1
0
  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));
    }
  }
Exemplo n.º 2
0
  @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);
  }
Exemplo n.º 3
0
 private void updateSourceFolderFromText() {
   outSourceFolder = IProjectUtils.toPackageFragmentRoot(project, getStringValue());
 }