-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple example of a dummy e4 editor addition, which is contributed via a Model Fragment #2766
Simple example of a dummy e4 editor addition, which is contributed via a Model Fragment #2766
Conversation
…a a Model Fragment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the example I think in gernal it is good but ther is no need to name it "dummy" :-)
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.swt.widgets.Text; | ||
|
||
public class DummyEditor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class DummyEditor { | |
public class ExampleE4Editor { | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified as suggested in latest version.
@PostConstruct | ||
public void postConstruct(Composite parent) { | ||
Text label = new Text(parent, SWT.ITALIC); | ||
label.setText("Dummy Editor Content..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label.setText("Dummy Editor Content..."); | |
label.setText("E4 Editor Content..."); | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified as suggested in latest version.
:) OK makes sense, I'll remove the 'dummy' references throughout.. and update the PR |
… to 'dummy' throughout to be replaced with 'e4', including the plugin name itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
This pull request was created in response to the suggestion from @laeubi in the Issue #2764