}
DataObject dataObject = activeTC.getLookup().lookup(DataObject.class);
Project project = activeTC.getLookup().lookup(Project.class);
Node node = activeTC.getLookup().lookup(Node.class);
FileObject fileObject = activeTC.getLookup().lookup(FileObject.class);
// showInStatusBar(project);
String projectName = null;
String projectDir = null;
String fileName = null;
if (null != project) {
projectName = getProjectName(project);
projectDir = getProjectDirectory(project);
}
if (null != dataObject || null != fileObject) {
final FileObject primaryFile;
if (null != dataObject) {
primaryFile = getFileObjectWithShadowSupport(dataObject);
} else {
primaryFile = fileObject;
}
projectDir = getProjectDirectory(primaryFile);
projectName = getProjectName(primaryFile);
if (null != primaryFile.getPath()) {
fileName = primaryFile.getPath();
}
//support selected items in jars
if (null != FileUtil.getArchiveFile(primaryFile)) {
String fullJARPath = FileUtil.getArchiveFile(primaryFile).getPath();
String archiveFileName = primaryFile.getPath();
boolean hasFileName = null != archiveFileName && !"".equals(archiveFileName);
if (hasFileName) {
fileName = fullJARPath + "/" + archiveFileName;
} else {
fileName = fullJARPath;