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

Riena Migrating to 3.0 from 2.0

Revision as of 14:37, 28 February 2011 by Elias.eclipsesource.com (Talk | contribs) (CompletionCombo - removed methods)

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