本文整理汇总了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()));
}
}
示例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;
}
示例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();
}
示例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);
}
示例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();
}
}
示例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();
}
}
示例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();
}
示例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();
}
示例9: getSelectedProjectRootPath
import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
public String getSelectedProjectRootPath() {
return AsposeMavenProjectManager.getInstance().getProjectHandle().getBasePath();
}
示例10: read
import com.aspose.utils.AsposeMavenProjectManager; //导入依赖的package包/类
void read() {
AsposeConstants.println(" === New File Visual Panel.read() === " + AsposeMavenProjectManager.getInstance().getProjectHandle().getBaseDir().getName());
retrieveAPIDependency();
retrieveAPIExamples();
}