Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3990606
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:30:56+00:00 2026-05-20T06:30:56+00:00

Our application (Eclipse RCP-based, using a JFace/SWT-based interface) needs to support editing of mathematical

  • 0

Our application (Eclipse RCP-based, using a JFace/SWT-based interface) needs to support editing of mathematical matrices. The matrices are always square and can be any size from 2×2 to 11×11. Additionally, buttons will be placed on the interface to allow the user to grow or shrink the matrix.

We use JFace TableViewers and TreeViewers throughout our code for editing the non-matrix data. If at all possible I’d like to use the same general structure for editing the matrices.

I persist the data in the MySQL database using one row per matrix element, as such:

+----------------------+------------+------+-----+---------+-------+
| Field                | Type       | Null | Key | Default | Extra |
+----------------------+------------+------+-----+---------+-------+
| id                   | bigint(20) | NO   | PRI | NULL    |       |
| rowNum               | bigint(20) | NO   |     | NULL    |       |
| columnNum            | bigint(20) | NO   |     | NULL    |       |
| value                | double     | NO   |     | NULL    |       |
| matrix_id            | bigint(20) | NO   | MUL | NULL    |       |
+----------------------+------------+------+-----+---------+-------+

The problem I’m running into is that the JFace “input” seems to correspond to a single table row in the rendered table. In my case, a single database row corresponds with a cell in the table, not an entire row.

The only thing I can think of is to somehow store an object behind the scenes that keeps the matrix-ified state and effectively translates database rows into an appropriately JFace-able model. (E.g., if I have a 3×3 matrix, pass in the nine rows into the proxy object and have it call viewer.setInput(Object) with a three-by-three array. This seems like a nightmare to support though, as I’ll need to keep this object in sync with both the internal model and the database.

Does anyone here have experience with this kind of thing and could possibly lend me some suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:30:57+00:00Added an answer on May 20, 2026 at 6:30 am

    No answers after more than a week, so I ended up rolling my own on this one. I made a class that effectively served as the input for the JFace table which converted the rows and columns of the matrix into a List<List<Double>>; then had the ContentProvider, LabelProvider, and EditingSupport work with that. I was also able to add “Increase size” and “Decrease size” buttons to allow the user to grow or shrink the matrix as necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an Eclipse RCP-based application, and we have decided that we
Our application (C#/.NET) needs a lot of queries to search. Google's 50,000 policy per
When I launch our application in Eclipse on Windows I receive the following error:
Our project in eclipse approximately shows the following folders: application - src - JRE
generally by using my-eclipse we add struts,hibernate and jpa capabilities to our applications/projects, like
Our application is interfacing with a lot of web services these days. We have
Our application is a hybrid Win32 unmanaged application and a .NET 2.0 managed application.
Our application has a file format similar to the OpenDocument file format (see http://en.wikipedia.org/wiki/OpenDocument
Our application is structured something like: UI <--> REST API <--> Workflow <--> Business
Our application takes significantly more time to launch after a reboot (cold start) than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.