Search in sources :

Example 1 with Place

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;
}
Also used : Place(com.intellij.ui.navigation.Place)

Example 2 with 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);
}
Also used : Module(com.intellij.openapi.module.Module) Place(com.intellij.ui.navigation.Place)

Example 3 with Place

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;
}
Also used : Place(com.intellij.ui.navigation.Place) NotNull(org.jetbrains.annotations.NotNull)

Example 4 with 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);
}
Also used : DependenciesPerspectiveConfigurable(com.android.tools.idea.gradle.structure.configurables.DependenciesPerspectiveConfigurable) Place(com.intellij.ui.navigation.Place) ProjectStructureConfigurable(com.android.tools.idea.structure.dialog.ProjectStructureConfigurable) NotNull(org.jetbrains.annotations.NotNull)

Example 5 with Place

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);
}
Also used : ModuleStructureConfigurable(com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable) CompositeConfigurable(com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable) MasterDetailsComponent(com.intellij.openapi.ui.MasterDetailsComponent) Place(com.intellij.ui.navigation.Place)

Aggregations

Place (com.intellij.ui.navigation.Place)16 ProjectStructureConfigurable (com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable)4 Module (com.intellij.openapi.module.Module)3 NotNull (org.jetbrains.annotations.NotNull)3 FlexBuildConfiguration (com.intellij.lang.javascript.flex.projectStructure.model.FlexBuildConfiguration)2 CompositeConfigurable (com.intellij.lang.javascript.flex.projectStructure.ui.CompositeConfigurable)2 Library (com.intellij.openapi.roots.libraries.Library)2 DependenciesPerspectiveConfigurable (com.android.tools.idea.gradle.structure.configurables.DependenciesPerspectiveConfigurable)1 ProjectStructureConfigurable (com.android.tools.idea.structure.dialog.ProjectStructureConfigurable)1 LinkageType (com.intellij.flex.model.bc.LinkageType)1 Dependencies (com.intellij.lang.javascript.flex.projectStructure.model.Dependencies)1 DependencyEntry (com.intellij.lang.javascript.flex.projectStructure.model.DependencyEntry)1 ModuleLibraryEntry (com.intellij.lang.javascript.flex.projectStructure.model.ModuleLibraryEntry)1 FlexProjectConfigurationEditor (com.intellij.lang.javascript.flex.projectStructure.model.impl.FlexProjectConfigurationEditor)1 FlexBCConfigurable (com.intellij.lang.javascript.flex.projectStructure.ui.FlexBCConfigurable)1 LibraryOrderEntry (com.intellij.openapi.roots.LibraryOrderEntry)1 LibraryEx (com.intellij.openapi.roots.impl.libraries.LibraryEx)1 ClasspathEditor (com.intellij.openapi.roots.ui.configuration.ClasspathEditor)1 ModuleEditor (com.intellij.openapi.roots.ui.configuration.ModuleEditor)1 ModuleStructureConfigurable (com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConfigurable)1