| "); //NON-NLS
sb.append(key);
@@ -118,7 +111,7 @@ public class Metadata extends javax.swing.JPanel implements DataContentViewer
sb.append(value);
sb.append(" |
"); //NON-NLS
}
-
+
@Override
public void setNode(Node node) {
AbstractFile file = node.getLookup().lookup(AbstractFile.class);
@@ -126,40 +119,43 @@ public class Metadata extends javax.swing.JPanel implements DataContentViewer
setText(NbBundle.getMessage(this.getClass(), "Metadata.nodeText.nonFilePassedIn"));
return;
}
-
+
StringBuilder sb = new StringBuilder();
startTable(sb);
-
+
try {
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.name"), file.getUniquePath());
} catch (TskCoreException ex) {
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.name"), file.getParentPath() + "/" + file.getName());
}
-
+
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.type"), file.getType().getName());
- addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.size"), new Long(file.getSize()).toString() );
+ addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.size"), new Long(file.getSize()).toString());
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.fileNameAlloc"), file.getDirFlagAsString());
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.metadataAlloc"), file.getMetaFlagsAsString());
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.modified"), ContentUtils.getStringTime(file.getMtime(), file));
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.accessed"), ContentUtils.getStringTime(file.getAtime(), file));
- addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.created"), ContentUtils.getStringTime(file.getCrtime(), file));
- addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.changed"), ContentUtils.getStringTime(file.getCtime(), file));
-
+ addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.created"), ContentUtils.getStringTime(file.getCrtime(), file));
+ addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.changed"), ContentUtils.getStringTime(file.getCtime(), file));
+
String md5 = file.getMd5Hash();
if (md5 == null) {
md5 = NbBundle.getMessage(this.getClass(), "Metadata.tableRowContent.md5notCalc");
}
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.md5"), md5);
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.hashLookupResults"), file.getKnown().toString());
-
+
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.internalid"), new Long(file.getId()).toString());
if (file.getType().compareTo(TSK_DB_FILES_TYPE_ENUM.LOCAL) == 0) {
addRow(sb, NbBundle.getMessage(this.getClass(), "Metadata.tableRowTitle.localPath"), file.getLocalAbsPath());
}
-
+
endTable(sb);
-
- /* If we have a file system file, grab the more detailed metadata text too */
+
+ /*
+ * If we have a file system file, grab the more detailed metadata text
+ * too
+ */
try {
if (file instanceof FsContent) {
FsContent fsFile = (FsContent) file;
@@ -175,10 +171,10 @@ public class Metadata extends javax.swing.JPanel implements DataContentViewer
} catch (TskCoreException ex) {
sb.append(NbBundle.getMessage(this.getClass(), "Metadata.nodeText.exceptionNotice.text")).append(ex.getLocalizedMessage());
}
-
+
setText(sb.toString());
jTextPane1.setCaretPosition(0);
- this.setCursor(null);
+ this.setCursor(null);
}
@Override
diff --git a/Core/src/org/sleuthkit/autopsy/core/Installer.java b/Core/src/org/sleuthkit/autopsy/core/Installer.java
index 25a71e5988..8f43e21eef 100644
--- a/Core/src/org/sleuthkit/autopsy/core/Installer.java
+++ b/Core/src/org/sleuthkit/autopsy/core/Installer.java
@@ -45,18 +45,19 @@ public class Installer extends ModuleInstall {
static {
loadDynLibraries();
}
-
+
private static void loadDynLibraries() {
- /* On Windows, we distribute dlls that libtsk_jni depend on.
- * If libtsk_jni tries to load them, they will not be found by
- * Windows because they are in special NetBeans folders. So, we
- * manually load them from within Autopsy so that they are found
- * via the NetBeans loading setup. These are copied by the build
- * script when making the ZIP file. In a development environment
- * they will need to be loaded from standard places in your system.
- *
+ /*
+ * On Windows, we distribute dlls that libtsk_jni depend on. If
+ * libtsk_jni tries to load them, they will not be found by Windows
+ * because they are in special NetBeans folders. So, we manually load
+ * them from within Autopsy so that they are found via the NetBeans
+ * loading setup. These are copied by the build script when making the
+ * ZIP file. In a development environment they will need to be loaded
+ * from standard places in your system.
+ *
* On non-Windows platforms, we assume the dependncies are all installed
- * and loadable (i.e. a 'make install' was done).
+ * and loadable (i.e. a 'make install' was done).
*/
if (PlatformUtil.isWindowsOS()) {
try {
@@ -71,21 +72,21 @@ public class Installer extends ModuleInstall {
}
try {
- System.loadLibrary("zlib"); //NON-NLS
- logger.log(Level.INFO, "ZLIB library loaded loaded"); //NON-NLS
+ System.loadLibrary("zlib"); //NON-NLS
+ logger.log(Level.INFO, "ZLIB library loaded loaded"); //NON-NLS
} catch (UnsatisfiedLinkError e) {
- logger.log(Level.SEVERE, "Error loading ZLIB library, ", e); //NON-NLS
+ logger.log(Level.SEVERE, "Error loading ZLIB library, ", e); //NON-NLS
}
try {
- System.loadLibrary("libewf"); //NON-NLS
- logger.log(Level.INFO, "EWF library loaded"); //NON-NLS
+ System.loadLibrary("libewf"); //NON-NLS
+ logger.log(Level.INFO, "EWF library loaded"); //NON-NLS
} catch (UnsatisfiedLinkError e) {
- logger.log(Level.SEVERE, "Error loading EWF library, ", e); //NON-NLS
+ logger.log(Level.SEVERE, "Error loading EWF library, ", e); //NON-NLS
}
- }
- }
-
+ }
+ }
+
public Installer() {
logger.log(Level.INFO, "core installer created"); //NON-NLS
javaFxInit = false;
@@ -98,12 +99,14 @@ public class Installer extends ModuleInstall {
/**
* Check if JavaFx initialized
- * @return false if java fx not initialized (classes coult not load), true if initialized
+ *
+ * @return false if java fx not initialized (classes coult not load), true
+ * if initialized
*/
public static boolean isJavaFxInited() {
return javaFxInit;
}
-
+
private static void initJavaFx() {
//initialize java fx if exists
System.setProperty("javafx.macosx.embedded", "true");
@@ -117,7 +120,7 @@ public class Installer extends ModuleInstall {
final String msg = NbBundle.getMessage(Installer.class, "Installer.errorInitJavafx.msg");
final String details = NbBundle.getMessage(Installer.class, "Installer.errorInitJavafx.details");
logger.log(Level.SEVERE, msg
- + details, e);
+ + details, e);
WindowManager.getDefault().invokeWhenUIReady(new Runnable() {
@Override
@@ -132,11 +135,11 @@ public class Installer extends ModuleInstall {
File pythonModulesDir = new File(PlatformUtil.getUserPythonModulesPath());
pythonModulesDir.mkdir();
}
-
+
@Override
public void restored() {
- super.restored();
- ensurePythonModulesFolderExists();
+ super.restored();
+ ensurePythonModulesFolderExists();
initJavaFx();
for (ModuleInstall mi : packageInstallers) {
try {
diff --git a/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java b/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java
index 7ce18930a4..5349915871 100755
--- a/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java
+++ b/Core/src/org/sleuthkit/autopsy/core/UserPreferences.java
@@ -34,7 +34,7 @@ public final class UserPreferences {
public static final String HIDE_KNOWN_FILES_IN_VIEWS_TREE = "HideKnownFilesInViewsTree"; //NON-NLS
public static final String DISPLAY_TIMES_IN_LOCAL_TIME = "DisplayTimesInLocalTime"; //NON-NLS
public static final String NUMBER_OF_FILE_INGEST_THREADS = "NumberOfFileIngestThreads"; //NON-NLS
-
+
// Prevent instantiation.
private UserPreferences() {
}
@@ -70,21 +70,21 @@ public final class UserPreferences {
public static void setHideKnownFilesInViewsTree(boolean value) {
preferences.putBoolean(HIDE_KNOWN_FILES_IN_VIEWS_TREE, value);
}
-
+
public static boolean displayTimesInLocalTime() {
return preferences.getBoolean(DISPLAY_TIMES_IN_LOCAL_TIME, true);
}
public static void setDisplayTimesInLocalTime(boolean value) {
preferences.putBoolean(DISPLAY_TIMES_IN_LOCAL_TIME, value);
- }
-
+ }
+
public static int numberOfFileIngestThreads() {
return preferences.getInt(NUMBER_OF_FILE_INGEST_THREADS, 2);
}
public static void setNumberOfFileIngestThreads(int value) {
preferences.putInt(NUMBER_OF_FILE_INGEST_THREADS, value);
- }
-
+ }
+
}
diff --git a/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/BlackboardResultViewer.java b/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/BlackboardResultViewer.java
index b487e093d5..c196adae4c 100644
--- a/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/BlackboardResultViewer.java
+++ b/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/BlackboardResultViewer.java
@@ -16,39 +16,38 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
-
package org.sleuthkit.autopsy.corecomponentinterfaces;
import java.beans.PropertyChangeListener;
import org.sleuthkit.datamodel.BlackboardArtifact;
/**
- * Additional functionality of viewers
- * supporting black board results
- * such as the directory tree
+ * Additional functionality of viewers supporting black board results such as
+ * the directory tree
*/
public interface BlackboardResultViewer {
-
+
public static final String FINISHED_DISPLAY_EVT = "FINISHED_DISPLAY_EVT"; //NON-NLS
-
-
+
/**
* View artifact in a viewer
+ *
* @param art artifact to view
*/
- void viewArtifact(BlackboardArtifact art);
-
- /**
+ void viewArtifact(BlackboardArtifact art);
+
+ /**
* View content associated with the artifact
+ *
* @param art artifact content to view
*/
- void viewArtifactContent(BlackboardArtifact art);
-
- /**
- * Add listener to fire an action when viewer is done displaying
- * @param l
- */
- void addOnFinishedListener(PropertyChangeListener l);
-
+ void viewArtifactContent(BlackboardArtifact art);
+
+ /**
+ * Add listener to fire an action when viewer is done displaying
+ *
+ * @param l
+ */
+ void addOnFinishedListener(PropertyChangeListener l);
+
}
diff --git a/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/ContextMenuActionsProvider.java b/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/ContextMenuActionsProvider.java
index b6a96eb1aa..5f113519a8 100755
--- a/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/ContextMenuActionsProvider.java
+++ b/Core/src/org/sleuthkit/autopsy/corecomponentinterfaces/ContextMenuActionsProvider.java
@@ -26,12 +26,14 @@ import javax.swing.Action;
* menus in Autopsy.
*/
public interface ContextMenuActionsProvider {
+
/**
- * Gets context menu Actions for the currently selected data model objects
- * exposed by the NetBeans Lookup of the active TopComponent. Implementers
- * should discover the selected objects by calling
- * org.openide.util.Utilities.actionsGlobalContext().lookupAll() for the
+ * Gets context menu Actions for the currently selected data model objects
+ * exposed by the NetBeans Lookup of the active TopComponent. Implementers
+ * should discover the selected objects by calling
+ * org.openide.util.Utilities.actionsGlobalContext().lookupAll() for the
* org.sleuthkit.datamodel classes of interest to the provider.
+ *
* @return A list, possibly empty, of Action objects.
*/
public List