Package org.eclipse.gmf.runtime.common.ui.services.parser

Examples of org.eclipse.gmf.runtime.common.ui.services.parser.IParser


    IAdaptable hintAdapter = new OntoUML.diagram.providers.OntoUMLParserProvider.HintAdapter(
        OntoUML.diagram.providers.OntoUMLElementTypes.MemberOf_4009,
        (view.getElement() != null ? view.getElement() : view),
        OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getType(OntoUML.diagram.edit.parts.WrappingLabel21EditPart.VISUAL_ID));
    IParser parser = ParserService.getInstance().getParser(hintAdapter);
    if (parser != null) {
      return parser.getPrintString(hintAdapter, ParserOptions.NONE
          .intValue());
    } else {
      return ""; //$NON-NLS-1$
    }
View Full Code Here


    IAdaptable hintAdapter = new OntoUML.diagram.providers.OntoUMLParserProvider.HintAdapter(
        OntoUML.diagram.providers.OntoUMLElementTypes.SubCollectionOf_4010,
        (view.getElement() != null ? view.getElement() : view),
        OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getType(OntoUML.diagram.edit.parts.WrappingLabel23EditPart.VISUAL_ID));
    IParser parser = ParserService.getInstance().getParser(hintAdapter);
    if (parser != null) {
      return parser.getPrintString(hintAdapter, ParserOptions.NONE
          .intValue());
    } else {
      return ""; //$NON-NLS-1$
    }
View Full Code Here

    IAdaptable hintAdapter = new OntoUML.diagram.providers.OntoUMLParserProvider.HintAdapter(
        OntoUML.diagram.providers.OntoUMLElementTypes.SubQuantityOf_4011,
        (view.getElement() != null ? view.getElement() : view),
        OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getType(OntoUML.diagram.edit.parts.WrappingLabel25EditPart.VISUAL_ID));
    IParser parser = ParserService.getInstance().getParser(hintAdapter);
    if (parser != null) {
      return parser.getPrintString(hintAdapter, ParserOptions.NONE
          .intValue());
    } else {
      return ""; //$NON-NLS-1$
    }
View Full Code Here

    IAdaptable hintAdapter = new OntoUML.diagram.providers.OntoUMLParserProvider.HintAdapter(
        OntoUML.diagram.providers.OntoUMLElementTypes.BinaryAssociationAtom_4015,
        (view.getElement() != null ? view.getElement() : view),
        OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getType(OntoUML.diagram.edit.parts.BinaryAssociationAtomNameEditPart.VISUAL_ID));
    IParser parser = ParserService.getInstance().getParser(hintAdapter);

    if (parser != null) {
      return parser.getPrintString(hintAdapter, ParserOptions.NONE
          .intValue());
    } else {
      OntoUML.diagram.part.OntoUMLDiagramEditorPlugin.getInstance()
          .logError("Parser was not found for label " + 6019); //$NON-NLS-1$
      return ""; //$NON-NLS-1$
View Full Code Here

    IAdaptable hintAdapter = new OntoUML.diagram.providers.OntoUMLParserProvider.HintAdapter(
        OntoUML.diagram.providers.OntoUMLElementTypes.ClassifierAtom_4018,
        (view.getElement() != null ? view.getElement() : view),
        OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getType(OntoUML.diagram.edit.parts.ClassifierAtomNameEditPart.VISUAL_ID));
    IParser parser = ParserService.getInstance().getParser(hintAdapter);

    if (parser != null) {
      return parser.getPrintString(hintAdapter, ParserOptions.NONE
          .intValue());
    } else {
      OntoUML.diagram.part.OntoUMLDiagramEditorPlugin.getInstance()
          .logError("Parser was not found for label " + 6021); //$NON-NLS-1$
      return ""; //$NON-NLS-1$
View Full Code Here

    return new ICellEditorValidator() {

      public String isValid(final Object value) {
        if (value instanceof String) {
          final EObject element = getParserElement();
          final IParser parser = getParser();
          try {
            IParserEditStatus valid = (IParserEditStatus) getEditingDomain()
                .runExclusive(new RunnableWithResult.Impl() {

                  public void run() {
                    setResult(parser.isValidEditString(
                        new EObjectAdapter(element),
                        (String) value));
                  }
                });
            return valid.getCode() == ParserEditStatus.EDITABLE ? null
View Full Code Here

    return new ICellEditorValidator() {

      public String isValid(final Object value) {
        if (value instanceof String) {
          final EObject element = getParserElement();
          final IParser parser = getParser();
          try {
            IParserEditStatus valid = (IParserEditStatus) getEditingDomain()
                .runExclusive(new RunnableWithResult.Impl() {

                  public void run() {
                    setResult(parser.isValidEditString(
                        new EObjectAdapter(element),
                        (String) value));
                  }
                });
            return valid.getCode() == ParserEditStatus.EDITABLE ? null
View Full Code Here

    return new ICellEditorValidator() {

      public String isValid(final Object value) {
        if (value instanceof String) {
          final EObject element = getParserElement();
          final IParser parser = getParser();
          try {
            IParserEditStatus valid = (IParserEditStatus) getEditingDomain()
                .runExclusive(new RunnableWithResult.Impl() {

                  public void run() {
                    setResult(parser.isValidEditString(
                        new EObjectAdapter(element),
                        (String) value));
                  }
                });
            return valid.getCode() == ParserEditStatus.EDITABLE ? null
View Full Code Here

    return new ICellEditorValidator() {

      public String isValid(final Object value) {
        if (value instanceof String) {
          final EObject element = getParserElement();
          final IParser parser = getParser();
          try {
            IParserEditStatus valid = (IParserEditStatus) getEditingDomain()
                .runExclusive(new RunnableWithResult.Impl() {

                  public void run() {
                    setResult(parser.isValidEditString(
                        new EObjectAdapter(element),
                        (String) value));
                  }
                });
            return valid.getCode() == ParserEditStatus.EDITABLE ? null
View Full Code Here

    return new ICellEditorValidator() {

      public String isValid(final Object value) {
        if (value instanceof String) {
          final EObject element = getParserElement();
          final IParser parser = getParser();
          try {
            IParserEditStatus valid = (IParserEditStatus) getEditingDomain()
                .runExclusive(new RunnableWithResult.Impl() {

                  public void run() {
                    setResult(parser.isValidEditString(
                        new EObjectAdapter(element),
                        (String) value));
                  }
                });
            return valid.getCode() == ParserEditStatus.EDITABLE ? null
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.common.ui.services.parser.IParser

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.