Package bibliothek.util

Examples of bibliothek.util.Path


     * Grants access to the preferences concerning the {@link ButtonContent}.
     * @return the model, not <code>null</code>
     * @throws IllegalStateException if the model was removed or replaced by the client
     */
    public ButtonContentPreferenceModel getButtonContent(){
      PreferenceModel model = getModel( new Path( "buttonContent" ) );
      if( model instanceof ButtonContentPreferenceModel ){
        return (ButtonContentPreferenceModel)model;
      }
      else{
        throw new IllegalStateException( "this model has been removed" );
View Full Code Here


     * Grants access to the preferences concerning the {@link BubbleTheme}.
     * @return the model, not <code>null</code>
     * @throws IllegalStateException if the model was removed or replaced by the client
     */
    public BubbleThemePreferenceModel getBubbleThemePreferences(){
      PreferenceModel model = getModel( new Path( "layout.BubbleTheme" ) );
      if( model instanceof BubbleThemePreferenceModel ){
        return (BubbleThemePreferenceModel)model;
      }
      else{
        throw new IllegalStateException( "this model has been removed" );
View Full Code Here

     * Grants access to the preferences concerning the {@link EclipseTheme}.
     * @return the model, not <code>null</code>
     * @throws IllegalStateException if the model was removed or replaced by the client
     */
    public EclipseThemePreferenceModel getEclipseThemePreferences(){
      PreferenceModel model = getModel( new Path( "layout.EclipseTheme" ) );
      if( model instanceof EclipseThemePreferenceModel ){
        return (EclipseThemePreferenceModel)model;
      }
      else{
        throw new IllegalStateException( "this model has been removed" );
View Full Code Here

   * unique identifier <code>id</code>.
   * @param id the unique identifer of a {@link SingleCDockable}
   * @return the placeholder for that dockable
   */
  public static Path getSingleDockablePlaceholder( String id ){
    return new Path( "dock", "single", id );
  }
View Full Code Here

   * unique identifier <code>id</code>.
   * @param id the unique identifer of a {@link MultipleCDockable}
   * @return the placeholder for that dockable
   */
  public static Path getMultipleDockablePlaceholder( String id ){
    return new Path( "dock", "multi", id );
  }
View Full Code Here

      return getSingleDockablePlaceholder( id );
    }
    if( cdockable instanceof MultipleCDockable ){
      CDockableAccess access = controlAccess.access( cdockable );
      if( access != null ){
        Path result = getMultipleDockablePlaceholder( controlAccess.getRegister().multiToNormalId( access.getUniqueId() ) );
        multiplePlaceholders.put( (MultipleCDockable)cdockable, result );
        return result;
      }
    }
    return null;
View Full Code Here

    byte version = in.readByte();
    if( version != 0 ){
      throw new IOException( "unknown version: " + version );
    }
    if( in.readBoolean() ){
      return new Path( in.readUTF() );
    }
    else{
      return null;
    }
  }
View Full Code Here

  public Path read( XElement element, PlaceholderStrategy placeholders ){
    XElement xtype = element.getElement( "type" );
    if( xtype == null ){
      return null;
    }
    return new Path( xtype.getString() );
  }
View Full Code Here

      throw new IllegalArgumentException( "expected the 'element' to be a '" + CommonDockStation.class.getSimpleName() + "', but instead it was a '" + element.getClass().getName() + "'.\n" +
          "The reason for this exception may be be:\n - a DockElement that was registered with the wrong unique identifier\n - the type of a DockElement was changed\n - a SingleCDockableFactory creating the wrong type of items.\n"+
          "Type and toString of 'element': " + element.getClass().getName() + ",\n" + element);
    }
    CStation<?> station = ((CommonDockStation<?, ?>)element).getStation();
    Path typeId = station.getTypeId();
    if( typeId != null && !typeId.equals( layout )){
      throw new IllegalArgumentException( "expected the 'element' to have type id '" + layout + "', but instead it was '" + typeId + "'.\n" +
          "The reason for this exception may be be:\n - a DockElement that was registered with the wrong unique identifier\n - the type of a DockElement was changed\n - a SingleCDockableFactory creating the wrong type of items.\n"+
          "Type and toString of 'element': " + station.getClass().getName() + ",\n" + station);
    }
  }
View Full Code Here

     * Creates a new preference.
     * @param properties the default settings
     * @param themes a list of themes to show
     */
    public ThemePreference( DockProperties properties, ThemeMap themes ){
        super( Path.TYPE_STRING_CHOICE_PATH, new Path( "dock.theme" ));
        this.themes = themes;
        this.controller = properties.getController();
       
        setValueInfo( new ThemeChoice( themes, controller ) );
       
View Full Code Here

TOP

Related Classes of bibliothek.util.Path

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.