From 180f329511e0b694a8ad4281cd21598d57953bd9 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 1 Jul 2010 09:01:52 -0400 Subject: [PATCH] [#75] Remove reference to BrowserTopComponent.settings from layer.xml The missing file breaks Rails debugging reporting the following message: Caused: java.io.FileNotFoundException: jar:file:/.../org-nbgit.jar!/org/nbgit/resources/BrowserTopComponentSettings.xml at org.netbeans.JarClassLoader$ResURLConnection.connect(JarClassLoader.java:870) at org.netbeans.JarClassLoader$ResURLConnection.getInputStream(JarClassLoader.java:906) at org.netbeans.core.startup.layers.BinaryFS$BFSFile.getInputStream(BinaryFS.java:736) Caused: java.io.FileNotFoundException The change should not alter anything, since the component was not persisted before either. Also update the gitversioning .settings files to version 0.4 and give the BrowserTopComponent class a more unique ID: org-nbgit-ui-browser. Signed-off-by: Jonas Fonseca --- src/org/nbgit/resources/layer.xml | 1 - src/org/nbgit/resources/settings.xml | 2 +- src/org/nbgit/ui/browser/BrowserTopComponent.java | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/org/nbgit/resources/layer.xml b/src/org/nbgit/resources/layer.xml index f6b80cd..2a147f6 100644 --- a/src/org/nbgit/resources/layer.xml +++ b/src/org/nbgit/resources/layer.xml @@ -72,7 +72,6 @@ made subject to such option by the copyright holder. - diff --git a/src/org/nbgit/resources/settings.xml b/src/org/nbgit/resources/settings.xml index b4435d5..c10f8ee 100644 --- a/src/org/nbgit/resources/settings.xml +++ b/src/org/nbgit/resources/settings.xml @@ -42,7 +42,7 @@ made subject to such option by the copyright holder. --> - + diff --git a/src/org/nbgit/ui/browser/BrowserTopComponent.java b/src/org/nbgit/ui/browser/BrowserTopComponent.java index 14cf735..5e5c406 100644 --- a/src/org/nbgit/ui/browser/BrowserTopComponent.java +++ b/src/org/nbgit/ui/browser/BrowserTopComponent.java @@ -53,7 +53,7 @@ import org.openide.util.ImageUtilities; public final class BrowserTopComponent extends TopComponent { private static final String ICON_PATH = "org/nbgit/resources/icons/gitvcs-icon.png"; // NOI18N - private static final String PREFERRED_ID = "BrowserTopComponent"; // NOI18N + private static final String PREFERRED_ID = "org-nbgit-ui-browser"; // NOI18N private int commitIndex = -1; public BrowserTopComponent(BrowserModel model) { -- 2.11.4.GIT