当前位置: 首页>>代码示例>>Java>>正文


Java AsposeMavenProjectManager类代码示例

本文整理汇总了Java中com.aspose.utils.AsposeMavenProjectManager的典型用法代码示例。如果您正苦于以下问题:Java AsposeMavenProjectManager类的具体用法?Java AsposeMavenProjectManager怎么用?Java AsposeMavenProjectManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AsposeMavenProjectManager类属于com.aspose.utils包,在下文中一共展示了AsposeMavenProjectManager类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: retrieveAPIExamples

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
private void retrieveAPIExamples() {
    final String item = (String) getComponentSelection().getSelectedItem();
    CustomMutableTreeNode top = new CustomMutableTreeNode("");
    DefaultTreeModel model = (DefaultTreeModel) getExamplesTree().getModel();
    model.setRoot(top);
    model.reload(top);
    if (item != null && !item.equals(AsposeConstants.API_DEPENDENCY_NOT_FOUND)) {

        AsposeExampleCallback callback = new AsposeExampleCallback(this, top);
        final ModalTaskImpl modalTask = new ModalTaskImpl(AsposeMavenProjectManager.getInstance().getProjectHandle(), callback, "Please wait...");
        ProgressManager.getInstance().run(modalTask);
        top.setTopTreeNodeText(AsposeConstants.API_NAME);
        model.setRoot(top);
        model.reload(top);
        getExamplesTree().expandPath(new TreePath(top.getPath()));

    }

}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:20,代码来源:AsposeExamplePanel.java

