Пример #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));
    }
  }
Пример #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);
  }
Пример #3
0
 protected void fireEvent(AppEvent event) {
   if (eventManager != null) {
     eventManager.fireEvent(event);
   }
 }