use of org.elixir_lang.navigation.item_presentation.Parent in project intellij-elixir by KronicDeth.
the class Module method location.
/*
* Protected Instanc Methods
*/
@Nullable
protected String location() {
String location = null;
if (parent != null) {
ItemPresentation itemPresentation = parent.getPresentation();
if (itemPresentation instanceof Parent) {
Parent parentPresentation = (Parent) itemPresentation;
location = parentPresentation.getLocatedPresentableText();
}
}
return location;
}
use of org.elixir_lang.navigation.item_presentation.Parent in project intellij-elixir by KronicDeth.
the class Field method getPresentation.
/**
* Returns the presentation of the tree element.
*
* @return the element presentation.
*/
@NotNull
@Override
public ItemPresentation getPresentation() {
Parent parentPresentation = (Parent) structure.getPresentation();
String location = parentPresentation.getLocatedPresentableText();
String name;
String atomText = navigationItem.getText();
name = atomText.substring(1);
return new org.elixir_lang.navigation.item_presentation.structure.Field(location, name);
}
use of org.elixir_lang.navigation.item_presentation.Parent in project intellij-elixir by KronicDeth.
the class FieldWithDefaultValue method getPresentation.
/**
* Returns the presentation of the tree element.
*
* @return the element presentation.
*/
@NotNull
@Override
public ItemPresentation getPresentation() {
Parent parentPresentation = (Parent) structure.getPresentation();
String location = parentPresentation.getLocatedPresentableText();
PsiElement name = navigationItem.getKeywordKey();
PsiElement defaultValue = navigationItem.getKeywordValue();
return new org.elixir_lang.navigation.item_presentation.structure.Field(location, name.getText(), defaultValue.getText());
}
use of org.elixir_lang.navigation.item_presentation.Parent in project intellij-elixir by KronicDeth.
the class Type method getPresentation.
/**
* Returns the presentation of the tree element.
*
* @return the element presentation.
*/
@NotNull
@Override
public ItemPresentation getPresentation() {
Parent parentPresentation = (Parent) modular.getPresentation();
String location = parentPresentation.getLocatedPresentableText();
return new org.elixir_lang.navigation.item_presentation.Type(location, type(navigationItem), opaque, visibility);
}
use of org.elixir_lang.navigation.item_presentation.Parent in project intellij-elixir by KronicDeth.
the class Overridable method getPresentation.
/**
* Returns the presentation of the tree element.
*
* @return the element presentation.
*/
@NotNull
@Override
public ItemPresentation getPresentation() {
ItemPresentation itemPresentation = modular.getPresentation();
String location = null;
if (itemPresentation instanceof Parent) {
Parent parentPresenation = (Parent) itemPresentation;
location = parentPresenation.getLocatedPresentableText();
}
return new org.elixir_lang.navigation.item_presentation.Overridable(location);
}
Aggregations