Package org.eclipse.wb.internal.core.model.property

Examples of org.eclipse.wb.internal.core.model.property.ObjectProperty


          return Activator.getImage("css_addStyle.png");
        }
      };

  private void openEditDialog(Property property) throws Exception {
    ObjectProperty objectProperty = (ObjectProperty) property;
    ObjectInfo objectInfo = objectProperty.getObjectInfo();
    IGwtStateProvider stateProvider = (IGwtStateProvider) objectInfo;
    // prepare not empty array of CSS files
    List<IFile> cssFiles = stateProvider.getState().getCssSupport().getFiles();
    if (cssFiles.isEmpty()) {
      MessageDialog.openError(
View Full Code Here


  private static String extractStyleName(String selector) {
    return StringUtils.removeStart(selector, ".");
  }

  private void openNewDialog(Property property) throws Exception {
    ObjectProperty objectProperty = (ObjectProperty) property;
    ObjectInfo objectInfo = objectProperty.getObjectInfo();
    IGwtStateProvider stateProvider = (IGwtStateProvider) objectInfo;
    // prepare default name
    String initialName = "newStyleName";
    if (property.getValue() instanceof String) {
      initialName = (String) property.getValue();
View Full Code Here

  // Editing
  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected void addItems(Property property, CComboBox combo) throws Exception {
    ObjectProperty objectProperty = (ObjectProperty) property;
    // prepare accessor
    ObjectInfo objectInfo = objectProperty.getObjectInfo();
    RuleAccessor accessor = RuleAccessor.get(objectInfo);
    // prepare style names
    List<String> styleNames = Lists.newArrayList();
    for (ContextDescription contextDescription : accessor.getContexts()) {
      for (CssRuleNode ruleNode : contextDescription.getRules()) {
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public Property[] getProperties(Property property) throws Exception {
    final String styleName = getText(property);
    // prepare model
    ObjectProperty objectProperty = (ObjectProperty) property;
    ObjectInfo objectInfo = objectProperty.getObjectInfo();
    // use RuleAccessor
    final RuleAccessor accessor = RuleAccessor.get(objectInfo);
    if (accessor.hasSemantics(styleName)) {
      return new Property[]{
          new StyleColorValueProperty(accessor, styleName, "color", "color"),
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.property.ObjectProperty

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.