Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Handler can not search desired class
Handler can not search desired class [message #1257556] Wed, 26 February 2014 15:14 Go to next message
Muhammad Salman is currently offline Muhammad SalmanFriend
Messages: 3
Registered: February 2014
Junior Member

I am a learner I have searched over internet also but could not found or relate answers

I make dialogue class and a class to open it from handler
but when I press Find Class option in handler it doesnt show desired class I have made a Menu and a Command the menu stay dim(not activated means i cant click it)

Here is the code of both classes

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.nebula.widgets.cdatetime.CDT;
import org.eclipse.nebula.widgets.cdatetime.CDateTime;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;


public class Voggela extends TitleAreaDialog {

  public Voggela(Shell parentShell) {

  public void create() {
    setTitle(" Weather Data Simulation ");
    setMessage("This is a TitleAreaDialog", IMessageProvider.INFORMATION);

  protected Control createDialogArea(Composite parent) {
	Composite area = (Composite) super.createDialogArea(parent);
    Composite container = new Composite(area, SWT.NONE);
    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    GridLayout layout = new GridLayout(2, false);
    container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));


    return area;

  private void createtextComposite(Composite container){
	    Composite textComposite = new Composite(container, SWT.CENTER);
	    GridLayout textGrid = new GridLayout();
	    textGrid.numColumns = 4;
	    new Label(textComposite, SWT.NONE);
	    Label lblNewLabel = new Label(textComposite, SWT.NONE);
	    new Label(textComposite, SWT.NONE);
	    Label lblNewLabel_2 = new Label(textComposite, SWT.NONE);
	    lblNewLabel_2.setText("File Name ABC");
	    new Label(textComposite, SWT.NONE);
	    Label lblNewLabel_1 = new Label(textComposite, SWT.NONE);
	    new Label(textComposite, SWT.NONE);
	    Label lblNewLabel_3 = new Label(textComposite, SWT.NONE);
	    GridData gd_lblNewLabel_3 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
	    gd_lblNewLabel_3.heightHint = 16;
	    lblNewLabel_3.setText("Name  Data");

  private void createDateComposite(Composite container){
	    Composite dateComposite = new Composite(container, SWT.CENTER);
	    dateComposite.setLayout(new GridLayout(2, true));
	    GridData gd_dateComposite = new GridData(SWT.FILL, SWT.FILL, true, true);
	    gd_dateComposite.heightHint = 77;
	    Label startDate = new Label(dateComposite,SWT.READ_ONLY | SWT.TOP);
	    startDate.setText("Start Date");
	    startDate.setLayoutData(new GridData(SWT.CENTER, SWT.BOTTOM, true, true));
	    Label endDate = new Label(dateComposite,SWT.READ_ONLY | SWT.TOP);
	    endDate.setText("End Date");
	    endDate.setLayoutData(new GridData(SWT.CENTER, SWT.BOTTOM, true, true));
	    final CDateTime cdtStop = new CDateTime(dateComposite, CDT.BORDER | CDT.DROP_DOWN);
	    cdtStop.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, true, true));
	    final CDateTime cdtStart = new CDateTime(dateComposite, CDT.BORDER | CDT.DROP_DOWN);
	    cdtStart.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, true, true));
  protected boolean isResizable() {
    return true;


import javax.inject.Named;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.swt.widgets.Shell;

import de.fraunhofer.iwes.coast.simulator.userstories.dialog.Voggela;

public class OpenHandler {
	  public void execute(
	  @Named(IServiceConstants.ACTIVE_SHELL) final Shell shell) {
		Voggela dialog = new Voggela(shell);; 


Re: Handler can not search desired class [message #1264589 is a reply to message #1257556] Wed, 05 March 2014 10:40 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

So what's your issue ? 'Find class' in the e4xmi editor does not work for handlers? I think it does as I use it daily.
Re: Handler can not search desired class [message #1264604 is a reply to message #1264589] Wed, 05 March 2014 10:52 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6600
Registered: July 2009
Senior Member
IIRC it takes the classpath into account so if the handler is defined in
another bundle than the e4xmi then it would be found.


On 05.03.14 11:40, Sopot Cela wrote:
> So what's your issue ? 'Find class' in the e4xmi editor does not work
> for handlers? I think it does as I use it daily.
Previous Topic:No CSS styling in exported Eclipse RCP product
Next Topic:target definition error
Goto Forum:

Current Time: Sat Jul 24 09:04:12 GMT 2021

Powered by FUDForum. Page generated in 0.02310 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top