doesn't seem to work (or even compile) with recent (=24) XULRunner versions
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding
Hello all,
we are using XULRunner 24 embedded in a Java application through Eclipse SWT.
We need extended functionality only available through the XPCOM API, and since
the old JavaXPCOM binding has vanished, we are migrating all code to C++, which
we access from Java through a narrow JNI API.
Hello,
me again ;). We are embedding XULRunner in our Java application, using a thin
integration layer written in C++ that provides extended functionality. We also
have a XPCOM component written in Javascript, which we previously called though
JavaXPCOM, and now need to call from C++. However,
Hi,
I almost expected this answer. Actually, we already have the working code in a
Javascript component, which we previously called via JavaXPCOM. Since we are
now forced to write our own C++ XPCOM access layer, I thought it would make
sense to also migrate the component code in order to limit
no, file points to the directory where the component resides. I dont know
where the output from nsIConsoleService goes, as that is maintained by the
Eclipse/SWT integration. I'll try pointing to the manifest file. Thanks
___
dev-embedding mailing list
doesnt work. I am creating the file like this:
retval = directory-Get(NS_GRE_DIR, NS_GET_IID(nsILocalFile), (void **)greDir);
file-InitWithFile(greDir);
file-AppendRelativePath(NS_LITERAL_STRING(components/components.manifest));
the contents of the components.manifest file are just one line:
added component and contract entries to the manifest file, still no hope. BTW,
file-Exists() returns true.
I am out till next week. This was a fruitless day..
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
I tried that, too, but it didn't do the job either. However, today I found this
article:
https://developer.mozilla.org/en-US/docs/Mozilla/XPCOM/XPCOM_changes_in_Gecko_2.0,
which seems to indicate that I also have to update the javascript component
code. I'll do that on monday.
thanks for your
so I've tried to follow the guide under the URL in my previous mail, but still
no success.
However, looking at the source code of my component, and the sample code under
the mentioned URL, I found an import reference to an external file:
the AppendRelativePath actually returns an NS_ERROR_UNRECOGNIZED_PATH (never
checked the return code before)! The file does exist on the filesystem! How in
the world am I to create the nsIFile object? What is going wrong??
___
dev-embedding mailing
replaced the
file-AppendRelativePath(NS_LITERAL_STRING(components/components.manifest));
with 2 calls:
retval = file-Append(NS_LITERAL_STRING(components));
retval = file-Append(NS_LITERAL_STRING(components.manifest));
now the manifest file is detected and parsed, resulting in a
heres the code that fails to load the component:
nsCOMPtrnsIRegionCapture regionPrinter;
retval = servMan-GetServiceByContractID(@mozilla.org/regioncapture;1,
NS_GET_IID(nsIRegionCapture), getter_AddRefs(regionPrinter));
___
dev-embedding mailing
added another line to components.manifest, as mentioned in the referenced
document:
category profile-after-change RegionCapture @mozilla.org/regioncapture;1
still getting NS_ERROR_FACTORY_NOT_REGISTERED. There are no error messages in
nsIConsoleService (at least none my listener gets). This is
ok, I finally got it registered, there was one change that I had applied to the
wrong copy of one file. So, in summary, heres the steps I had to go through:
1. create a manifest file with the described entries
2. change the component javascript file and add the generateNSGetFactory thingy
3.
Hello,
after getting components to register successfully in our Java embedded
XULRunner, I am now dealing with plugins/addons. In particular, we need plugins
for PDF.
First thing I did was to copy the related executables (DLLs to the plugins
directory, EXEs to the xulrunner base directory).
we have done something similar, actually also from within SWT/Java. Heres some
caveats:
1. If you want a version of XULRunner 10, you must move up to at least
Eclipse 4.4M5. That version supports XULRunner 24. You can, however, manipulate
your Eclipse target to include the 4.4M5 SWT bundles
Hello,
I have the following class declaration:
class MyLocationListener: public nsIWebProgressListener
{
public:
MyLocationListener();
virtual ~MyLocationListener();
NS_DECL_ISUPPORTS
NS_DECL_NSIWEBPROGRESSLISTENER
};
and the corresponding implementation. I am using this class in the
ok, I have finally managed. Heres the code:
//class decl
class LocationListener: public nsIWebProgressListener, public
nsSupportsWeakReference
{
public:
LocationListener();
virtual ~LocationListenerW();
NS_DECL_ISUPPORTS
NS_DECL_NSIWEBPROGRESSLISTENER
};
//class impl
18 matches
Mail list logo