Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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"

m (SWTFacade - Removed methods)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{#eclipseproject:rt.riena}}
 
== Introduction ==
 
== Introduction ==
  
Line 7: Line 8:
 
== 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 14:
 
* paste()
 
* paste()
  
=== SWTFacade - Removed methods ===
+
Use <tt>setAutoCompletionMode(AutoCompletionMode)</tt> to select the auto-completion strategy. The methods below are no longer supported and have been removed (ref. Bug 337921):
 +
* setAutoCompletion(boolean)
 +
* isAutoCompletion()
 +
 
 +
=== 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>
 +
* 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 - removed ===
 +
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 still 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>
 +
 
 +
=== ModuleToolTip - removed ===
 +
The class ModuleToolTip was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt.component. It is now no longer directly available. It has been replaced with the class EmbeddedTitleBarToolTip, which 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().createEmbeddedTitleBarToolTip(title);</tt>
 +
 
 +
=== SWTFacade - removed methods ===
 
* getCursorControl(Display) &ndash; Removed. Both RCP and RAP now support <tt>display.getCursorControl()</tt>
 
* getCursorControl(Display) &ndash; Removed. Both RCP and RAP now support <tt>display.getCursorControl()</tt>
 +
 +
=== SubModuleToolTip - removed ===
 +
The class SubModuleToolTip was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt.component. It is now no longer directly available. It can still 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().createEmbeddedTitleBarToolTip(EmbeddedTitleBar)</tt>
  
 
== Other Changes ==
 
== Other Changes ==

Latest revision as of 03:51, 8 July 2011

{{#eclipseproject:rt.riena}}

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()

Use setAutoCompletionMode(AutoCompletionMode) to select the auto-completion strategy. The methods below are no longer supported and have been removed (ref. Bug 337921):

  • setAutoCompletion(boolean)
  • isAutoCompletion()

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 - removed

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 still 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)

ModuleToolTip - removed

The class ModuleToolTip was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt.component. It is now no longer directly available. It has been replaced with the class EmbeddedTitleBarToolTip, which 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().createEmbeddedTitleBarToolTip(title);

SWTFacade - removed methods

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

SubModuleToolTip - removed

The class SubModuleToolTip was previously in the bundle org.eclipse.riena.navigation.ui.swt, package org.eclipse.riena.navigation.ui.swt.component. It is now no longer directly available. It can still 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().createEmbeddedTitleBarToolTip(EmbeddedTitleBar)

Other Changes

TDB

Back to the top