Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Riena Migrating to 3.0 from 2.0"

(API Incompatibilities)
Line 7: Line 7:
 
== API Incompatibilities ==
 
== API Incompatibilities ==
  
=== CompletionCombo - Removed methods ===
+
=== CompletionCombo - removed methods ===
 
The following methods have been removed, because they could not be provided in the RAP implementation of this widget (browsers don't allow programmatic access to the clipboard):
 
The following methods have been removed, because they could not be provided in the RAP implementation of this widget (browsers don't allow programmatic access to the clipboard):
 
* copy()
 
* copy()
Line 13: Line 13:
 
* paste()
 
* paste()
  
=== SWTFacade - Removed methods ===
+
=== GCFacade - removed methods ===
* getCursorControl(Display) &ndash; Removed. Both RCP and RAP now support <tt>display.getCursorControl()</tt>
+
 
+
=== GCFacade - Removed methods ===
+
 
* drawLine(GC, int, int, int, int) &ndash; Removed. Both RCP and RAP now support <tt>GC.drawLine(int, int, int, int)</tt>
 
* drawLine(GC, int, int, int, int) &ndash; Removed. Both RCP and RAP now support <tt>GC.drawLine(int, int, int, int)</tt>
 
* drawRoundRectangle(int, int, int, int, int, int) &ndash; Removed. Both RCP and RAP now support <tt>GC.drawRoundRectangle(int, int, int, int, int, int)</tt>
 
* drawRoundRectangle(int, int, int, int, int, int) &ndash; Removed. Both RCP and RAP now support <tt>GC.drawRoundRectangle(int, int, int, int, int, int)</tt>
 +
 +
=== GrabCorner - moved ===
 +
The class GrabCorner was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt. It is now in the bundle org.eclipse.riena.ui.swt, package org.eclipse.riena.ui.swt. This was done to enable single-sourcing.
 +
 +
=== GrabCornerListenerWithTracker - moved ===
 +
The class GrabCornerListenerWithTracker was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt.views. It is now no longer directly available. It can be found in the bundle org.eclipse.riena.ui.swt.rcp, package org.eclipse.riena.ui.swt.facades.internal &ndash; however direct access is not recommended, as it interferes with single-sourcing. Use the following, single-source compatible, code instead:
 +
 +
<tt>SWTFacade.getDefault().createGrabCornerListenerWithTracker(Control)</tt>
 +
 +
=== SWTFacade - removed methods ===
 +
* getCursorControl(Display) &ndash; Removed. Both RCP and RAP now support <tt>display.getCursorControl()</tt>
  
 
== Other Changes ==
 
== Other Changes ==

Revision as of 19:22, 17 December 2010

Introduction

Explains how to migrate to Riena 3.0 from 2.0

While every effort was made to avoid breakage, there are a few areas of incompatibility or new APIs that should be adopted by clients. This page describes those areas and provides migration instructions.

API Incompatibilities

CompletionCombo - removed methods

The following methods have been removed, because they could not be provided in the RAP implementation of this widget (browsers don't allow programmatic access to the clipboard):

  • copy()
  • cut()
  • paste()

GCFacade - removed methods

  • drawLine(GC, int, int, int, int) – Removed. Both RCP and RAP now support GC.drawLine(int, int, int, int)
  • drawRoundRectangle(int, int, int, int, int, int) – Removed. Both RCP and RAP now support GC.drawRoundRectangle(int, int, int, int, int, int)

GrabCorner - moved

The class GrabCorner was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt. It is now in the bundle org.eclipse.riena.ui.swt, package org.eclipse.riena.ui.swt. This was done to enable single-sourcing.

GrabCornerListenerWithTracker - moved

The class GrabCornerListenerWithTracker was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt.views. It is now no longer directly available. It can be found in the bundle org.eclipse.riena.ui.swt.rcp, package org.eclipse.riena.ui.swt.facades.internal – however direct access is not recommended, as it interferes with single-sourcing. Use the following, single-source compatible, code instead:

SWTFacade.getDefault().createGrabCornerListenerWithTracker(Control)

SWTFacade - removed methods

  • getCursorControl(Display) – Removed. Both RCP and RAP now support display.getCursorControl()

Other Changes

TDB

Back to the top