Bug 373504 - WidgetProperties.text(int event) is automatically changed into Italic and produces an error
Summary: WidgetProperties.text(int event) is automatically changed into Italic and pro...
Status: RESOLVED INVALID
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.7.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2012-03-07 07:50 EST by MyungWoon Oh CLA
Modified: 2012-03-07 20:38 EST (History)
1 user (show)

See Also:


Attachments
Screen Capture (37.35 KB, image/png)
2012-03-07 07:59 EST, MyungWoon Oh CLA
no flags Details
Source File (4.10 KB, text/plain)
2012-03-07 08:00 EST, MyungWoon Oh CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description MyungWoon Oh CLA 2012-03-07 07:50:57 EST
Build Identifier: Version: Indigo Service Release 2 Build id: 20120216-1857

I'm working on databinding between SWT widgets and EMF Model.

To bind those values, I wrote

IObservableValue widgetValue = WidgetProperties.text(SWT.Modify).observe(firstName);

But Eclipse automatically changes the 'text' and 'Modify' of that sentence into Italic font and produces an error which says,

'The type org.eclipse.core.databinding.property.value.IValueProperty cannot be resolved. It is indirectly referenced from required .class files'

Strange thing is that only the first use of 'WidgetProperties.text(SWT.Modify)' produces that error.

When I write second or third use of 'WidgetProperties.text(SWT.Modify)' to bind other values, Eclipse doesn't change 'text' and 'Modify' into Italic, and no errors found on the second or third use.

Reproducible: Always

Steps to Reproduce:
1. Close and Restart Eclipse
2. Open the source file, Cut the related sentences and Save
3. Eclipse doesn't produce any error
4. Paste the related sentences
5. In about a second, Eclipse reproduces the same problem(change some code into Italic and error)
Comment 1 MyungWoon Oh CLA 2012-03-07 07:59:27 EST
Created attachment 212201 [details]
Screen Capture
Comment 2 MyungWoon Oh CLA 2012-03-07 08:00:45 EST
Created attachment 212202 [details]
Source File
Comment 3 MyungWoon Oh CLA 2012-03-07 08:06:55 EST
To verify the problem

Create a RCP Project with 'RCP Application with a view' template through the 'New Plug-in Project' Wizard.

And replace View.java file with the attached file.
Comment 4 Remy Suen CLA 2012-03-07 08:12:21 EST
Sounds to me like your MANIFEST.MF file is missing some required bundles.
Comment 5 MyungWoon Oh CLA 2012-03-07 20:21:36 EST
Thank you, Remy Suen.

This was not a bug but my fault.

To add 'org.eclipse.core.databinding.property' to Dependency Tab of plugin.xml resolves this problem.
Comment 6 Remy Suen CLA 2012-03-07 20:38:50 EST
(In reply to comment #5)
> This was not a bug but my fault.
> 
> To add 'org.eclipse.core.databinding.property' to Dependency Tab of plugin.xml
> resolves this problem.

Resolving.