Author: mareshkau
Date: 2007-09-17 10:08:06 -0400 (Mon, 17 Sep 2007)
New Revision: 3656
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/XPCOM.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
Log:
code adjustment
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/XPCOM.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/XPCOM.java 2007-09-17
13:42:37 UTC (rev 3655)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/XPCOM.java 2007-09-17
14:08:06 UTC (rev 3656)
@@ -24,6 +24,7 @@
public static final String NS_TRANSFERABLE_CONTRACTID =
"(a)mozilla.org/widget/transferable;1"; //$NON-NLS-1$
public static final String NS_WINDOWWATCHER_CONTRACTID =
"(a)mozilla.org/embedcomp/window-watcher;1"; //$NON-NLS-1$
public static final String NS_PREFSERVICE_CONTRACTID =
"(a)mozilla.org/preferences-service;1"; //$NON-NLS-1$
+ public static final String IN_FLASHER_CONTRACTID =
"(a)mozilla.org/inspector/flasher;1";
public static final String NS_IWEBBROWSER_CID =
"F1EAC761-87E9-11d3-AF80-00A024FFC08C"; // $NON-NLS-1$
public static final String NS_IAPPSHELL_CID =
"2d96b3df-c051-11d1-a827-0040959a28c9"; // $NON-NLS-1$
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2007-09-17
13:42:37 UTC (rev 3655)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2007-09-17
14:08:06 UTC (rev 3656)
@@ -13,7 +13,6 @@
import java.util.regex.Pattern;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
@@ -82,8 +81,6 @@
*/
private inIFlasher iFlasher;
private nsIDocShell docShell = null;
- //flasher contact id
- private static final String FLASHER_CIID="(a)mozilla.org/inspector/flasher;1";
/**
* RegExp for find expression 'display : none' in style string
@@ -362,7 +359,7 @@
if(iFlasher==null) {
nsIServiceManager serviceManager = Mozilla.getInstance().getServiceManager();
- iFlasher = (inIFlasher) serviceManager.getServiceByContractID(FLASHER_CIID,
inIFlasher.INIFLASHER_IID);
+ iFlasher = (inIFlasher)
serviceManager.getServiceByContractID(XPCOM.IN_FLASHER_CONTRACTID,
inIFlasher.INIFLASHER_IID);
iFlasher.setThickness(2);
}
return iFlasher;
@@ -499,8 +496,8 @@
}
}
} else if(getIFlasher()!=null){
- //Max Areshkau (bug on Mac OS X, when we swithc to preview grom other view, selection
rectangle doesn't disappear
- //TODO Max Areshkau (may be exist passability not draw selection on resize event when
we swithes to other view)
+ //Max Areshkau (bug on Mac OS X, when we switch to preview from other view, selection
rectangle doesn't disappear
+ //TODO Max Areshkau (may be exist passability not draw selection on resize event when
we switches to other view)
try {
((nsIBaseWindow)getWebBrowser().queryInterface(nsIBaseWindow.NS_IBASEWINDOW_IID)).repaint(true);
} catch(XPCOMException ex) {
Show replies by date