Vincenzo

About Vincenzo Caselli

This author has not yet filled in any details.
So far Vincenzo Caselli has created 40 blog entries.

Label and Content Providers for JFace TreeViewer

The JFace library offers some widgets, called viewers, that can represent a data model. What are they for? Let's suppose you want to show a table, a tree or a combo in order to visualize a list of objects or a hierarchical structure. You could certainly make use of basic widgets like Table, Tree or Combo, but they are usually not a good choice. Imagine you while filling a table, row by row, starting from a list of Orders and your focus is doing some action with the Order that the user selected. With a Table widget you have to [...]

By |2012-06-08T11:51:48+00:00August 7th, 2011|

Open Source for the Automotive Software development

Ottawa, Canada - July 20, 2011 The Eclipse Foundation is pleased to announce the creation of a new open source initiative to define and implement a standard platform for the software development tools used in the automotive industry. BMW Group, Robert Bosch GmbH, Continental AG and Itemis AG are founding members of the initiative. The new Eclipse Automotive Industry Working Group will be open to any organizations that want to participate in the goal of establishing a standard tools platform that will be used throughout the automotive supply chain. In reality, the initiative has taken the first steps several years [...]

By |2011-08-11T10:47:07+00:00July 21st, 2011|

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|

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|

Visual Editor or WindowBuilder Pro

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 Would you like having a free visual editor for designing your UI in Eclipse RCP technology with Helios (3.6) or Galileo (3.5)? Since yesterday, September 16th 2010, you do not have one choice, but two! You can opt for Eclipse Visual Editor or for WindowBuilder Pro! Visual Editor? But it had some problems when installed on Eclipse Helios (at least after the M4 version), isn't it so? [...]

By |2012-06-08T13:33:23+00:00March 30th, 2011|

Eclipse: installing CDO & Net4j

In this section we will see how to install the CDO & Net4j SDKs in Helios (Eclipse 3.6) with EMF already installed. If you have not already installed EMF, please follow the steps illustraded in the Eclipse: installing EMF tutorial. 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:34:22+00:00March 30th, 2011|
Go to Top