Package net.sf.myway.map.profiles

Examples of net.sf.myway.map.profiles.Profile


  /**
   * @see net.sf.myway.map.bl.MapBL#getProfile(java.lang.String)
   */
  @Override
  public Profile getProfile(final String profileName) {
    Profile profile = _profileCache.get(profileName);
    if (profile == null) {
      final InputStream in = Profile.class.getResourceAsStream(profileName + ".xml");
      try {
        profile = ProfileParser.parse(in);
        profile.setName(profileName);
        _profileCache.put(profileName, profile);
        in.close();
        if (!profileName.equals("default"))
          profile.setParent(getProfile("default"));
      }
      catch (final IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
View Full Code Here


    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;
View Full Code Here

TOP

Related Classes of net.sf.myway.map.profiles.Profile

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.