-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update of contribution classpath and pde spies in the target
- Loading branch information
Showing
5 changed files
with
14 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
com.vogella.contribute.parts/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=14 | ||
org.eclipse.jdt.core.compiler.compliance=14 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 | ||
org.eclipse.jdt.core.compiler.compliance=17 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning | ||
org.eclipse.jdt.core.compiler.release=enabled | ||
org.eclipse.jdt.core.compiler.source=14 | ||
org.eclipse.jdt.core.compiler.source=17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 5 additions & 19 deletions
24
com.vogella.contribute.parts/src/com/vogella/contribute/parts/AdditionalInformationPart.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,14 @@ | ||
package com.vogella.contribute.parts; | ||
|
||
import static org.eclipse.jface.databinding.swt.typed.WidgetProperties.text; | ||
|
||
import javax.annotation.PostConstruct; | ||
|
||
import org.eclipse.core.databinding.DataBindingContext; | ||
import org.eclipse.jface.databinding.swt.ISWTObservableValue; | ||
import org.eclipse.jface.widgets.TextFactory; | ||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.swt.widgets.Text; | ||
|
||
public class AdditionalInformationPart { | ||
@PostConstruct | ||
public void postConstruct(Composite parent) { | ||
Text modelText = new Text(parent, SWT.BORDER | SWT.MULTI); | ||
Text targetText = new Text(parent, SWT.BORDER | SWT.MULTI); | ||
DataBindingContext db = new DataBindingContext(); | ||
ISWTObservableValue<String> modelObserve = text(SWT.Modify).observeDelayed(5000, modelText); | ||
ISWTObservableValue<String> targetObserve = text(SWT.Modify).observe(targetText); | ||
db.bindValue(targetObserve, modelObserve); | ||
modelText.setText("Morning"); | ||
targetText.setText("Evening"); | ||
|
||
// modelText.addModifyListener(e -> targetText.setText(modelText.getText())); | ||
// targetText.addModifyListener(e -> modelText.setText(targetText.getText())); | ||
} | ||
@PostConstruct | ||
public void postConstruct(Composite parent) { | ||
TextFactory.newText(SWT.BORDER |SWT.MULTI).create(parent); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters