Package org.objectstyle.wolips.componenteditor.part

Examples of org.objectstyle.wolips.componenteditor.part.ComponentEditorPart$ComponentEditorPartSelectionProvider


   * not a current template editor.
   */
  protected TemplateEditor getTemplateEditor() {
    TemplateEditor templateEditor = _templateEditor;
    if (_templateEditor == null && _activeEditor != null) {
      ComponentEditorPart cep = (ComponentEditorPart) _activeEditor;
      HtmlWodTab hwt = cep.htmlWodTab();
      if (hwt != null) {
        templateEditor = hwt.templateEditor();
      }
    }
    return templateEditor;
View Full Code Here


   * current WOD editor.
   */
  protected WodEditor getWodEditor() {
    WodEditor wodEditor = _wodEditor;
    if (_wodEditor == null && _activeEditor != null) {
      ComponentEditorPart cep = (ComponentEditorPart) _activeEditor;
      HtmlWodTab hwt = cep.htmlWodTab();
      if (hwt != null) {
        wodEditor = hwt.wodEditor();
      }
    }
    return wodEditor;
View Full Code Here

public class UnwrapTagAction extends AbstractTemplateAction {
  @Override
  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        IEditorPart activeEditorPart = componentEditorPart.getActiveEditor();
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          if (activeEditorPart == templateEditor) {
            templateEditor.getSourceEditor().new UnwrapTagAction().run();
View Full Code Here

public class ConvertInlineToWodAction extends AbstractTemplateAction {
  @Override
  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        IEditorPart activeEditorPart = componentEditorPart.getActiveEditor();
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null && activeEditorPart == templateEditor) {
          ITextSelection templateSelection = (ITextSelection) templateEditor.getSourceEditor().getSelectionProvider().getSelection();
          int offset = templateSelection.getOffset();
View Full Code Here

public class DeleteTagAction extends AbstractTemplateAction {
  @Override
  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        IEditorPart activeEditorPart = componentEditorPart.getActiveEditor();
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          if (activeEditorPart == templateEditor) {
            templateEditor.getSourceEditor().new DeleteTagAction().run();
View Full Code Here

public class AddActionAction extends AbstractTemplateAction {
  @Override
  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          IType componentType = templateEditor.getParserCache().getComponentType();
View Full Code Here

public class QuickRenameElementAction extends AbstractTemplateAction {
  @Override
  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        IEditorPart activeEditorPart = componentEditorPart.getActiveEditor();
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          if (activeEditorPart == templateEditor) {
            ITextSelection templateSelection = (ITextSelection) templateEditor.getSourceEditor().getSelectionProvider().getSelection();
View Full Code Here

public class AddKeyAction extends AbstractTemplateAction {
  @Override
  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          IType componentType = templateEditor.getParserCache().getComponentType();
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.componenteditor.part.ComponentEditorPart$ComponentEditorPartSelectionProvider

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.