use of com.intellij.ui.navigation.Place in project intellij-community by JetBrains.
the class ProjectStructureConfigurable method createProjectOrGlobalLibraryPlace.
public Place createProjectOrGlobalLibraryPlace(Library library) {
Place place = createPlaceFor(getConfigurableFor(library));
place.putPath(MasterDetailsComponent.TREE_NAME, library.getName());
return place;
}
use of com.intellij.ui.navigation.Place in project intellij-community by JetBrains.
the class ProjectStructureConfigurable method select.
public ActionCallback select(@Nullable final String moduleToSelect, @Nullable String editorNameToSelect, final boolean requestFocus) {
Place place = createModulesPlace();
if (moduleToSelect != null) {
final Module module = ModuleManager.getInstance(myProject).findModuleByName(moduleToSelect);
assert module != null;
place = place.putPath(MasterDetailsComponent.TREE_OBJECT, module).putPath(ModuleEditor.SELECTED_EDITOR_NAME, editorNameToSelect);
}
return navigateTo(place, requestFocus);
}
use of com.intellij.ui.navigation.Place in project android by JetBrains.
the class Places method deserialize.
@NotNull
public static Place deserialize(@NotNull String text) {
Place place = new Place();
List<String> entries = Splitter.on('|').omitEmptyStrings().splitToList(text);
for (String entry : entries) {
List<String> path = Splitter.on('=').splitToList(entry);
place.putPath(path.get(0), path.get(1));
}
return place;
}
use of com.intellij.ui.navigation.Place in project android by JetBrains.
the class PsLibraryDependencyNavigationPath method getHtmlText.
@NotNull
private String getHtmlText() {
Place place = new Place();
ProjectStructureConfigurable mainConfigurable = myContext.getMainConfigurable();
DependenciesPerspectiveConfigurable target = mainConfigurable.findConfigurable(DependenciesPerspectiveConfigurable.class);
assert target != null;
putPath(place, target);
target.putNavigationPath(place, myModuleName, myNavigationText);
String href = GO_TO_PATH_TYPE + serialize(place);
return String.format("<a href='%1$s'>%2$s</a> (%3$s)", href, myDependency, myModuleName);
}
use of com.intellij.ui.navigation.Place in project intellij-plugins by JetBrains.
the class FlexBCConfigurator method createConfigurableNode.
private void createConfigurableNode(ModifiableFlexBuildConfiguration bc, Module module, Runnable treeNodeNameUpdater) {
CompositeConfigurable wrapped = createBcConfigurable(module, bc, treeNodeNameUpdater);
myConfigurablesMap.put(bc, wrapped);
final MasterDetailsComponent.MyNode node = new BuildConfigurationNode(wrapped);
final ModuleStructureConfigurable moduleStructureConfigurable = ModuleStructureConfigurable.getInstance(module.getProject());
moduleStructureConfigurable.addNode(node, moduleStructureConfigurable.findModuleNode(module));
Place place = new Place().putPath(ProjectStructureConfigurable.CATEGORY, moduleStructureConfigurable).putPath(MasterDetailsComponent.TREE_OBJECT, bc);
ProjectStructureConfigurable.getInstance(module.getProject()).navigateTo(place, true);
}
Aggregations