Articoli

Eclipse EMF: a CRUD at no-cost

This tutorial follows the one dedicated to modeling with EMF ( Eclipse EMF: Designing the Model ) In this article we will see how, through EMF automatic code generation tools, it's possible to generate a CRUD, an application that is able to perform typical operations for manipulating the contents of the model: Create (= insert), Read (= Select), Update and Delete. This management requires some form of persistence, however a "channel" storage of these information. In fact, in most cases it should be possible, for example: reload the data stored during a previous run or share data with other instances [...]

By |2012-06-08T11:52:29+00:00July 14th, 2011|

Eclipse EMF: Designing the Model

Eclipse Modeling Framework (EMF) is among the many frameworks of Eclipse ecosystem, the one that allows us to model the so-called application domain of your application, which is the set of entities, their attributes and their relationships. In this tutorial we will see how to use EMF to create the Model of an application. Before proceeding make sure you have a version of Eclipse with everything you need. This article was written using version Eclipse Juno Modeling. The Library model we will use as a sample is taken from the official EMF Tutorial : it consists of the entities Author, [...]

By |2013-10-08T23:38:31+00:00July 13th, 2011|

Better Software 2011

Also this year RCP Vision participates as Sponsor of Better Software event, an eclectic conference, full of topics presented by leading national software experts to develop ideas and find new inspirations. Better Software is the first Italian conference dedicated to software development and aimed at businessmen and managers in the industry. A unique opportunity for the exchange of IT culture where you can create new client relationships and partners. The event deals a variety of diverse topics related to software production, from the collection of specific to design, from project management to development, from licensing to marketing, and brings on [...]

By |2011-08-04T15:37:36+00:00May 13th, 2011|

Tutorial: an Application for showing SWT Examples

In this tutorial we will create an application in order to test the features of the Standard Widget Tootlkit (SWT) library. The figure below shows what the result will look like. INTRODUCTION First we will create a minimal RCP application, using the Plug-in Project creation Eclipse Wizard. The next step will consist into adding a third-party view (SWT Examples, from the Eclipse download site) to our minimal RCP application just created. The result will be an application that will allow us to test deeply all of the SWT library features. The main goal of this tutorial is show how easy [...]

By |2012-06-08T13:29:15+00:00May 6th, 2011|

Eclipse EMF: how to create and persist a model

In this tutorial we will learn how to create and persist an EMF model. The tutorial is based on Eclipse Galileo, but the steps should be the same for older versions. Anyway here are the steps needed if you decide to start from scratch. Download Eclipse Galileo Download Eclipse Galileo 3.5M6 from the Eclipse.org download page, extract on your file-system and run eclipse.exe. Add EMF and Teneo support Go to Help -> Install New Software...; in the text field "Work with:" select "All Avaiable Sites". In the text just after (not labeled) enter "EMF" and wait for the results; you [...]

By |2020-04-27T08:47:05+00:00May 5th, 2011|

Eclipse Visual Editor: on the road again!

News Update june 1st, 2011: Visual Editor Project was archived (here the announcement and the archived project page) You will find an update of the news on page And the winner is: WindowBuilder   In the Visual Editor Project home page you still can read that the project "is migrating progressively to Eclipse 3.3 (Europa)". Indeed many of you may have had more than a problem when trying to install VE on Eclipse 3.4 (Ganymede) or on the upcoming Eclipse 3.5 (Galileo). Well, the years of troubles seems to be gone and Eclipse Visual Editor is again with us! In [...]

By |2012-06-08T13:33:48+00:00May 4th, 2011|

Eclipse: installing EMF

In this section we will see how to install the Eclipse Modeling Framework SDK and related tools in Helios (Eclipse 3.6). The following steps have been performed starting from the Eclipse Classic 3.6M4 and are required if you intend to follow our EMF tutorials. Go to menu item Help -> Install New Software..., select --All Available Sites-- and check these items:then click the Next button and follow the wizard until you will be prompted to restart Eclipse.

By |2012-06-08T13:32:01+00:00May 4th, 2011|

Managing menu items visibility

In order to manage the visibility of a menu item we can extend AbstractSourceProvider. Let's see how to do that. First of all we have to create a class that extends AbstractSourceProvider. This class is intended to hold the state variable and provide it to the platform when needed. In this example we intend to manage the visibility of a menu item depending on the user profile. [java] package com.rcpvision; import java.util.HashMap; import java.util.Map; import org.eclipse.ui.AbstractSourceProvider; import org.eclipse.ui.ISources; public class SessionSourceProvider extends AbstractSourceProvider { public final static String SESSION_USER_CAN_SEE_PREFS = "com.rcpvision.session.user-can-see-preferences"; private final static String CAN_SEE = "canSee"; private final [...]

By |2013-01-25T11:19:18+00:00April 27th, 2011|
Go to Top