示例2: retrieveAPIDependency

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
private boolean retrieveAPIDependency() {
    getComponentSelection().removeAllItems();
    String versionNo = AsposeMavenProjectManager.getInstance().getDependencyVersionFromPOM(AsposeConstants.API_MAVEN_DEPENDENCY);
    if (versionNo == null) {
        getComponentSelection().addItem(AsposeConstants.API_DEPENDENCY_NOT_FOUND);
    } else {
        getComponentSelection().addItem(versionNo);
    }
    return true;
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:11,代码来源:AsposeExamplePanel.java

示例3: actionPerformed

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
public void actionPerformed(AnActionEvent e) {
    final  Project project = getEventProject(e);
    if (project == null) {
        return;
    }
    ResourceBundle bundle = ResourceBundle.getBundle("Bundle");
    AsposeMavenProjectManager asposeMavenProjectManager = AsposeMavenProjectManager.initialize(project);
    AsposeDiagramJavaAPI.initialize(asposeMavenProjectManager);
    final AsposeExampleDialog dialog = new AsposeExampleDialog(bundle.getString("AsposeExamples.title"),bundle.getString("AsposeExamples.message"));
    dialog.show();
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:12,代码来源:AsposeExampleAction.java

示例4: executeTask

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
@Override
public boolean executeTask(@NotNull ProgressIndicator progressIndicator) {

    progressIndicator.setIndeterminate(true);
    progressIndicator.setText(ResourceBundle.getBundle("Bundle").getString("AsposeManager.projectMessage"));
    AsposeMavenProjectManager comManager = AsposeMavenProjectManager.getInstance();

    return comManager.retrieveAsposeMavenDependencies(progressIndicator);
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:10,代码来源:CreateMavenProjectCallback.java

示例5: addMavenConfiguration

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
private void addMavenConfiguration(final VirtualFile miscxml, String mavenMiscXmlfile) {
    try {
        Document pomDocument = getXmlDocument(mavenMiscXmlfile);

        // Get the root (Project Node) element
        Node projectNode = pomDocument.getFirstChild();
        Element component = pomDocument.createElement("component");
        component.setAttribute("name", "MavenProjectsManager");
        projectNode.appendChild(component);
        Element option = pomDocument.createElement("option");
        option.setAttribute("name", "originalFiles");
        component.appendChild(option);
        Element list = pomDocument.createElement("list");
        option.appendChild(list);
        Element listOption = pomDocument.createElement("option");
        listOption.setAttribute("value", "$PROJECT_DIR$/pom.xml");
        list.appendChild(listOption);

        // Write the content into misc xml file
        AsposeMavenProjectManager.getInstance().writeXmlDocumentToVirtualFile(miscxml, pomDocument);
    } catch (IOException io) {
        io.printStackTrace();
    } catch (ParserConfigurationException pce) {
        pce.printStackTrace();
    } catch (SAXException sae) {
        sae.printStackTrace();
    }
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:29,代码来源:AsposeMavenModuleBuilderHelper.java

示例6: updateProjectPom

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
private void updateProjectPom(final Project project, final VirtualFile pom) {
    try {
        String mavenPomXmlfile = AsposeMavenUtil.getPOMXmlFile(pom);

        Document pomDocument = getXmlDocument(mavenPomXmlfile);

        // Get the root element
        Node projectNode = pomDocument.getFirstChild();

        //Adding Aspose Cloud Maven Repository configuration setting here
        addAsposeMavenRepositoryConfiguration(pomDocument, projectNode);

        // Adding Dependencies here
        Element dependenciesTag = pomDocument.createElement("dependencies");
        projectNode.appendChild(dependenciesTag);

        for (Metadata dependency : getAsposeProjectMavenDependencies()) {

            addAsposeMavenDependency(pomDocument, dependenciesTag, dependency);

        }

        // Write the content into maven pom xml file

        AsposeMavenProjectManager.getInstance().writeXmlDocumentToVirtualFile(pom, pomDocument);


    } catch (IOException io) {
        io.printStackTrace();
    } catch (ParserConfigurationException pce) {
        pce.printStackTrace();
    } catch (SAXException sae) {
        sae.printStackTrace();
    }
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:36,代码来源:AsposeMavenModuleBuilderHelper.java

示例7: actionPerformed

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
public void actionPerformed(AnActionEvent e) {
    final  Project project = getEventProject(e);
    if (project == null) {
        return;
    }
    ResourceBundle bundle = ResourceBundle.getBundle("Bundle");
    AsposeMavenProjectManager asposeMavenProjectManager = AsposeMavenProjectManager.initialize(project);
    AsposeOCRJavaAPI.initialize(asposeMavenProjectManager);
    final AsposeExampleDialog dialog = new AsposeExampleDialog(bundle.getString("AsposeExamples.title"),bundle.getString("AsposeExamples.message"));
    dialog.show();
}
 
开发者ID:aspose-ocr,项目名称:Aspose.OCR-for-Java,代码行数:12,代码来源:AsposeExampleAction.java

示例8: actionPerformed

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
public void actionPerformed(AnActionEvent e) {
    final  Project project = getEventProject(e);
    if (project == null) {
        return;
    }
    ResourceBundle bundle = ResourceBundle.getBundle("Bundle");
    AsposeMavenProjectManager asposeMavenProjectManager = AsposeMavenProjectManager.initialize(project);
    AsposeTasksJavaAPI.initialize(asposeMavenProjectManager);
    final AsposeExampleDialog dialog = new AsposeExampleDialog(bundle.getString("AsposeExamples.title"),bundle.getString("AsposeExamples.message"));
    dialog.show();
}
 
开发者ID:aspose-tasks,项目名称:Aspose.Tasks-for-Java,代码行数:12,代码来源:AsposeExampleAction.java

示例9: getSelectedProjectRootPath

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
public String getSelectedProjectRootPath() {
    return AsposeMavenProjectManager.getInstance().getProjectHandle().getBasePath();
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:4,代码来源:AsposeExamplePanel.java

示例10: read

import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
void read() {
    AsposeConstants.println(" === New File Visual Panel.read() === " + AsposeMavenProjectManager.getInstance().getProjectHandle().getBaseDir().getName());
    retrieveAPIDependency();
    retrieveAPIExamples();
}
 
开发者ID:aspose-diagram,项目名称:Aspose.Diagram-for-Java,代码行数:6,代码来源:AsposeExamplePanel.java


注:本文中的com.aspose.utils.AsposeMavenProjectManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。