Merge pull request #644 from mrtizmo/corecomponentinterfaces

Corecomponentinterfaces - Added NON-NLS tag to hardcoded strings not needing...
This commit is contained in:
Richard Cordovano 2014-04-22 09:31:13 -04:00
commit 63ab8545aa
2 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ import org.sleuthkit.datamodel.BlackboardArtifact;
*/
public interface BlackboardResultViewer {
public static final String FINISHED_DISPLAY_EVT = "FINISHED_DISPLAY_EVT";
public static final String FINISHED_DISPLAY_EVT = "FINISHED_DISPLAY_EVT"; //NON-NLS
/**

View File

@ -55,11 +55,11 @@ public class CoreComponentControl {
Collection<? extends DataExplorer> dataExplorers = Lookup.getDefault().lookupAll(DataExplorer.class);
for (DataExplorer de : dataExplorers) {
TopComponent explorerWin = de.getTopComponent();
Mode m = WindowManager.getDefault().findMode("explorer");
Mode m = WindowManager.getDefault().findMode("explorer"); //NON-NLS
if (m != null) {
m.dockInto(explorerWin); // redock into the explorer mode
} else {
logger.log(Level.WARNING, "Could not find explorer mode and dock explorer window");
logger.log(Level.WARNING, "Could not find explorer mode and dock explorer window"); //NON-NLS
}
explorerWin.open(); // open that top component
}
@ -70,7 +70,7 @@ public class CoreComponentControl {
if (m != null) {
m.dockInto(contentWin); // redock into the output mode
} else {
logger.log(Level.WARNING, "Could not find output mode and dock content window");
logger.log(Level.WARNING, "Could not find output mode and dock content window"); //NON-NLS
}
contentWin.open(); // open that top component
@ -98,7 +98,7 @@ public class CoreComponentControl {
for (TopComponent tc : mode.getTopComponents()) {
tcName = tc.getName();
if (tcName == null) {
logger.log(Level.INFO, "tcName was null");
logger.log(Level.INFO, "tcName was null"); //NON-NLS
tcName = "";
}
// switch requires constant strings, so converted to if/else.