Skip to content

Commit

Permalink
Suppport for viewing instructions description in a browser
Browse files Browse the repository at this point in the history
  • Loading branch information
emdot committed Mar 3, 2006
1 parent a04ae09 commit 70bfefe
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion netbeans/jclasslibSuite/browser/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Manifest-Version: 1.0
OpenIDE-Module: org.netbeans.modules.jclasslib
OpenIDE-Module-Layer: org/netbeans/modules/jclasslib/layer.xml
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/jclasslib/Bundle.properties
OpenIDE-Module-Specification-Version: 1.1
OpenIDE-Module-Specification-Version: 1.2

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=e3e9f9bd
nbproject/build-impl.xml.data.CRC32=b117b6b8
nbproject/build-impl.xml.script.CRC32=bcc27bc4
nbproject/build-impl.xml.stylesheet.CRC32=d126b16b
8 changes: 8 additions & 0 deletions netbeans/jclasslibSuite/browser/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
<specification-version>1.7.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.awt</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>6.7.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.dialogs</code-name-base>
<build-prerequisite/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
Expand All @@ -33,6 +35,7 @@
import org.openide.DialogDisplayer;
import org.openide.ErrorManager;
import org.openide.NotifyDescriptor;
import org.openide.awt.HtmlBrowser;
import org.openide.filesystems.FileChangeAdapter;
import org.openide.filesystems.FileEvent;
import org.openide.filesystems.FileObject;
Expand Down Expand Up @@ -260,6 +263,15 @@ private static void setBrowserPathSafely(
}
}

public void showURL(final String urlSpec) {
try {
URL url = new URL(urlSpec);
HtmlBrowser.URLDisplayer.getDefault().showURL(url);
} catch (MalformedURLException e) {
ErrorManager.getDefault().notify(ErrorManager.WARNING, e);
}
}

private class DefaultAction extends AbstractAction {

DefaultAction(String name, Icon icon) {
Expand Down
2 changes: 1 addition & 1 deletion netbeans/jclasslibSuite/wrapper/manifest.mf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Manifest-Version: 1.0
OpenIDE-Module: org.gjt.jclasslib
OpenIDE-Module-Localizing-Bundle: org/gjt/jclasslib/Bundle.properties
OpenIDE-Module-Specification-Version: 3.0
OpenIDE-Module-Specification-Version: 3.0.0.1

Binary file not shown.

0 comments on commit 70bfefe

Please sign in to comment.