Package net.sf.myway.hibernate

Examples of net.sf.myway.hibernate.NamedUuidEntity


    layout.marginWidth = 0;
    layout.numColumns = 2;
    split.setLayout(layout);
    _viewer = createGraphicalViewer(split);
    _viewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH));
    final NamedUuidEntity data = (NamedUuidEntity) getEditorInput().getAdapter(
      NamedUuidEntity.class);
    final Profile profile = data instanceof ScannedMap ? EditPlugin.getBL().getProfile(
      (ScannedMap) data) : EditPlugin.getBL().getDefaultProfile();
    _palette = new MapPalette(getEditDomain(), profile);
    final PaletteViewer paletteViewer = _palette.createPaletteViewer(split);
    final GridData gd = new GridData(GridData.FILL_VERTICAL);
    gd.widthHint = 175;
    paletteViewer.getControl().setLayoutData(gd);
    setPartName(data.getName());
  }
View Full Code Here


  }

  @Override
  public String getText(final Object obj) {
    if (obj instanceof NamedUuidEntity) {
      final NamedUuidEntity nu = (NamedUuidEntity) obj;
      return nu.getName();
    }
    return obj.toString();
  }
View Full Code Here

TOP

Related Classes of net.sf.myway.hibernate.NamedUuidEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.