Author: ayukhovich
Date: 2007-09-07 03:46:55 -0400 (Fri, 07 Sep 2007)
New Revision: 3479
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-742
Restoring functionality of resizing
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java 2007-09-06
20:19:57 UTC (rev 3478)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java 2007-09-07
07:46:55 UTC (rev 3479)
@@ -96,15 +96,11 @@
nsIDOMElement domElement = (nsIDOMElement) eventTarget
.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
if (domElement != null) {
- System.out.println("ELEMENT IS: " + domElement.getNodeName());
int clientX = mouseEvent.getClientX();
int clientY = mouseEvent.getClientY();
vpeResizer.mouseDown(clientX, clientY, domElement);
- } else {
- System.out.println("ELEMENT IS NULL ");
}
-
} // if
} // if
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java 2007-09-06
20:19:57 UTC (rev 3478)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java 2007-09-07
07:46:55 UTC (rev 3479)
@@ -140,14 +140,11 @@
public void show(nsIDOMElement domElement, int resizers) {
if ( resizingObject != null ) {
- System.out.println("XulRunnerVpeResizer.show before hide for element: " +
resizingObject.getNodeName() );
hide();
}
resizingObject = domElement;
- System.out.println("XulRunnerVpeResizer.show for element: " +
resizingObject.getNodeName() );
-
elementBounds = XulRunnerVpeUtils.getElementBounds(domElement);
if ((elementBounds.width <= 0) ||
@@ -227,10 +224,6 @@
* @see org.jboss.vpe.mozilla.resizer.IVpeResizer#hide()
*/
public void hide() {
- if ( resizingObject != null ) {
- System.out.println("XulRunnerVpeResizer.hide for element: " +
resizingObject.getNodeName() );
- }
-
nsIDOMElement bodyElement;
bodyElement = getRootElement();